how to put avatar on last post
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #15
RE: how to put avatar on last post
Try this (attached).

This plugin depends on XThreads. So, you need to install XThreads before using this plugin.

For displaying last poster avatar URL, use this code in your forumdisplay_thread template:

Code:
{$thread['avatar']}


For displaying the last poster avatar image, use this kind of code in that template:

HTML Code
<img src="{$thread['avatar']}" alt="" title="" />


"Resize" the avatar as needed directly in the img tag.

If the last poster doesn't have avatar, it will use default_avatar.gif image.
By default, this images included in images folder.
If there is no default_avatar.gif in images folder, upload it.
It will prevent broken image link if the last poster doesn't have avatar.

   

Live Demo:
http://www.14.mynie.co.cc/forumdisplay.php?fid=33
Click the thread images there.



Attached File(s)
.7z  mnxt_fn_av.7z (Size: 1 KB / Downloads: 542)

02-09-2011 04:30 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
how to put avatar on last post - thalhah - 01-29-2011, 05:44 AM
RE: how to put avatar on last post - RateU - 02-08-2011, 07:50 AM
RE: how to put avatar on last post - RateU - 02-09-2011 04:30 AM
RE: how to put avatar on last post - RateU - 02-11-2011, 02:16 AM
RE: how to put avatar on last post - RateU - 02-11-2011, 04:59 AM

 Standard Tools
Forum Jump: