Forum 2 3 pages

Started on the old forum in July 2009 · view the original in the archive · old links redirect here

No replies · 412 views · started 17 years ago · 1 min read

riderz Lead · 975 posts #1

hey guys who can help me with my forum i want it to show 2 or 3 pages the main catagories

else if ($action=="formmenu")           {
addonline(getuid_sid($sid),"Forum Index - xHTML","");
$pstyle = gettheme($sid);
    echo xhtmlhead("$stitle Forums",$pstyle);

  echo "<p align=\"center\"><small>";
  $tmsg = getpmcount(getuid_sid($sid));
  $umsg = getunreadpm(getuid_sid($sid));

  if($umsg==1)
  {
  echo "<a href=\"inbox.php?action=main&sid=$sid\">Inbox($umsg New Message)</a> <br/><br/>";
  }
  if($umsg>1)
  {
  echo "<a href=\"inbox.php?action=main&sid=$sid\">Inbox($umsg New Messages)</a> <br/><br/>";
  }
  echo "</small></p>";

  echo "<p><small>";
getalert($sid);
include("pop.php");
  echo getshoutbox($sid);
boxstart ("Forum Categories");
   $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id");
  $iml = "<img src=\"images/1.gif\" alt=\"*\"/>";
  while($fcat=mysql_fetch_array($fcats))
  {
    $catlink = "<a href=\"index.php?action=viewcat&sid=$sid&cid=$fcat[0]\">$iml$fcat[1]</a><br/>";
    echo "$catlink";
    $forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE cid='".$fcat[0]."' AND clubid='0' ORDER BY position, id, name");
    if(getfview()==0)
    {
    echo "<br/><small>";
    while($forum=mysql_fetch_array($forums))
        {
      if(canaccess(getuid_sid($sid),$forum[0]))
      {

      echo "<a href=\"index.php?action=viewfrm&sid=$sid&fid=$forum[0]\">$forum[1]</a>, ";
      }
    }
    echo "</small>";
    }else if(getfview()==20)
    {
      echo "<form method=\"get\" action=\"index.php\">";
      echo "<br/>Forums: <select name=\"fid\">";
      while($forum=mysql_fetch_array($forums))
        {
      if(canaccess(getuid_sid($sid),$forum[0]))
      {
        $notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$forum[0]."'"));
      echo "<option value=\"$forum[0]\">$forum[1]($notp[0])</option>";
      }
      }
      echo "</select>";

      $rets .= "<input type=\"hidden\" name=\"action\" value=\"viewfrm\"/>";
      $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
      echo "<input type=\"submit\" name=\"Submit\" value=\"[GO]\"/><br/>";
      echo "</form>";

    }

  }
  $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users"));
  $nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts"));
  echo "<br/><br/><b>$norm[0]</b> users have made a total of <b>$nops[0]</b> posts<br/><br/>";
  echo "</small></p>";
boxend();
  echo "<p align=\"center\">";
  $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]."'"));
    echo "<br/><a href=\"index.php?action=main&sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
  echo xhtmlfoot();
    }

Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close