I try to make a skin and I want to use PHP for the navigation and that's my code for the me.php:
and that's the navigation in top.php:PHP Code:<?php
require('inc/top.php');
switch($_GET['id']) {
default:
include('inc/me.php');
break;
case 'staff':
include('inc/staff.php');
break;
case 'stats':
include('inc/stats.php');
break;
case 'news':
include('inc/news.php');
break;
}
require('inc/bot.php');
?>
The problem:PHP Code:<ul class="menu">
<li class="item"><a href="?id=me">{username}</a></li>
<li class="item"><a href="?id=staff">Staff</a></li>
<li class="item"><a href="?id=stats">Statistics</a></li>
<li class="item"><a href="?id=news">News</a></li>
</ul>
It's working if I try it with localhost/app/tpl/skins/[my skin]/me.php?id=stats but not with localhost/me?id=stats. I mean it's showing only the default inc/me.php on every link.





