ori
Lead · 512 posts
17 years ago
#22
heres how i do my edit theme page
$colors=array("990000","ff0000","ff6633","ff9900","ff9966","ffff00","339933","33cc33", "00ff00","99ff99","000066","0000cc", "3366ff","6699ff","00ffff","3399ff","990099","ff0099","ff9999","ffcccc","993300","cccc99", "666666","000000","ffffff");
foreach($colors as $hexcolor)$bgcolors.="<a href=\"".$action."options".$mod."theme&update=1&bgcolor=$hexcolor".$session."\"><img src=\"/images/hex/".$hexcolor.".gif\" alt=\"[$hexcolor]\"/></a>\n";
foreach($colors as $hexcolor)$txtcolors.="<a href=\"".$action."options".$mod."theme&update=1&txtcolor=$hexcolor".$session."\"><img src=\"/images/hex/".$hexcolor.".gif\" alt=\"[$hexcolor]\"/></a>\n";
foreach($colors as $hexcolor)$linkcolors.="<a href=\"".$action."options".$mod."theme&update=1&linkcolor=$hexcolor".$session."\"><img src=\"/images/hex/".$hexcolor.".gif\" alt=\"[$hexcolor]\"/></a>\n";
foreach($colors as $hexcolor)$navcolors.="<a href=\"".$action."options".$mod."theme&update=1&navcolor=$hexcolor".$session."\"><img src=\"/images/hex/".$hexcolor.".gif\" alt=\"[$hexcolor]\"/></a>\n";
$bgcolor=get_var("bgcolor");
if(empty($bgcolor))$bgcolor=users_table("bgcolor",$uid);
$txtcolor=get_var("txtcolor");
if(empty($txtcolor))$txtcolor=users_table("txtcolor",$uid);
$linkcolor=get_var("linkcolor");
if(empty($linkcolor))$linkcolor=users_table("linkcolor",$uid);
$navcolor=get_var("navcolor");
if(empty($navcolor))$navcolor=users_table("navcolor",$uid);
$font=get_var("font");
if(empty($font))$font=users_table("font",$uid);
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Cache-Control" content="max-age=30"/>
<title>{username} @ change theme</title>
<link rel="stylesheet" type="text/css" href="{directory}style.php?uid={uid}"/>
</head>
<body>
<div class="title">{username} @ change theme</div>
<div class="adblock">{mobads}</div>
[b]update theme[/b]
[img]{images}point.gif[/img][size="1"]here you can customize a theme for viewing this site!![/size]
{msg}
background color:
{bgcolors}
text color:
{txtcolors}
link color:
{linkcolors}
nav-bar color:
{navcolors}
</p>
<div>
<form action="{action}options{mode}theme" method="post">
<input type="hidden" name="update" value="1"/>
font:
<select name="font">
<option value="small">small</option>
<option value="medium">medium</option>
<option value="large">large</option>
</select>
<input type="hidden" name="ses" value="{ses}"/>
<input type="submit" value="select"/>
</form>
</div>
<- [url="{action}options{session}"]back[/url]
[img]{images}banner.gif[/img]
[url="{action}messages{session}"][[size="1"]2[/size]] messages[/url] |
[url="{action}friends{session}"][[size="1"]3[/size]] friends[/url] |
[url="{action}forums{session}"][[size="1"]4[/size]] forums[/url] |
[url="{action}chat{session}"][[size="1"]5[/size]] chat[/url]
[url="{action}home{session}"][img]/phpThumb/phpThumb.php?src=/images/logo.gif&f=png&w=20\[/img][[size="1"]0[/size]] main page[/url]
</p>
<div class="adblock2">{mobads2}</div>
<div class="navi">
©2008 {sitename} - [email]b4lth4z4r@live.com.au[/email]
[[url="{action}about{session}"]about us[/url]|[url="{action}terms{session}"]terms & conditions[/url]]
</div>
</body>
</html>