*

Recent

Author Topic: My Menu on the footerbox  (Read 5638 times)

outlaw16151

  • Jr. Member
  • **
  • Posts: 54
  • Force: +0/-0
    • OutlawsGameroom
My Menu on the footerbox
« on: July 15, 2015, 01:31:01 AM »
i was thinking, i want the mymenu.php to show up on the bottom footerbox, but for the life of me, i cant get it to work right, here is the code for mymenu,php.


Quote
<?php
echo'   <div class="side_nav">User Menu</div>
<div class="clear"></div>
   <div id="side_holder">

      <ul class=\'catmenu\'>';
            if($seo_on == 1){
               if(!isset($suserid)){
                  echo '<li ><a href=\''.$domain.'/login/\'>Login</a></li>
                  <li><a href=\''.$domain.'/signup/\'>Signup</a></li>';
               }else{
                  echo '<li ><a href=\''.$domain.'/myaccount/\'>My Account</a></li>
                  <li><a href=\''.$domain.'/myaccount/favorites/\'>Favorites</a></li>
                  <li ><a href=\''.$domain.'/logout/\'>Logout</a></li>';
               }
            }else{
               if(!isset($suserid)){
                  echo '<li ><a href=\''.$domain.'/index.php?action=login\'>Login</a></li>
                  <li ><a href=\''.$domain.'/index.php?action=signup\'>Signup</a></li>';
               }else{
                  echo '<li ><a href=\''.$domain.'/index.php?action=myaccount\'>My Account</a></li>
                  <li><a href=\''.$domain.'/index.php?action=myaccount&cmd=favorites\'>Favorites</a></li>
                  <li ><a href=\''.$domain.'/index.php?action=logout\'>Logout</a></li>';
               }
            }
            if($usrdata['user_level'] == 2){echo '<li><a href=\''.$domain.'/index.php?action=admin\'>Admin</a></li>';};
            if($usrdata['gamelevel'] >= 2) {echo '<li><a href=\''.$domain.'/index.php?action=gameadmin\'>Game Admin</a></li>';};
            if($usrdata['bloglevel'] >= 2) {echo '<li><a href=\''.$domain.'/index.php?action=blogadmin\'>Blog Admin</a></li>';};
      echo'</ul>
   </div>
<div style="clear:both"></div>';
?>

how would i get that to work in the footerbox, here is whats there now.
[/quote]<div id="footer_box">
<div id="footer_content">
<div class="footer_boxnav">Just Added</div>
<?php
      $count2 = 0;
         $latest2 = "SELECT * FROM fas_games  WHERE `active`='1' ORDER BY ID DESC";
         $latest1 = sqlcache('latest', $cachelife, $latest2);
         if(isset($latest1)){
            foreach($latest1 as $row2){
               $latestname = preg_replace('#\W#', '-', $row2['name']);
               if($row2['type'] == 1){
                  $img = "<img src='".$domain."/".$thumbsfolder."/".$row2["thumb"]."' alt='".$latestname."' title='".$latestname."' class='minithumb' />";
               }else{
                  $img = "<img src='".$row2["thumburl"]."' alt='".$latestname."' title='".$latestname."' class='minithumb' />";
               }
               if($count2<=8){
                        if ($seo_on == 1){
                           echo "<div class='footer_info'><a href='".$domain."/play/".$row2["ID"]."-".$latestname.".html'>".$img.titlelimit($row2["name"])."</a></div>";
                        }else{
                           echo "<div class='footer_info'><a href='".$domain."/index.php?action=play&amp;ID=" .$row2["ID"]. "'>".$img.titlelimit($row2["name"])."</a></div>";
                               }
                     }
               $count2++;
            }
            echo '<br />';
            if ($seo_on == 1){
               echo '&nbsp;<a href=\''.$domain.'/newest/\' title=\'Newest\'>View more >>></a>';}else{
               echo '&nbsp;<a href=\''.$domain.'/index.php?action=newest\' title=\'Newest\'>View more >>></a>';
            };
         }else{
            echo'No games have been added yet!';
         };
?>
</div>[/quote]