View Single Post
  #5  
Old 6th February 2010, 18:32
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
in default PMBT theme this is the nav bar
PHP Code:
        echo "<div id=\"navcontainer\" align=\"center\">
                <ul id=\"navlist\">\n"
;
                    echo(
preg_match("/index.php/",$_SERVER["PHP_SELF"])) ? "<li id=\"active\"><a id=\"current\" >Home</a>":"<li><a href=\"index.php\">Home</a></li>";
                    echo(
preg_match("/torrents.php/",$_SERVER["PHP_SELF"])) ? "<li id=\"active\"><a id=\"current\" >Torrents</a>":"<li><a href=\"torrents.php\">Torrents</a></li>";
                    if(
$forumshare)echo(preg_match("/phpBB.php/",$_SERVER["PHP_SELF"])) ? "<li id=\"active\"><a id=\"current\">Forums</a></li>":"<li><a href=\"phpBB.php\">Forums</a></li>";
                    echo(
preg_match("/chat.php/",$_SERVER["PHP_SELF"])) ? "<li id=\"active\"><a id=\"current\" >Chat</a></li>":"<li><a href=\"chat.php\">Chat</a></li>";
                    if(
$user->user)echo(preg_match("/user.php/",$_SERVER["PHP_SELF"])) ? "<li id=\"active\"><a id=\"current\" href=\"user.php?op=profile&id=" $user->id ."\">My Profile</a></li>":"<li><a href=\"user.php?op=profile&id=" $user->id ."\">My Profile</a></li>";
                    echo(
preg_match("/donate.php/",$_SERVER["PHP_SELF"])) ? "<li id=\"active\"><a id=\"current\"  onClick=\"javascript:urchinTracker ('/donate/navbar');\">Donate<span style='margin-left: 4px; vertical-align: super; color:#AA0000; font-family:sans-serif; font-weight: bolder; font-size: 6pt;'>NOW</span></a></li>":"<li><a href=\"donate.php\" onClick=\"javascript:urchinTracker ('/donate/navbar');\">Donate<span style='margin-left: 4px; vertical-align: super; color:#AA0000; font-family:sans-serif; font-weight: bolder; font-size: 6pt;'>NOW</span></a></li>";
                    if((
$user->user OR $upload_level == "all"))echo(preg_match("/upload.php/",$_SERVER["PHP_SELF"])) ? "<li id=\"active\"><a id=\"current\" href=\"upload.php\">Upload</a></li>":"<li><a href=\"upload.php\">Upload</a></li>";
                    if(
$user->user)echo(preg_match("/memberslist.php/",$_SERVER["PHP_SELF"])) ? "<li id=\"active\"><a id=\"current\" >Members</a></li>":"<li><a href=\"memberslist.php\">Members</a></li><br />";
                    if(
$user->user)echo(preg_match("/helpdesk.php/",$_SERVER["PHP_SELF"])) ? "<li id=\"active\"><a id=\"current\" >Help Desk</a></li>":"<li><a href=\"helpdesk.php\">Help Desk</a></li>";

                echo 
"</ul> 
to change the BG color of the tabs you need to edit css
this
Code:
#navlist li a {
padding : 3px 0.5em;
margin-left : 3px;
border : 1px solid #778;
border-bottom : none;
background : #d2d2d2;
text-decoration : none;
}
is the tabs
and
Code:
background : #d2d2d2;
sets the color
as for the others I well work on it as you well need to rewrite the 2 blocks.
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote