this one is when u add ur text into a box really nice its mobizonez code
core.php
usage =
replace ur xhtmlfunctions with the following
core.php
Code:
function boxstart($title){ echo " <div class=\"boxed\"> <div class=\"boxedTitle\"> <h1 align=\"center\" class=\"boxedTitleText\"><b>$title</b> </h1> </div> <div class=\"boxedContent\"> "; } function boxend(){ echo "</div></div>"; }
Code:
boxstart ("Hello To all Coding Talk Members"); boxend ();
Code:
<?php define ('USER_NOT_FOUND',0); define ('MIME_TYPE','application/xhtml+xml'); function gettheme($sid) { $uid = getuid_sid($sid); $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); if($thid[0]==""||$thid[0]==0)$thid[0]=1; $thinfo = mysql_fetch_array(mysql_query("SELECT bgc, txc, lnk, hdc, hbg, boxbg, boxcl FROM ibwf_mainthemes WHERE id='".$thid[0]."'")); $ret = "<style type=\"text/css\">\n"; $ret .= "body {background-color:#$thinfo[0]; color:#$thinfo[1]}\n"; $ret .= "h5 {background-color:#$thinfo[4]; color:#$thinfo[3]}\n"; $ret .= "a:link {color:#$thinfo[2]}\n"; $ret .= "a:visited {color:#$thinfo[2]}\n"; $ret .= "img {border: 0;}\n"; $ret .= "input {border-color:#$thinfo[2];border-width:1px;color:#$thinfo[2];}\n"; $ret .= "input: focus{background-color:#$thinfo[2];color:#$thinfo[2];}\n"; $ret .= "input.BF6: focus{background-color:#$thinfo[2];color:#$thinfo[3];}\n"; $ret .= ".boxed {width: 100%; margin-bottom: 2px; border: px solid #$thinfo[1]}\n"; $ret .= ".boxedTitle {height: 18px; padding: 0 0 0 2px; background: #$thinfo[1] url($thinfo[6]) repeat-x;}\n"; $ret .= ".boxedTitleText {font-size: 11px; color: #$thinfo[2]}\n"; $ret .= ".boxedContent {padding: 2px 2px 2px 2px; background: #$thinfo[3]}\n"; $ret .= "</style>"; return $ret; } function geticonsetid($sid) { $uid = getuid_sid($sid); $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $iconsetid = mysql_fetch_array(mysql_query("SELECT iconset FROM ibwf_mainthemes WHERE id='".$thid[0]."'")); return $iconsetid[0]; } 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; $ret .= "\n</head>\n<body>"; return $ret; } function xhtmlheadchat1($page_title, $page_style="",$rid,$sid) { $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 .= "<meta http-equiv=\"refresh\" content=\"20; URL=chat.php?sid=$sid&rid=$rid\"/>"; $ret .= "\n".$page_style; $ret .= "\n</head>\n<body>"; return $ret; } function xhtmlheadchat($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; $ret .= "\n</head>\n<body>"; return $ret; } function xhtmlfoot() { $ret = "\n</body>\n</html>"; return $ret; } function gettheme1($thid) { if($thid[0]==""||$thid[0]==0)$thid[0]=1; $thinfo = mysql_fetch_array(mysql_query("SELECT bgc, txc, lnk, hdc, hbg FROM ibwf_mainthemes WHERE id='".$thid[0]."'")); $ret = "<style type=\"text/css\">\n"; $ret .= "body {background-color:#$thinfo[0]; color:#$thinfo[1]}\n"; $ret .= "h3 {background-color:#$thinfo[4]; color:#$thinfo[3]}\n"; $ret .= "a:link {color:#$thinfo[2]}\n"; $ret .= "a:visited {color:#$thinfo[2]}\n"; $ret .= ".boxed {width: 100%; margin-bottom: 3px; border: 1px solid #$thinfo[1]}\n"; $ret .= ".boxedTitle {height: 18px; padding: 0 0 0 2px; background: #$thinfo[1] url(images/box2.jpg) repeat-x;}\n"; $ret .= ".boxedTitleText {font-size: 11px; color: #$thinfo[2]}\n"; $ret .= ".boxedContent {padding: 2px 2px 2px 2px; background: #$thinfo[3]}\n"; $ret .= "</style>"; return $ret; } ?>
Comment