well wat u could do is a simple include statement in php. Something like
| Code: |
<?php
$page = ($_GET['page']); if (!$page || $page == "news"«»)
{
include("inc/news.php"«»);
}
elseif ($page == "roster"«»)
{
include 'inc/roster.php';
}
elseif ($page == "profiles"«»)
{
include 'inc/profiles.php';
}
elseif ($page == "lineups"«»)
{
include 'inc/lineups.php';
}
elseif ($page == "results"«»)
{
include 'inc/results.php';
}
elseif ($page == "serverstatus"«»)
{
include 'inc/serverstatus.php';
}
elseif ($page == "clannews"«»)
{
include 'inc/clannews.php';
}
elseif ($page == "donate"«»)
{
include 'inc/donate.php';
}
elseif ($page == "clanhistory"«»)
{
include 'inc/clanhistory.php';
}
elseif ($page == "maps"«»)
{
include 'inc/maps.php';
}
elseif ($page == "tutorials"«»)
{
include 'inc/tutorials.php';
}
elseif ($page == "games"«»)
{
include 'inc/games.php';
}
elseif ($page == "reviews"«»)
{
include 'inc/reviews.php';
}
elseif ($page == "links"«»)
{
include 'inc/links.php';
}
elseif ($page == "admin"«»)
{
include 'inc/addnews.php';
}
elseif ($page == "forum"«»)
{
include 'forum/index.php';
}
?>
|
U would set up a link like this
| Code: |
?page=roster
<a href="?page=roster" class="menu">Clan Roster </a>
|
then the code would get the required page and insert it into your page, keeping the background u have and saving u having to copy continuosly or modify endlessly ur site. I think thats wat u were after, at least i hope.
instead of .html you would save as .php. Hte above code was one i wrote for the old opiate2 clan site.