Quote:
Originally posted by todd.o.callen
I need this code to live in the home_login/logout template(s) in order to make the table borders work correctly.
|
Move:
PHP Code:
// welcome panel by trilOByte
// -------------------------
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='{imagesfolder}/avatars/noavatar.gif';
}
$avatarimage='<a href="'.$bburl.'/member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$bburl.'/'.$avatarurl.'" border="0">';
} else {
$avatarimage='<a href="'.$bburl.'/register.php?s='.$session[sessionhash].'&action=signup"><img src="{imagesfolder}/avatars/guestavatar.gif" border="0"></a>';
}
// -------------------------
// end welcome panel
Above:
PHP Code:
// check if user is logged in or not and select the correct templates
// for the welcome panel, buddies and left menu
It should then work in the home_login/out templates.
Quote:
PS. I actually saw Charmed on last night for a few minutes while I was visiting my Grandmother in an Alzeimer's unit. Thought it was a Brit thing, but apparently it on here, too. :classic:
|
Its by far a US thing

I only started watching it recently myself