Current time: 04-24-2014, 01:17 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display Avatars in Threadlist like XenForo (for MyBB)
03-04-2012, 06:42 PM (This post was last modified: 03-04-2012 06:42 PM by BitzDefender.)
Post: #1
Display Avatars in Threadlist like XenForo (for MyBB)
By MyBBAddict.com

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

.php  aitl.php (Size: 1.35 KB / Downloads: 328)

Second, you need to naviagte 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!

Visit this user's website Find all posts by this user
Quote this message in a reply
03-04-2012, 11:36 PM
Post: #2
RE: Display Avatars in Threadlist like XenForo (for MyBB)
do you have a screenshot of this?
Find all posts by this user
Quote this message in a reply
03-04-2012, 11:43 PM
Post: #3
RE: Display Avatars in Threadlist like XenForo (for MyBB)
It can be viewed live on my forum:
http://mybbaddict.com/forum-forum-suggestions-feedback

Smile

Visit this user's website Find all posts by this user
Quote this message in a reply
03-05-2012, 03:15 AM
Post: #4
RE: Display Avatars in Threadlist like XenForo (for MyBB)
hmm thanks might just add this
Find all posts by this user
Quote this message in a reply
03-05-2012, 06:58 PM
Post: #5
RE: Display Avatars in Threadlist like XenForo (for MyBB)
This user has been denied support. This user has been denied support.
This plugin will add a lot of extra queries to the page. If you have 25 threads shown on a page you're going to run 25 extra queries. That will more than double the existing default queries. Just an FYI.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-05-2012, 11:04 PM
Post: #6
RE: Display Avatars in Threadlist like XenForo (for MyBB)
Wow I didn't even think of that...is there a way to do this more efficiently?

Visit this user's website Find all posts by this user
Quote this message in a reply
03-05-2012, 11:52 PM
Post: #7
RE: Display Avatars in Threadlist like XenForo (for MyBB)
(03-05-2012 11:04 PM)BitzDefender Wrote:  Wow I didn't even think of that...is there a way to do this more efficiently?

e.g. replacing
PHP Code:
$query $db->query("select * from " TABLE_PREFIX "users where uid={$thread['uid']}");
    
$thread_user $db->fetch_array($query); 

with
PHP Code:
$thread_user get_user($thread['uid']); 

would help reducing the amount of queries.

My plugins | AutoMedia 2.2
Visit this user's website Find all posts by this user
Quote this message in a reply
03-07-2012, 03:41 PM
Post: #8
RE: Display Avatars in Threadlist like XenForo (for MyBB)
this was the actual tutorial,and it was done by scoutie,FBI, Mahigrafix and some codes by me.
http://community.mybb.com/thread-79700-p...#pid643922

i wish you retain the original credits

[Image: mnvhXxj.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
03-07-2012, 09:14 PM
Post: #9
RE: Display Avatars in Threadlist like XenForo (for MyBB)
I saw the tutorial posted on another dead forum with no credits, and it had very bad grammar. So I fixed it up and posted it, I didn't know the code was yours so don't treat me like the bad guy.

Visit this user's website Find all posts by this user
Quote this message in a reply
03-08-2012, 07:38 PM
Post: #10
RE: Display Avatars in Threadlist like XenForo (for MyBB)
Interesting find. I'm not yet quite sold on the idea of placing avatars in that exact spot (I find them distracting from the thread icons), but it does seem to be a popular design item with XF.

[Image: 468x60-1.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication