Have you added the patch to the theme, as detailed in the readme.txt file? There are some things that the plugin cannot apply without some help. It is just a single line of code to be added to the theme that gives the plugin access to the CSS class(es) of each comment.
Great plugin. Thanks. But there's an error in the readme.txt file. It says to insert this line of code: "Sender->CssClassComment =& $CssClass;" but it should be "$Sender->CssClassComment =& $CssClass;" which has a "$" at the beginning. Once I made that change everything worked!
It does say on this site that the readme.txt file may contain vital information for installation and upgrading, but that is easy to miss. In fact, it is so easy to miss, I cannot even find that note any more. I think it was on the Addons introduction page, or a quick-start page.
The modification is in the theme - you don't need to touch the core. You may need to copy a core template into your theme, if the theme does not already have it.
ok here we are in 2013 - does this plug still work? this read me asks to do things that are not there anymore - or am I missing something?
can't find = BeforeCommentDisplay
=========
+
+ This is done in applications/vanilla/views/discussion/helper_functions.php +
+ Look around like 26 for the 'BeforeCommentDisplay' event call, that should look like this: +
+ +
+ $Sender->FireEvent('BeforeCommentDisplay'); +
+ +
+ Add the following line just before it, allowing the event handler to change the CSS class of +
+ the coment: +
+ +
+ $Sender->CssClassComment =& $CssClass;
@dealtek I could not get this plugin working completely either. It does update the sort order, and you are able to post comments in a tree fashion, but the css classes used for indenting aren't showing up.
The good news is that this should be able to get working as the default theme in 2.0.18.8 passes the class as an event argument for 'BeforeCommentDisplay'. Since this is such a popular addon, maybe @judgej could weigh in?
Search first. React to insightful, awesome, funny, and off-topic posts.
Check out the Wiki for lots of information about common stumbling blocks.
Comments
- Spam
- Abuse
- Troll
2 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •BTW I think the file that is cloned into the theme changed in V2.0.15
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •It does say on this site that the readme.txt file may contain vital information for installation and upgrading, but that is easy to miss. In fact, it is so easy to miss, I cannot even find that note any more. I think it was on the Addons introduction page, or a quick-start page.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •/cd
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •ok here we are in 2013 - does this plug still work? this read me asks to do things that are not there anymore - or am I missing something?
can't find = BeforeCommentDisplay
=========
+ This is done in applications/vanilla/views/discussion/helper_functions.php + + Look around like 26 for the 'BeforeCommentDisplay' event call, that should look like this: + + + + $Sender->FireEvent('BeforeCommentDisplay'); + + + + Add the following line just before it, allowing the event handler to change the CSS class of + + the coment: + + + + $Sender->CssClassComment =& $CssClass;
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@UnderDog, could you Split this?
@dealtek I could not get this plugin working completely either. It does update the sort order, and you are able to post comments in a tree fashion, but the css classes used for indenting aren't showing up.
The good news is that this should be able to get working as the default theme in 2.0.18.8 passes the class as an event argument for 'BeforeCommentDisplay'. Since this is such a popular addon, maybe @judgej could weigh in?
Search first.
React to insightful, awesome, funny, and off-topic posts.
Check out the Wiki for lots of information about common stumbling blocks.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •