display avatar on index
MrBrechreiz Offline
Member
***
Posts: 69
Joined: May 2012
Post: #2
RE: display avatar on index
Open functions_forumlist.php and search for

PHP Code:
$lastpost_profilelink = build_profile_link($lastpost_data['lastposter'], $lastpost_data['lastposteruid']);


Insert Below this

PHP Code:
1
2
3
4
5
6
7
8
9
10
$uid = intval($lastpost_data['lastposteruid']);
$user = get_user($uid);
if ($user['avatar'] != "")
{
$forum['lp_avatar'] = '<img src="'.$user['avatar'].'" height="25" width="25" title="'.$user['username'].' \'s avatar." alt="" />';
}
else
{
$forum['lp_avatar'] = '<img src="images/default_avatar.gif" height="25" width="25" title="Default Avatar" alt="" />';
}


images/default_avatar.gif  =  you have to customize


ACP -->Templates & Style -->Templates -->euer Template --> Forum Bit Templates  -> forumbit_depth2_forum_lastpost

You can use this variable where you want

Code:
{$forum['lp_avatar']}

(This post was last modified: 05-16-2016 03:42 AM by MrBrechreiz.)
05-16-2016 03:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
display avatar on index - bppratama - 05-16-2016, 02:42 AM
RE: display avatar on index - MrBrechreiz - 05-16-2016 03:13 AM
RE: display avatar on index - bppratama - 05-16-2016, 08:02 AM
RE: display avatar on index - MrBrechreiz - 05-16-2016, 10:26 AM
RE: display avatar on index - Sama34 - 05-22-2016, 12:27 AM

 Standard Tools
Forum Jump: