Quote:
Originally posted by PlurPlanet
Hi NTLDR,
I just checked out your site again and that is exactly what I am trying to do. If you could tell me what code needs to be placed in the vBindex page I would appreciate it. I'm not exactly sure of the rules about posting code from vBulletin on here, so if it would be better you could just PM or email me.
Thanks for the help!
|
Right, you need to add this code:
PHP Code:
// show avatar
// -------------------------
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/avatars/noavatar.gif';
}
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';
}
After this code in the vbindex php file:
PHP Code:
]// vBindex - start
// -------------------------
This code is taken from the welcome pannel hack and full credit goes to the creator of that hack.
You need to add:
in the template that you want the avatar to be displayed.