Originally Posted by badger879 Can we have some more information
whats it running on ect ect
any code we could see?
I used dreamweaver to code the pages.
Here's the codes:
For header.php:
Code:
<?php
$pathtoskins = "/home/kura/public_html/skins/";
$defaultskin = 1;
if (isset($_COOKIE['myskin']) && file_exists($pathtoskins . $_COOKIE['myskin'] . '/header.php') && file_exists($pathtoskins . $_COOKIE['myskin'] . '/footer.php')) {
$header = $pathtoskins . $_COOKIE['myskin'] . "/header.php";
$footer = $pathtoskins . $_COOKIE['myskin'] . "/footer.php";
$styles = "/skins/" . $_COOKIE['myskin'] . "/stylesheet.css";
} else {
$header = $pathtoskins . $defaultskin . "/header.php";
$footer = $pathtoskins . $defaultskin . "/footer.php";
$styles = "/skins/" . $defaultskin . "/stylesheet.css";
}
include($header);
?>
For stylesheet.css in skins/1/ folder:
Code:
BODY {
font-size : 10pt;
color : #2c5a50;
line-height : 100%;
font-family : verdana;
}
a.three:link {color: #2c5a50}
a.three:visited {color: #00000}
a.three:hover {background: #FFFFFF}
h1 {
border-style : none;
border-width : 0;
font-size : 14px;
font-family : verdana, arial, arial-narrow;
color : #2c5a50;
font-weight : bold;
text-decoration : underline;
margin-bottom : 0;
}
h3 {
border-style : none;
border-width : 0;
font-size : 12px;
font-family : verdana, arial, arial-narrow;
color : #2c5a50;
text-decoration : underline;
margin-bottom : 0;
}
h2 {
border-style : none;
border-width : 0;
font-size : 12px;
font-family : verdana, arial, arial-narrow;
color : #2c5a50;
font-weight : normal;
text-decoration : none;
margin-bottom : 0;
}
body {
background-color : #c8e6da;
}
.container {
margin : 35px auto;
width : 500px;
}
#header {
width : auto;
}
#content {
width : 406px;
}
#sidebar {
width : 120px;
}
#content {
float : left;
width : 406px;
}
#sidebar {
float : right;
width : 120px;
position:absolute;
top:0;
left:406px;
padding:5px;
padding:5px;
border: #000000 2px solid;
}
a.menu:link, a.menu:visited, a.menu:active {
color : #b1274b;
background-color : #edc6d0;
display : block;
font-weight : bold;
border-right : none;
text-transform : uppercase;
text-decoration : none;
font-family : tahoma;
font-size : 7pt;
line-height : 9pt;
margin : 0;
padding : 2px 2px 2px 2px;
border-bottom : none;
}
a.menu:hover {
color : #edc6d0;
background-color : #b1274b;
display : block;
text-transform : uppercase;
font-family : tahoma;
font-size : 7pt;
line-height : 9pt;
text-decoration : none;
font-weight : normal;
margin : 0;
padding : 2px 2px 2px 2px;
}
For header.php in skins/1/ folder:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title> Violin in the Woods </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="<?php echo $styles; ?>" rel="stylesheet" type="text/css">
</head>
<body>
<div class="h1" id="container">
<div id="header"><img src="images/header.jpg" alt="Skin1 header" width="635" height="406"></div>
<div class="container" id="sidebar">
<h1>Navigation </h1>
<p class="menu"><a href="http://www.sweetpatronus.cn/">Sakura</a></p>
<p class="menu"><a href="blog.php">Blog</a></p>
<p class="menu">Domain</p>
<p class="menu">Linkage</p>
<p class="menu">Visitor</p>
<p class="menu">Contact</p>
<h1>Hostees </h1>
<p class="h2">Eunice</p>
<p class="h2">Felicia</p>
<h1 class="h1">Tagboard</h1>
<p class="h2"><!-- BEGIN CBOX - www.cbox.ws -->
<div align="center" id="cboxdiv">
<iframe frameborder="0" width="160" height="125" src="http://www2.cbox.ws/box/?boxid=1118790&boxtag=3030&sec=main" marginheight="2" marginwidth="2" scrolling="auto" name="cboxmain" style="border:#FFFFFF 1px solid;" id="cboxmain"></iframe><br>
<iframe frameborder="0" width="160" height="75" src="http://www2.cbox.ws/box/?boxid=1118790&boxtag=3030&sec=form" marginheight="2" marginwidth="2" scrolling="no" name="cboxform" style="border:#FFFFFF 1px solid;border-top:0px" id="cboxform"></iframe>
</div>
<p>
<!-- END CBOX -->
</p>
<p>Affiliates</p>
<p class="h2"><a href="http://www.sweetpatronus.cn">Sweet Patronus</a> </p>
<p class="h1">Of the Moment</p>
<p class="h2">None. </p>
<p class="h3"> </p>
</div>
</div>
For footer.php in skins/1/ folder:
Code:
<div class="container">
<h1 align="left" class="menu">Credits</h1>
</div>
I tried making my site to have multiple skins with this tutorial:
http://www.tutorialtastic.co.uk/tut...ng_your_website