Display author's avatar next to thread
#11
This user has been denied support. This user has been denied support.
Thanks. Working for me fine : http://www.mahigrafix.com/Forum-photosho...-in-telugu
#12
Awesome mahigrafix! Smile
Hi!
#13
That does look quite cool...
--Pyridine
#14
(2010-10-05, 11:45 PM)labrocca Wrote: Shouldn't be too difficult of a plugin really but to be honest this is going to make thread display even heavier. Since no one knows the code on Xenforo it's hard to say how optimized it is. One thing I know about viewing their site is how some of those features are going to be bloat in code. VB became very bloated. Who's to say Xenforo won't be worse.

This can be done very easily with a core edit to showthread.php and the templates.

(2010-10-06, 06:20 PM)bamuraad Wrote: @Scoutie44: I will suggest you to use this width='38' height='38' in image tags;

<img src='{$thread_user['avatar']}' alt='User Avatar' title='{$thread_user['username']}\'s Avatar' width='38' height='38'/>

This will make an smaller avatar image on the thread listings.


can you guys be more clear on adding the code...i have installed the plugin but i could not make the code edit?

anyways this works,on mahigrafix.com
so please say where i can add the code!
<img src='{$thread_user['avatar']}' alt='User Avatar' title='{$thread_user['username']}\'s Avatar' width='38' height='38'/>
[Image: mnvhXxj.png]
#15
(2011-02-09, 09:34 PM)envira Wrote: can you guys be more clear on adding the code...i have installed the plugin but i could not make the code edit?


use modified attached file from Scoutie,
then open your forumdisplay_thread templates

find
{$attachment_count}

and add/replace after that with mine
<div>
			<table><tr><td>{$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>

Feel free to modifying Wink


.php   aitl.php (Size: 1.4 KB / Downloads: 209)

Hello, Welcome to MyBB Indonesia to get local support
My 'Simple' Unique Plugin here Smile
#16
Someone should make this into a full featured plugin.
--Pyridine
#17
(2011-02-09, 11:53 PM)FBI Wrote:
(2011-02-09, 09:34 PM)envira Wrote: can you guys be more clear on adding the code...i have installed the plugin but i could not make the code edit?


use modified attached file from Scoutie,
then open your forumdisplay_thread templates

find
{$attachment_count}

and add/replace after that with mine
<div>
			<table><tr><td>{$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>

Feel free to modifying Wink

i did as you said,the avtar's are appearing but they r big......can i know how to resize them?


here's da full tutorial..........


Display Avatars in threadlisting like Xenforo

Hi guys this is the tutorial based on xenforo's display avatar in thread listing.

it will help a lot of mybb users,so i bring you the tutorial.

so here we start with the tutorial:

1.First download the plugin by clicking this link
avatar in thread listing
avatar in thread listing.

2.transfer the file to your
web cp>public_html>your mybb root>inc>plugins

3.Activate the plugin via
ACP>plugins>aitl

4.now we have some template edits:

a. open yor
Quote:acp>themes and templates>templates>your theme template>forum display templates>forumdisplay_thread

find

{$attachment_count}

and add/replace after that with this 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>

b.open your theme>global.css>edit in advanced mode

add this code at the bottom

#tvatar img {
    -moz-border-radius: 4px 4px 4px 4px;
    background-color: #FCFCFF;
    border: 1px solid #A5CAE4;
    max-height: 36px;
    max-width: 36px;
    padding: 2px;
}

dats it you are done.......

so let me show you the preview of what we are about to make
[Image: 2wfol4z.jpg]

so lets see the demo too:

click me
link

Thnkx to scoutie for this plugin
and mahigrafix for fixing this tutorial.
also regards to FBI.
[Image: mnvhXxj.png]
#18
I'd like to do this in search results as well, if anyone can help!
#19
(2011-03-28, 06:55 PM)Uncontrol Wrote: I'd like to do this in search results as well, if anyone can help!

On User's thread's result or post's result ?
#20
I have a plugin that displays your avatar on the threadlist and in search results: http://www.mybbextras.com/showthread.php?tid=886

       


Forum Jump:


Users browsing this thread: 1 Guest(s)