Thanks for your reply dev_cw, for a moment I felt like Keanu Reeves in that scene in the Devil’s Advocate, where he is alone in New York City..
Quote from: dev_cw at Apr 18, 2008, 06:30 AM
I have never used this snippet but I will try to point out potential problems:
1) did you add the TV tag to your template? If you create a TV named "smf_commnets" you need to add a corresponding [*smf_commnets*]. You need to add this either directly in the template or you can simply place it in the content field.
Yes, thats why I asked here how exactly should I configure the TV, since I’m kinda new to MODx, but I think I figured it out, and I added the TV in the content field on the place where {Comments} was, but its still the same. I didn’t know I can put it directly in the template, thanks for that.
Quote from: dev_cw at Apr 18, 2008, 06:30 AM
2) did you remove the extra <?php ?> tags when copying the snippet code?
I thought I should remove the php tags in the document, but since the document in which I have been trying this out didn’t contain any php tags, I assumed that I’m not supposed to do that. Anyway I have tried removing the php tags from the snippet and again its the same deal
Quote from: dev_cw at Apr 18, 2008, 06:30 AM
3) did you check the paths in #4:
4. The path back to the forum login is also hardcoded, so if you have the forum install in a sub-directory or under a different folder name then this will need editing in the snippet code as well.
Yes, I left the paths as they are (forum/SSI.php) because I have SMF installed in a subfolder called forum.
Everything with this plugin is somehow acting very weird. There are a few cases which I have experienced while trying to refresh/delete cache and cookies or trying to change some values and stuff:
1. Sometimes it appears like it does work, when I’m logged in at the forums, the comment box appears and I can write comments, but they don’t get registered, and don’t appear, and when I’m not logged at the forums the comment box does not appear and it simply says you have to be logged in to leave comments.
2. Other times the comment box is always present whether I’m logged or not, but the comments does not appear.
3. ANOTHER times, the message: to leave comments you must be logged in is always present whether I’m logged in or not.
4. and at a few times, I managed to leave a comment once as anonymous and another time as a user logged in the forums, but after that it didn’t worked, it was all the same. I don’t know how this really happened, but it is very strange to me.
Its a very useful and clean snippet, but if not help, I need at least a conformation from someone that it works as it is.
Now, as I have it working I think its everything according to the manual, but it still won’t let me enter comments.
The two comments I have entered are displayed and the message: "You must be logged into the forums to comment. Please login" appears below them. It is case number 4 which I have mentioned previously.