Support Forums
Display Avatars in Threadlist like XenForo (for MyBB) - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Forum Software Help (https://www.supportforums.net/forumdisplay.php?fid=49)
+---- Thread: Display Avatars in Threadlist like XenForo (for MyBB) (/showthread.php?tid=25459)



Display Avatars in Threadlist like XenForo (for MyBB) - Peter L - 03-04-2012

By MyBBAddict.com

Firstly, you need to download and activate this plugin. Add to ./inc/plugins
Download Avatars in Threadlist


Second, you need to navigate here:
Code:
ACP > Themes and Templates > Templates > Your Theme Templates > Forum Display Teamples > Forumdisplay_thread

Find
Code:
<div>
            <span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
            <div class="author smalltext">{$thread['profilelink']}</div>
        </div>

Replace with
Code:
<div>
            <table><tr><td id="tvatar">{$thread_avatar}</td><td>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}<br><font color="grey">created by:</font> {$thread['profilelink']}</td></tr></table>        
        </div>

Then, finally, add this code to your global.css
Code:
#tvatar img {
    -moz-border-radius: 4px 4px 4px 4px;
    background-color: #FCFCFF;
    border: 1px solid #A5CAE4;
    max-height: 36px;
    max-width: 36px;
    padding: 2px;
}


You're done!



RE: Display Avatars in Threadlist like XenForo (for MyBB) - BreShiE - 03-10-2012

Looks good, you should supply a screenshot on the OP though to show users what this will actually look like.

I may incorporate this in a theme actually, hmm.


RE: Display Avatars in Threadlist like XenForo (for MyBB) - Peter L - 03-10-2012

You can't do that, Breshie. It requires a plugin or core edit.


RE: Display Avatars in Threadlist like XenForo (for MyBB) - BreShiE - 03-10-2012

(03-10-2012, 06:37 AM)Peter L Wrote: You can't do that, Breshie. It requires a plugin or core edit.

Really? I thought... never-mind. I was going to take a look at the plugin code and find a way to incorporate it in the theme, I thought the plugin was only doing template edits.

btw: For the submissions on your site, do you have to authorize the submission? Because I just submitted my three themes.


RE: Display Avatars in Threadlist like XenForo (for MyBB) - Kewlz - 03-26-2012

Peter, Screenshoots please?
So atleast we know, what are we trying to do.


RE: Display Avatars in Threadlist like XenForo (for MyBB) - Peter L - 03-26-2012

^
http://mybbaddict.com/forum-mybb-general-discussion


RE: Display Avatars in Threadlist like XenForo (for MyBB) - TwoMuchCaffeine - 03-26-2012

I would like to see a screen shot for this.


RE: Display Avatars in Threadlist like XenForo (for MyBB) - Peter L - 03-27-2012

^
http://mybbaddict.com/forum-mybb-general-discussion


RE: Display Avatars in Threadlist like XenForo (for MyBB) - Kewlz - 03-27-2012

That's actually a great plugin for small boards.
I wouldn't recommend for bigger boards.
Great Job on this Peter.
Your plugin will be hit because many members are finding Xenforo like plugins.



RE: Display Avatars in Threadlist like XenForo (for MyBB) - Peter L - 03-27-2012

This can be done without a plugin (which the the method I'm using). It uses only a few queries, but requires core edits.