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.

Is there a method for plugins where you can render AFTER the username in a post?

I want to add the roles of a user after his name rather than after the post count in the comments for each discussion.

How would I go about doing this? I can't find a method used for rendering AFTER the username.

Comments

  • edited April 2013

    Yes just go to the addon section and input in the search bar the word roles . There are about 5 plugins that do something like that. I am sure one of them will work for you.

  • @vrijvlinder said:

    Yes just go to the addon section and input in the search bar the word roles . There are about 5 plugins that do something like that. I am sure one of them will work for you.

    Yeah, I found out how. You just "FireEvent" and make your own event for after the username.

  • cool can you post the code you changed so as to help someone else with the same query ?

    use < pre > code here < /pre >

  • @GeekPlaya said:
    Yeah, I found out how. You just "FireEvent" and make your own event for after the username.

    It's not necessary. In Vanilla 2.0.18.x, you just have to implement a handler for the CommentInfo event.

    public function Base_CommentInfo_Handler($Sender, $Args) {
      // Output something here
    }
    

    The only limitation of this method is that you cannot determine if your handler will be called before or after another one.

Sign In or Register to comment.