How can i make my main menu to be able to hide the items u dnt want to show
for example
Old Pm's(71)
Notification (0/7)
MMS ( 0) -
Buddys(0|16) -
Chatroom(0) -
Gallery(167) -
Forum -
Clubs(3) -
Extra -
Shop -
Bank -
Downloads(146) -
Settings -
»Profile Themes -
»Profile Moods -
Online 3 -
Female Seeking Men [0] -
Male Seeking Female [3] -
then there will be a menu where the hidden links will be in
Menu
Forum +
Clubs(3) +
Extra +
Shop +
Bank +
Fun Menu +
Downloads(146) +
Settings +
»Profile Themes +
»Profile Moods +
then it willbe show on main page again
here my main page
for example
Old Pm's(71)
Notification (0/7)
MMS ( 0) -
Buddys(0|16) -
Chatroom(0) -
Gallery(167) -
Forum -
Clubs(3) -
Extra -
Shop -
Bank -
Downloads(146) -
Settings -
»Profile Themes -
»Profile Moods -
Online 3 -
Female Seeking Men [0] -
Male Seeking Female [3] -
then there will be a menu where the hidden links will be in
Menu
Forum +
Clubs(3) +
Extra +
Shop +
Bank +
Fun Menu +
Downloads(146) +
Settings +
»Profile Themes +
»Profile Moods +
then it willbe show on main page again
here my main page
Code:
////////////////////////////////////////MAIN PAGE if($action=="main") { $showicons = mysql_fetch_array(mysql_query("SELECT showicon FROM ibwf_users WHERE id='".$uid."'")); $showtime = mysql_fetch_array(mysql_query("SELECT showtime FROM ibwf_users WHERE id='".$uid."'")); $showshout = mysql_fetch_array(mysql_query("SELECT showshout FROM ibwf_users WHERE id='".$uid."'")); $showshout2 = mysql_fetch_array(mysql_query("SELECT showshout2 FROM ibwf_users WHERE id='".$uid."'")); $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); $showavatar = mysql_fetch_array(mysql_query("SELECT showavatar FROM ibwf_users WHERE id='".$uid."'")); if($showicons[0]=="1"){ $iconinn = "<img src=\"images/themes/$themeimageset[0]/inbox2.gif\" alt=\"*\"/>"; $iconino = "<img src=\"images/themes/$themeimageset[0]/inbox1.gif\" alt=\"*\"/>"; $iconbuddy = "<img src=\"images/themes/$themeimageset[0]/buddies.gif\" alt=\"*\"/>"; $iconchat = "<img src=\"images/themes/$themeimageset[0]/chat.gif\" alt=\"*\"/>"; $iconforum = "<img src=\"images/themes/$themeimageset[0]/forum.gif\" alt=\"*\"/>"; $iconclub = "<img src=\"images/themes/$themeimageset[0]/clubs.gif\" alt=\"*\"/>"; $icongames = "<img src=\"images/themes/$themeimageset[0]/games.gif\" alt=\"*\"/>"; $icondownloads = "<img src=\"images/themes/$themeimageset[0]/downloads.gif\" alt=\"*\"/>"; $iconusergall = "<img src=\"images/themes/$themeimageset[0]/usergallery.gif\" alt=\"*\"/>"; $iconcp = "<img src=\"images/themes/$themeimageset[0]/cpanel.gif\" alt=\"*\"/>"; $iconshop = "<img src=\"images/themes/$themeimageset[0]/downloads.gif\" alt=\"*\"/>"; }else if($showicons[0]=="0"){ $iconinn = "»"; $iconino = "»"; $iconbuddy = "»"; $iconchat = "»"; $iconforum = "»"; $iconclub = "»"; $icongames = "»"; $icondownloads = "»"; $iconusergall = "»"; $iconcp = "»"; $iconshop = "»"; } ///////////////////mms count $nmms = getunreadmms($uid); if ($nmms>0){ $rampage = "($nmms new)"; } else{ $rampage = ""; } ///////////////////bank count $now = time(); $start=date("Y-m-d")." 23:50:00"; $end=date("Y-m-d")." 23:50:10"; $tstamp1=strtotime($start); $tstamp2=strtotime($end);if($now>$tstamp1 && $now<$tstamp2) { $sql = 'UPDATE `ibwf_users` SET `bank` = `bank` * 1.05 WHERE `bank` > 100'; mysql_query($sql);} addvisitor(); addonline(getuid_sid($sid),"Main Page - xHTML","index.php?action=$action"); //saveuinfo($sid); $pstyle = gettheme($sid); echo xhtmlhead("$stitle",$pstyle); echo "<p align=\"center\">"; echo "<img src=\"images/themes/$themeimageset[0]/logo.jpg\" alt=\"$stitle\"/><br/>"; if($showtime[0]=="1"){ echo "<small><a href=\"time.php?sid=$sid\">".date("D d M y - H:i",(time() - $timeadjust) )."</a></small><br/>"; } $TimeZone="0"; ////Change the TimeZone accordingly! $New_Time = (time() - $timeadjust) + ($TimeZone * 60 * 60); $show_date=date("D dS F, Y",$New_Time); $show_time=date("H:i",$New_Time); $Hour=date("G",$New_Time); echo "</p>"; echo "<meta http-equiv=\"refresh\" content=\"60; url=index.php?action=main&sid=$sid\">"; $nick = getnick_sid($sid); $nick2 = "<a href=\"index.php?action=viewuser&sid=$sid&who=$uid\"><i>".$nick."!</i></a>"; if ($Hour <= 4) { echo "<h5 align=\"center\"><marquee>Hey there $nick2 u must sleep</marquee> </h5>"; } else if ($Hour <= 11) { echo "<h5 align=\"center\"><marquee>good morning $nick2</marquee></h5>"; } else if ($Hour <= 12) { echo "<h5 align=\"center\"><marquee>good afternoon $nick2</marquee></h5>"; } else if ($Hour <= 17) { echo "<h5 align=\"center\"><marquee>good evening $nick2</marquee></h5>"; } else if ($Hour <= 22) { echo "<h5 align=\"center\"><marquee>night Owl $nick2</marquee></h5>"; } if($showshout[0]=="1"){ echo "<div class=\"mblock1\">"; echo "<small>"; echo getshoutbox($sid); echo "</small>"; echo "</div>"; } if($showshout2[0]=="1"){ echo "<div class=\"mblock1\">"; echo "<small>"; echo getshoutbox2($sid); echo "</small>"; echo "</div>"; } boxstart("Announcment"); echo "<p align=\"center\"><small>"; $fmsg = htmlspecialchars(getfmsg()); echo "$fmsg<br/>"; echo "</small></p>"; if($umsg>0) { echo "You have got <a href=\"inbox.php?action=main&sid=$sid\">$umsg</a> PM<br/>"; echo "Last PM by <a href=\"inbox.php?action=readpm&pmid=$item[1]&sid=$sid\">$item[0]</a><br/>"; } getalert($sid); boxend(); echo "<div class=\"mblock1\">"; boxstart("Menu"); echo "<small>"; /////inbox data include("pop.php"); $new_gm = getnewgml(getuid_sid($sid)); if($new_gm>0) { echo "<a href=\"rwgmail.php?sid=$sid\">»G-Mail(".$new_gm.")</a><br/>"; } $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); if($umsg==1) { echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/inbox.gif\" align=\"absbottom\"></a>"; echo "<a accesskey=\"1\" href=\"inbox.php?action=folderunread&sid=$sid\">New Pm's</a>($umsg $lang21a)<br/>"; } if($umsg>1) { echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/inbox.gif\" align=\"absbottom\"></a>"; echo "<a accesskey=\"1\" href=\"inbox.php?action=folderunread&sid=$sid\">New Pm's</a>($umsg $lang21b)<br/>"; } if($umsg==0) { echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/inbox.gif\" align=\"absbottom\"></a>"; echo "<a accesskey=\"1\" href=\"inbox.php?action=main&sid=$sid\">Old Pm's</a>($tmsg)<br/>"; } if($necitit>0) { $toate = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_notificare WHERE touid='".$uid."'")); $necitit = notificarenecitita(getuid_sid($sid)); echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/inbox.gif\" align=\"absbottom\"></a>"; echo "<a href=\"notificare.php?action=main&sid=$sid\">Notification </a>(<strong>$necitit</strong>/$toate[0])<br/>"; } if($necitit==0) { $necitit = notificarenecitita(getuid_sid($sid)); $toate = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_notificare WHERE touid='".$uid."'")); echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/inbox.gif\" align=\"absbottom\"></a>"; echo "<a href=\"notificare.php?action=main&sid=$sid\">Notification ($necitit/$toate[0])</a><br/>"; } echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/inbox.gif\" align=\"absbottom\"></a>"; echo "<a href=\"inbox.php?action=mmsdisp&sid=$sid\">MMS </a>($inda $nmms)<br/>"; $uid = getuid_sid($sid); $mybuds = getnbuds($uid); $onbuds = getonbuds($uid); echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/color_swatch.gif\" align=\"absbottom\"></a>"; echo "<a accesskey=\"2\" href=\"lists.php?action=buds&sid=$sid\">Buddys</a>($onbuds|$mybuds)"; $reqs = getnreqs($uid); if($reqs>0) { echo ": <a href=\"lists.php?action=reqs&sid=$sid\">$reqs</a>"; } echo "<br/><img class=\"menu\" alt=\"Gallery\" src=\"images/flag_red.gif\" align=\"absbottom\"></a>"; $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline")); echo "<a accesskey=\"3\" href=\"index.php?action=chat&sid=$sid\">Chatroom</a>($chs[0])<br/>"; echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/photos.gif\" align=\"absbottom\"></a>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery")); echo "<a accesskey=\"9\" href=\"gallery2.php?action=main&sid=$sid\">Gallery</a>($noi[0])<br/>"; boxend(); boxstart("forums/clubs"); /*echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/forum.gif\" align=\"absbottom\"></a>"; echo "<a href=\"../beauty_contest.php?sid=$sid&action=main\">Beauty Contest</a><br/>"; */ echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/forum.gif\" align=\"absbottom\"></a>"; echo "<a accesskey=\"4\" href=\"index.php?action=formmenu&sid=$sid\">Forum</a><br/>"; echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/forum.gif\" align=\"absbottom\"></a>"; $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs")); echo "<a accesskey=\"6\" href=\"index.php?action=clmenu&sid=$sid\">Clubs</a>($chs[0])<br/>"; boxend(); boxstart("Extra"); echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/money.gif\" align=\"absbottom\"></a>"; echo "<a href=\"mshop.php?action=main&sid=$sid\">Shop</a><br/>"; echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/money.gif\" align=\"absbottom\"></a>"; echo "<a href=\"bank.php?action=bankpage&sid=$sid\">Bank</a><br/>"; echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/game.gif\" align=\"absbottom\"></a>"; echo "<a accesskey=\"7\" href=\"index.php?action=funm&sid=$sid\">Fun Menu</a><br/>"; echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/lightning.gif\" align=\"absbottom\"></a>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault")); echo "<a accesskey=\"8\" href=\"lists.php?action=vault&sid=$sid\">Downloads</a>($noi[0])<br/>"; echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/cog.gif\" align=\"absbottom\"></a>"; echo "<a accesskey=\"#\" href=\"index.php?action=cpanel&sid=$sid\">Settings</a><br/>"; echo "<a href=\"index.php?action=sitethms&sid=$sid\">»Profile Themes</a><br/>"; echo "<a href=\"lists.php?action=pmoods&sid=$sid\">»Profile Moods</a><br/>"; boxend(); boxstart("men+women online list"); echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>"; $memberonline = "<a href=\"index.php?action=online&sid=$sid\">Online ".getnumonline()."</a><br/>"; echo "$memberonline"; $timeout = (time() - $timeadjust) - 180; echo "<img class=\"menu\" alt=\"Group\" src=\"images/girlon.gif\" align=\"absbottom\"></a>"; $kazz = mysql_fetch_array(mysql_query("SELECT count(a.userid) FROM ibwf_online a,ibwf_users b where a.userid=b.id and b.sex='F'")); echo "<a href=\"index.php?action=fonline&sid=$sid\">Female Seeking Men [$kazz[0]]</a><br/>"; echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/boyon.gif\" align=\"absbottom\"></a>"; $kazz = mysql_fetch_array(mysql_query("SELECT count(a.userid) FROM ibwf_online a,ibwf_users b where a.userid=b.id and b.sex='M'")); echo "<a href=\"index.php?action=monline&sid=$sid\">Male Seeking Female [$kazz[0]]</a><br/>"; echo "</small>"; echo "</div>"; echo "<br/>"; echo "<p>"; echo "<small>"; if (ishedadm(getuid_sid($sid))) {echo "<hr />"; echo "<a href=\"index.php?action=hedadmincp&sid=$sid\">»Head Admin Cp</a><br/>"; } if (isadmin(getuid_sid($sid))) {echo "<hr />"; echo "<a href=\"index.php?action=admincp&sid=$sid\">»Admin Cp</a><br/>"; } if (ishedmodr(getuid_sid($sid))) { echo "<hr />"; echo "<a href=\"index.php?action=hedmodcp&sid=$sid\">»Head Mod Cp</a><br/>"; } echo "<hr />"; if (isowner(getuid_sid($sid))) { echo "<a href=\"index.php?action=ownercp&sid=$sid\">»Owner Cp</a><br/>"; } echo "<hr />"; if (iscoder(getuid_sid($sid))) { echo "<a href=\"index.php?action=codercp&sid=$sid\">»Coder Cp</a><br/>"; } if(ismod($uid)) { echo "<hr />"; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE reported='1'")); $tot = $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE reported='1'")); $tot += $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE reported='1'")); $tot += $tnor[0]; $tnol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog")); $tol = $tnol[0]; if($tol+$tot>0) { echo "<a href=\"mcppl.php?action=main&sid=$sid\">»Mod Log</a>($tot|$tol)"; echo "<hr />"; } echo "</div>"; } echo "</small></p>"; echo "<div class=\"mblock1\">"; boxend(); boxstart("Stats"); $memid = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_users ORDER BY regdate DESC LIMIT 0,1")); echo "New member: $memid[1] <br/>"; $tm24 = time() - (24*60*60); $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE lastact>'".$tm24."'")); echo mysql_error(); echo "Active Users today: <b>$aut[0]</b><br/>"; echo "<small>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=stats&sid=$sid\">Stats</a><br/>"; echo "<a href=\"index.php?action=partners&sid=$sid\">Partners</a>"; echo "</p></div>"; boxend(); echo "<p align=\"center\">"; echo "© $stitle 2009<br/>"; echo "<a href=\"index.php?action=logoutyes&sid=$sid\">Exit</a>"; echo "</small></p>"; echo xhtmlfoot(); }
Comment