Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Evilboard (forum Software) - Multiple Categorys - Don't Work :(, I am creating a forum and i can't fix more then 1 category.
Arne-Christian
post Sep 13 2006, 05:44 AM
Post #1


Member [Level 1]
****

Group: Members
Posts: 62
Joined: 22-December 05
From: Sandefjord,Norway
Member No.: 16,078



I am at the moment trying to program my own forum, but i need more then a single category, here is my source:
CODE

function cat () {
include("functions/functions.php");
echo '<table width="100%"  border="0" cellspacing="0">
<tr>
<td class="eb_top" colspan="3" style="border-bottom-width: 0; height: 30px; font-size: 12px;">&nbsp;<b>Forum</b></td>
</tr>';
     global $catid;

  $db = new db;
  $db->connect();
  $connect = $db->query("SELECT * FROM eb_forum WHERE catecory = '1'");

  # START GET CATEGORYS #
  $catz = array();
  while ( $cat = mysql_fetch_object( $connect ) ) {
  /*echo "  <tr>
    <td height=\"22\" class=\"eb_menu1\">&nbsp;<b>{$cat->name}</b></td>
    <td width=\"10%\" height=\"22\"  class=\"eb_menu3\"><div align=\"center\">Topics:</div></td>
    <td width=\"10%\" height=\"22\" class=\"eb_menu3\"><div align=\"center\">Replies:</div></td>
     </tr>";*/
    $catz[] .= "<tr>
    <td height=\"22\" class=\"eb_menu1\">&nbsp;<b>{$cat->name}</b></td>
    <td width=\"10%\" height=\"22\"  class=\"eb_menu3\"><div align=\"center\">Topics:</div></td>
    <td width=\"10%\" height=\"22\" class=\"eb_menu3\"><div align=\"center\">Replies:</div></td>
     </tr>";
     $catid = $cat->catid;
          }
   foreach ( $catz as $c ) {
    $get = $db->query("SELECT * FROM eb_forum WHERE catid = '$catid' AND catecory = '0'");
   while ( $getinfo = mysql_fetch_object( $get ) ) {
//$replay_num =  sql_get_topics("get_all_topics", "$forum_id");
  {
  $forum_id = $getinfo -> ForumID;
// Get Rows
$query = "SELECT * FROM `eb_topic` WHERE `ForumID` = '$forum_id'";
$connect = mysql_query($query);
$num_topic_rows = mysql_num_rows($connect);
// End Get Rows
// Get Rows
$query2 = "SELECT * FROM `eb_post` WHERE `ForumID` = '$forum_id'";
$connect2 = mysql_query($query2);
$num_replay_rows = mysql_num_rows($connect2);
// End Get Rows
  $forum_id = $getinfo -> ForumID;
  $desc = $getinfo -> desc;
  $mods = $getinfo -> mods;
  $name = $getinfo -> name;
   echo '<tr>
       <td width="80%" class="forum_footer">&nbsp;<a href="?showforum=' . $forum_id . '"><b>' . $name . '</b></a><br>
     &nbsp;' . $desc . '<br>
        <b>&nbsp;Forum led by:</b><a href="?group=' . $mods . '">&nbsp;' . $mods . '</a></td>
        <td width="10%" class="forum_footer2"><div align="center"></div>      <div align="center">'. $num_topic_rows .'</div></td>
        <td width="10%"  class="forum_footer2"><div align="center"></div>      <div align="center">'. $num_replay_rows .'</div></td>
       </tr>';
  }
   }
   }
  
}
?>


I have tried all possible ways that i can think off still i cannot fix it, someone please help smile.gif

Notice from saint-michael:
no bumping topics someone will see it and make a post.


This post has been edited by Saint_Michael: Sep 13 2006, 12:51 PM
Go to the top of the page
 
+Quote Post
Saint_Michael
post Sep 13 2006, 12:59 PM
Post #2


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,466
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



Although I can't in terms of what you can add but i will provide you some links to give you some idea's on creating a forum

http://www.pixel2life.com/tutorials/count/...hp_based_forum/
http://www.pixel2life.com/tutorials/count/...ds_and_replies/

this should give you some ideas on where to go next.
Go to the top of the page
 
+Quote Post
Arne-Christian
post Sep 13 2006, 03:09 PM
Post #3


Member [Level 1]
****

Group: Members
Posts: 62
Joined: 22-December 05
From: Sandefjord,Norway
Member No.: 16,078



Thanks a LOT!This fixed it smile.gif And just again thanks a lot for helping me.
Go to the top of the page
 
+Quote Post
Saint_Michael
post Sep 13 2006, 04:44 PM
Post #4


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,466
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



no problem keep us up to date as well. if you need any more php help go here. www.pixel2life.com. that got quite a database of php tuts that can help you out.
Go to the top of the page
 
+Quote Post
alex1985
post Jun 16 2008, 03:40 PM
Post #5


Super Member
*********

Group: [HOSTED]
Posts: 411
Joined: 9-February 08
Member No.: 57,615



Really good topic to follow, I should wait for some replies,
Go to the top of the page
 
+Quote Post
alex1985
post Jul 2 2008, 04:24 AM
Post #6


Super Member
*********

Group: [HOSTED]
Posts: 411
Joined: 9-February 08
Member No.: 57,615



Anymore replies, still waiting?!
Go to the top of the page
 
+Quote Post
galexcd
post Jul 4 2008, 05:23 PM
Post #7


Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software.
***********

Group: [HOSTED]
Posts: 1,026
Joined: 25-September 05
From: L.A.
Member No.: 12,251



This topic is two years old and resolved. Why would there be any more replies?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Wap Forum(9)
  2. My Forum/shoutbox(8)
  3. Php Classes(1)
  4. How Handle Sending Back Multiple Checkboxes(1)
  5. Can My Forum And Website Use The Same Profiles?(3)
  6. Forum Signatures Help(1)
  7. Phpskye The New Forum Software.(4)
  8. Multiple Options?(3)
  9. Creating Profiles In Php/mysql ?(7)
  10. Creating Communities/groups In Php ?(2)
  11. How I Can Display Forum Topic On Main Website ?(4)
  12. Do Somebody Have A Tutorial About... How To Create A Forum?(11)
  13. Free Web Forum Scripts?(7)
  14. Wiki Software(6)
  15. Ipb Multi Forum (hosting Mod)(6)
  1. [forum] Double Posting Happening By An Error(3)
  2. Php Forum Signature(10)
  3. Protecting My Code(5)
  4. How To Display The Latest Forum Post On Main Page(4)
  5. Forum Troubles(2)
  6. Using Multiple Selection Array In Table To Order Data(1)
  7. Multiple Drop Down Lists ?(4)
  8. Creating A Login Box That Links To My Phpbb Forum(4)
  9. Forum Last Post And Avatar(5)
  10. Php And Flash Image Gallery(5)
  11. Forum Script(3)
  12. Creating Something With Co-ordinates With Php.(12)
  13. Category, Subcategory?(14)