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.
Options

[Solved] Modding The In This Discussion To Show User Image / Photo Instead Of Name

edited March 2012 in Vanilla 2.0 - 2.8

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.]

Answers

  • Options
    edited March 2012

    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.

  • Options
    edited March 2012

    I think I cracked it!! Will post a how-to right here shortly! :)

  • Options
    edited March 2012

    Well, thanks to this thread, that was easy.

    Imgur

    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!

Sign In or Register to comment.