View Full Version : Need a Template Coded
I do not know how to code my template, i would think it's not to hard and was wondering if anyone could code it for me and point me in the right direction as to how to start. Keep in mind i am completely clueless how to do it. I know how to slice the layout but just don't know the coding part. Can anyone help?
GO ILLINI
01-15-2006, 11:25 PM
well, what coding language are you using? Do you have php? if so:
<?php
if(isset($p)) {
include($p . ".php");
// add some blocks here... more on this later if you use the code.
}
else {
echo "The page you wanted is not here!";
// or include error.php
}
?>
This will allow anyone to include anything into your page though...
Your best(and most safe) bet would bo to use this:
<?php
if(isset($p)) {
if($p=="some_page") {
include("the_page.php");
}
else if($p=="some_other_page") {
include("and_another_page_here.php");
}
else {
// in case it is not on your list
include("error.php");
}
// and so on
}
else {
// if $P is not set
include("home.php");
}
?>
Is that what you wanted?
That would go in the content section I.E.:
html
head
body
header
left menu
THAT CODE
right menu
footer
ILLINI
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.