PDA

View Full Version : Quick! -- Welcome Panel + Header


Koutaru
04-20-2003, 08:40 AM
Just a quick thing, how can I get the avatar part into the welcome panel into the header? I know I have to edit the permissions in global.php.. but how exactly? I think I've tried everything and nothing so far works

Need to add this code into global

if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/avatar/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/avatar/guestavatar.gif"

border="0"></a>';
}

Koutaru
04-20-2003, 09:01 AM
Never mind! Figured it out :)

I added the code to phpinclude *hits head dramatically*
Sorry ;)

Hey, I'm learning xD

N9ne
04-20-2003, 06:25 PM
Gah, not the phpinclude :p use global.php, its cleaner than using phpinclude...

Koutaru
04-22-2003, 10:53 PM
^^; I tried global and sorta gave up on it. I mean I literally tried everything I thought to be of a logical code.

If anyone could help with the global, that would be great otherwise I'll just have to use phpinclude ;)

Koutaru
04-23-2003, 04:43 PM
Anyone? No one? This is such a simple (well, I think) thing that I can't figure out :) I'm sure some people know how to do it xD