Hey guys. I have been try this whole time to create a code that will allow each user to add their own image in the background of the site but can get it to work. can anyone help me with this please? I was trying to get ideas from the avatar but it aint working.
I use this code in the xhtmlhead
I just cant retrieve the info for the body background image
I use this code in the xhtmlhead
PHP Code:
function xhtmlhead($page_title, $page_style="")
{
$ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
$ret .= "\n<head>\n<title>$page_title</title>\n";
$ret .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />";
$ret .= "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />";
$ret .= "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
$ret .= "\n".$page_style;
$uid = getuid_sid($sid);
$thinfo = mysql_fetch_array(mysql_query("SELECT background FROM ibwf_users WHERE id='".$uid."'"));
$ret .="<body background=\"$thinfo[0]\" bgproperties=\"fixed\">";
$ret .= "<link href=\"http://dj-marc.wen.ru/web/fav2.gif\" rel=\"shortcut icon\" type=\"image/vnd.microsoft.icon\"> </link>";
//$ret = "<LINK REL="SHORTCUT ICON" HREF="http://dj-marc.wen.ru/web/fav2.gif">";
$ret .= "\n</head>\n<body>";
return $ret;
}
Comment