The New Forum

Posted on Tuesday 18th November 2008 at 08:39 PM
UrbanTwitch
UrbanTwitch's Avatar
Remember SkillMaster's forum? Well I upgraded and added a lot more.

https://cookyx.com/forum.php

Going to have to be logged in to post, of course.

Wutcha think?
Posted on Tuesday 18th November 2008 at 08:58 PM
Dava
Dava's Avatar
not bad
Dava
Posted on Monday 22nd December 2008 at 09:59 PM
Nathan
Nathan's Avatar
nice when will you be uploading ?
Posted on Tuesday 23rd December 2008 at 01:31 PM
VicVance
VicVance's Avatar
Hey Urban please help me on mines, I m not asking you do do the whole thing for me but you know your last post infofrmtion it updates when someone makes a new tpic or replys to an older topic and the last post information updates. I really need mines to update the last post information if someone replyies to an older topic because at the moment it just updates if someone makes a new topic pleasee help:

this is how my code looks like

PHP Code
  1. //*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  2. // MAIN FORUM
  3. //*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4.  
  5. switch ($_GET['action']) {
  6. default:
  7. $fetch1 = mysql_query("SELECT * FROM `forum_category`");
  8. while ($category = mysql_fetch_array($fetch1)) {
  9.  
  10. echo "<div class='box'>
  11. <div class='forum_bar'> <img src='/images/icons/bullet4.gif' /> Smart CMS Community</div>
  12. </div><br>";
  13.  
  14. $fetch2 = mysql_query("SELECT * FROM `forum_topic` WHERE `cat_id` = '$category[id]'");
  15. while ($topic = mysql_fetch_array($fetch2)) {
  16. $getTopics = mysql_num_rows(mysql_query("SELECT * FROM `forum_thread` WHERE `thr_id` = '$topic[id]';"));
  17. $getReplies = mysql_num_rows(mysql_query("SELECT * FROM `forum_posts` WHERE `fid` = '$topic[id]';"));
  18. $getLatestTopic_a = mysql_query("SELECT * FROM `forum_thread` WHERE `thr_id` = '$topic[id]' ORDER BY `id` DESC LIMIT 1");
  19. $getLatestTopic = mysql_fetch_array($getLatestTopic_a);
  20. $timeago = date("jS F Y - h:i A", $getLatestTopic['timeposted']);
  21.  
  22. echo "<div id='forum_cat'>
  23. <div class='forum_contant'>
  24.  
  25. <div class='boxtitle'>Category: $category[name]<a href='?page=home&action=forum&id=$topic[id]'>&nbsp;&nbsp;&nbsp;<img src='images/default/form_enter.gif' border='0'></a></div>
  26.  
  27.  
  28. <div class='sub_forum'>$topic[name]</div>
  29. <div class='forum_image'><img src='$topic[icon]' /></div>
  30. <div class='forum_top'>Topics Made: $getTopics &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; Replies Made: $getReplies</div>
  31. <div class='forum_description'>";
  32. if (mysql_num_rows($getLatestTopic_a) == 0) {
  33. print "<fieldset>
  34. <legend>Last Post</legend>
  35. In: No Posts Made
  36. By: -<br>
  37. </fieldset>";
  38. } else {
  39. $getTopicReplies_query = mysql_query("SELECT * FROM `forum_posts` WHERE `thr_id` = '$getLatestTopic[id]';");
  40. $getTopicReplies_num = mysql_num_rows($getTopicReplies_query);
  41. $getTopicReplies = mysql_fetch_array($getTopicReplies_query);
  42. if(($getLatestTopic['timestamp'] > $getTopicReplies['timestamp']) || $getTopicReplies_num == 0 ){
  43. print "<fieldset>
  44. <legend>Last Post</legend>
  45. In: <a href="?page=forum&action=forumdisplay&id=$getLatestTopic[id]">$getLatestTopic[title]</a>
  46. By: <a href='?page=members&user=$getLatestTopic[poster]'>$getLatestTopic[poster]</a><br></fieldset>";
  47. }else{
  48. print "<fieldset>
  49. <legend>Last Post</legend>
  50. In: <a href="?page=forum&action=forumdisplay&id=$getLatestTopic[id]">$getLatestTopic[title]</a>
  51. By: <a href='?page=members&user=$getTopicReplies[poster]'>$getTopicReplies[poster]</a><br></fieldset>";
  52. }
  53. }
  54. print "</div>
  55. <div class='bottom'></div>
  56.  
  57.  
  58. </div>
  59. </div>";
  60.  
  61. }
  62. echo "<div class='clearer'></div>"; // give space sunder the forums
  63. }
  64.  
  65. $rows = mysql_num_rows($fetch1);
  66. if ($rows == 0) {
  67. echo ("<center><b>Forum is Empty<b></center>");
  68. }
  69. break; // end of main forum section
Posted on Tuesday 23rd December 2008 at 01:44 PM
Nathan
Nathan's Avatar
just wait for urban to upload his, im sure it wont be to far away
Posted on Tuesday 23rd December 2008 at 04:51 PM
VicVance
VicVance's Avatar
Ohh I did not know he was going to upload his, tht would be real cool if he does I am not making up bad comments to be rude at SkillMaster's tutorail, but honestly it is badly coded I was soon going to post how to get the view topic in shape but now I wont becuase urban will post his. Thanks
Posted on Thursday 25th December 2008 at 08:26 PM
UrbanTwitch
UrbanTwitch's Avatar
Mmhm.. soon!
Posted on Friday 26th December 2008 at 01:16 PM
VicVance
VicVance's Avatar
thanks allot UrbanTwitch
Posted on Tuesday 6th January 2009 at 04:55 PM
new2old
new2old's Avatar
Ok i'm jelous i tried for weeks to get the stickys topics to stay at the top and the other threads follow by newest post but i couldn't work it out.

Fancy giving me a hand?
Posted on Monday 19th January 2009 at 02:50 AM
Nathan
Nathan's Avatar
i dont think he is gonna post it, its been to long
Login or register to respond to this forum topic.