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(); } View::show_header('Forums'); ?>

Forums

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