[Solved] Modding The In This Discussion To Show User Image / Photo Instead Of Name
How do I make the 'In This Discussion' plugin to show User image instead of User's name?
Any help is appreciated. Thanks.
[PS: 'In This Discussion' plugin adds a list of users taking part in the discussion to the side panel of the discussion page in Vanilla.]
0          
             
         
            
Answers
I'd assume you go into the code of the plugin in /plugins/InThisdiscussion/whatever and find where its displaying the 'username' and change it to the 'picture'. I'm new to this, so that may be wrong.
I think I cracked it!! Will post a how-to right here shortly!
Well, thanks to this thread, that was easy.
This is what you have to do...
Open '/vanilla-root-directory/plugins/VanillaInThisDiscussion/class.inthisdiscussionmodule.php' and change this:
<ul class="PanelInfo"> <?php foreach ($this->_UserData->Result() as $User) { ?> <li><?php echo UserPhoto($User); ?></li> <?php } ?>To this:
<div class="PhotoGrid"> <?php foreach ($this->_UserData->Result() as $User) { ?> <?php echo UserPhoto($User); ?> <?php } ?>Surprisingly, I didn't have to change any CSS! So happy modding!