View Full Version : Welcome/Avatar question
SEShady
08-08-2003, 03:53 AM
I recently installed the welcome/avatar user hack, and I was wanting to know:
Can you use a custom avatar size in welcome box and still have bigger avatars in the forum threads?
Like force the avatars to 100X100 on the welcome/avatar box, but still have them 150X150 on the threads.
Thanks for any suggestions!
Shady
This is what I am talking about if anyone is confused. It is at top of forums.
Click Here... (http://www.thesystemelite.com/forums/index.php?)
g-force2k2
08-08-2003, 04:34 AM
in the <img tag of the displayed avatar set the width to 100 and the height to 100...
ie.
<img src="" width="100" height=""
g-force2k2
SEShady
08-08-2003, 04:49 AM
Would I change that here?
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>';
}
Thanks,
Shady
g-force2k2
08-08-2003, 04:58 AM
well assuming that both the noavatar and guestavatar are 100x100 then the only one you ahve to update is this
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
to this:
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0" width="100" height="100">';
if not then alter all three images tags...
regards,
g-force2k2
SEShady
08-08-2003, 05:03 AM
that worked, thanks!
pz out,
Shady
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.