Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to add extra class to the particular comment?

steamsteam www.planamigo.org - #1 foro planes amigo

Hi,
Someone knows how to add my style class to a particular comment from the plugin ?

Like on the screen:

Invoking an event?
DiscussionController_BeforeComment... ?

Thanks

Tagged:

Best Answer

  • R_JR_J Ex-Fanboy Munich Admin
    Answer ✓
    public function discussionController_beforeCommentDisplay_handler($sender, $args) {
        if ($args['Comment'] whatever) {
            $args['CssClass'] .= ' MyExtraClass';
            // Could also be:
            // &$args['CssClass'] .= ' MyExtraClass';
            // Never sure about that...
    
    Bleistivtsteamhgtonight

Answers

  • R_JR_J Ex-Fanboy Munich Admin
    Answer ✓
    public function discussionController_beforeCommentDisplay_handler($sender, $args) {
        if ($args['Comment'] whatever) {
            $args['CssClass'] .= ' MyExtraClass';
            // Could also be:
            // &$args['CssClass'] .= ' MyExtraClass';
            // Never sure about that...
    
    Bleistivtsteamhgtonight
  • steamsteam www.planamigo.org - #1 foro planes amigo

    It worked, thanks

Sign In or Register to comment.