Main menu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Main menu

    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

    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 =       "&#187;";
      $iconino =       "&#187;";
      $iconbuddy =     "&#187;";
      $iconchat =      "&#187;";
      $iconforum =     "&#187;";
      $iconclub =      "&#187;";
      $icongames =     "&#187;";
      $icondownloads = "&#187;";
      $iconusergall =  "&#187;";
      $iconcp =        "&#187;";
      $iconshop =      "&#187;";
      }
      ///////////////////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&amp;sid=$sid\">";
      $nick = getnick_sid($sid);
      $nick2 = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;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&amp;sid=$sid\">$umsg</a> PM<br/>";
    echo "Last PM by <a href=\"inbox.php?action=readpm&amp;pmid=$item[1]&amp;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\">&#187;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;sid=$sid\">Buddys</a>($onbuds|$mybuds)";
      $reqs = getnreqs($uid);
      if($reqs>0)
      {
        echo ": <a href=\"lists.php?action=reqs&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;sid=$sid\">Settings</a><br/>";
    echo "<a href=\"index.php?action=sitethms&amp;sid=$sid\">&#187;Profile Themes</a><br/>";
      echo "<a href=\"lists.php?action=pmoods&sid=$sid\">&#187;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&amp;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&amp;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&amp;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&amp;sid=$sid\">&#187;Head Admin Cp</a><br/>";
    
      }
       if (isadmin(getuid_sid($sid)))
    
      {echo "<hr />";
        echo "<a href=\"index.php?action=admincp&amp;sid=$sid\">&#187;Admin Cp</a><br/>";
    
      }
    if (ishedmodr(getuid_sid($sid)))
    
      {
    echo "<hr />";
        echo "<a href=\"index.php?action=hedmodcp&amp;sid=$sid\">&#187;Head Mod Cp</a><br/>";
    
      }
    echo "<hr />";
    if (isowner(getuid_sid($sid)))
      {
    
        echo "<a href=\"index.php?action=ownercp&amp;sid=$sid\">&#187;Owner Cp</a><br/>";
    
      }
    echo "<hr />";
    if (iscoder(getuid_sid($sid)))
      {
    
        echo "<a href=\"index.php?action=codercp&amp;sid=$sid\">&#187;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&amp;sid=$sid\">&#187;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&amp;sid=$sid\">Stats</a><br/>";
      echo "<a href=\"index.php?action=partners&amp;sid=$sid\">Partners</a>";
    echo "</p></div>";
    boxend();
    echo "<p align=\"center\">";
      echo "&#169; $stitle 2009<br/>";
      echo "<a href=\"index.php?action=logoutyes&amp;sid=$sid\">Exit</a>";
    
      echo "</small></p>";
      echo xhtmlfoot();
    
     }

    #2
    For a mod you should really know this, really its simple, the simple way is to create a menu.php and add the links in there and on the main page you shown delete all the stuff you want in menu and put a link to menu where it will all be...

    Comment


      #3
      I tought of another way to use the option like showshout but then i would have had to make a seprerate showfile for each on the main page

      Comment


        #4
        Thats why i said the quickest way would be just to make a page full of links to parts, its fast, easy and would look almost the same... but the otherway like you said would look alot better lol

        Comment


          #5
          Ok tanx whitewarrior will try it

          Comment

          Working...
          X