Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display Avatars in Threadlist like XenForo (for MyBB)
#1
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!
Reply
#2
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.
Reply
#3
You can't do that, Breshie. It requires a plugin or core edit.
Reply
#4
(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.
Reply
#5
Peter, Screenshoots please?
So atleast we know, what are we trying to do.
If you are willing to join SF Webmasters.
Reply
#6
^
http://mybbaddict.com/forum-mybb-general-discussion
Reply
#7
I would like to see a screen shot for this.
Reply
#8
^
http://mybbaddict.com/forum-mybb-general-discussion
Reply
#9
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.
If you are willing to join SF Webmasters.
Reply
#10
This can be done without a plugin (which the the method I'm using). It uses only a few queries, but requires core edits.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Subforum display help Eternal. 0 573 10-24-2012, 07:42 PM
Last Post: Eternal.
  How To Install MyBB | MyBB Installation Guide BreShiE 2 1,406 03-10-2012, 06:33 AM
Last Post: BreShiE
  My MOOD plugin[mybb] and latest mood icons(xenforo style icons) envira 3 3,862 09-25-2011, 05:21 AM
Last Post: FileX
  MyBB question @OMNI or any other mybb Guru's 0xE9 13 29,559 07-28-2011, 01:29 PM
Last Post: Pompano
  How to Make your MYBB Central Plugin Compatible with new Mybb Billy Mays 3 2,123 07-12-2011, 06:40 PM
Last Post: Billy Mays

Forum Jump:


Users browsing this thread: 1 Guest(s)