Support Forums

Full Version: Display Avatars in Threadlist like XenForo (for MyBB)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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.
You can't do that, Breshie. It requires a plugin or core edit.
(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.
Peter, Screenshoots please?
So atleast we know, what are we trying to do.
I would like to see a screen shot for this.
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.
This can be done without a plugin (which the the method I'm using). It uses only a few queries, but requires core edits.