query("SELECT l.TopicID, l.PostID, CEIL((SELECT COUNT(ID) FROM forums_posts WHERE forums_posts.TopicID = l.TopicID AND forums_posts.ID<=l.PostID)/$PerPage) AS Page FROM forums_last_read_topics AS l WHERE TopicID IN(".implode(',',$TopicIDs).") AND UserID='$LoggedUser[ID]'"); $LastRead = $DB->to_array('TopicID', MYSQLI_ASSOC); } else { $LastRead = array(); } show_header('Forums'); ?>

Forums

query("SELECT RestrictedForums FROM users_info WHERE UserID = ".$LoggedUser['ID']); list($RestrictedForums) = $DB->next_record(); $RestrictedForums = explode(',', $RestrictedForums); foreach ($Forums as $Forum) { list($ForumID, $CategoryID, $ForumName, $ForumDescription, $MinRead, $MinWrite, $MinCreate, $NumTopics, $NumPosts, $LastPostID, $LastAuthorID, $LastPostAuthorName, $LastTopicID, $LastTime, $SpecificRules, $LastTopic, $Locked, $Sticky) = array_values($Forum); if ($MinRead>$LoggedUser['Class'] || array_search($ForumID, $RestrictedForums) !== FALSE) { continue; } $Row = ($Row == 'a') ? 'b' : 'a'; $ForumDescription = display_str($ForumDescription); if($CategoryID!=$LastCategoryID) { $LastCategoryID=$CategoryID; if($OpenTable) { ?>

$LoggedUser['CatchupTime'])) { $Read = 'unread'; } else { $Read = 'read'; } /* Removed per request, as distracting if($Locked) { $Read .= "_locked"; } if($Sticky) { $Read .= "_sticky"; } */ ?>
Forum Last Post Topics Posts

There are no topics here'.'create one'.'' : ''?>. by