Question about role representation in discussions. (Master Branch in Github)

Hey all,

I'm working on setting up a forum with the open-source vanilla forums software.

Here's an example of what I'm trying to accomplish..

(http://i.imgur.com/aDauSUk.png)

Basically I want my staff members to be marked as staff members with an image in the discussion item list. Is there a way I can achieve this? I've had no luck thus far.

Thank you.

Answers

  • you could modify indexphotos plugin

    probably modify DisplayPhoto Routine to also see if the user is an admin and display their photo as well.

     /**
        * Display user photo for first user in each discussion.
        */
       protected function DisplayPhoto($Sender) {
          // Build user object & output photo
          $FirstUser = UserBuilder($Sender->EventArguments['Discussion'], 'First');
          //
         ----------------------- 
         your code here
          if discussion owner is an admin - display their photo
          echo the the admins photo.
    --------------------------------------------
          echo UserPhoto($FirstUser);
       }
    
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • P.S. what is your version number?

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.