Solice
02-04-2003, 08:06 PM
http://www.crystalterra.com/main
note these are test forums and are still under construction.
Ok, heres the dillio... as you can see I'm using a unique setup for my forums, every page is to show the welcome info at the top... well heres the problem... I know that admin/functions.php and global.php control the header, but I can't figure out where to add the following code or how to change it so that the header template is capable of displaying the users custom avatar, store points, rpg gil and new threads/posts...
any and all help is greatly appreciated ^^ thankies in advance
###
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"></a>';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';
}
###
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
###
$storepoints=$bbuserinfo['storep'];
###
note these are test forums and are still under construction.
Ok, heres the dillio... as you can see I'm using a unique setup for my forums, every page is to show the welcome info at the top... well heres the problem... I know that admin/functions.php and global.php control the header, but I can't figure out where to add the following code or how to change it so that the header template is capable of displaying the users custom avatar, store points, rpg gil and new threads/posts...
any and all help is greatly appreciated ^^ thankies in advance
###
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"></a>';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';
}
###
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
###
$storepoints=$bbuserinfo['storep'];
###