Example #1
0
             $newTopicBG = " boardNewPostBG";
         }
         // Get Last Post Display Info
         if (count($arrForumTopics) > 0) {
             $boardObj->objPost->select($arrForumTopics[0]);
             $firstPostInfo = $boardObj->objPost->get_info_filtered();
             $boardObj->objTopic->select($firstPostInfo['forumtopic_id']);
             $lastPostID = $boardObj->objTopic->get_info("lastpost_id");
             $boardObj->objPost->select($lastPostID);
             $lastPostInfo = $boardObj->objPost->get_info_filtered();
             $postMemberObj->select($lastPostInfo['member_id']);
             $dispLastPost = "<div class='boardLastPostTitle'><a href='viewtopic.php?tID=" . $firstPostInfo['forumtopic_id'] . "#" . $lastPostID . "' title='" . $firstPostInfo['title'] . "'>" . $firstPostInfo['title'] . "</a></div>by " . $postMemberObj->getMemberLink() . "<br>" . getPreciseTime($lastPostInfo['dateposted']);
         } else {
             $dispLastPost = "<div style='text-align: center'>No Posts</div>";
         }
         $dispTopicCount = $boardObj->countTopics();
         $dispPostCount = $boardObj->countPosts();
         $arrDispSubForums = array();
         $arrSubForums = $boardObj->getSubForums();
         foreach ($arrSubForums as $value) {
             $subForumObj->select($value);
             $subForumInfo = $subForumObj->get_info_filtered();
             $arrDispSubForums[] = "<a href='" . $MAIN_ROOT . "forum/viewboard.php?bID=" . $value . "'>" . $subForumInfo['name'] . "</a>";
         }
         $dispSubForums = "";
         if (count($arrDispSubForums) > 0) {
             $dispSubForums = "<br><br><b>Sub-Forums:</b><br>&nbsp;&nbsp;" . implode("&nbsp;&nbsp;<b>|</b>&nbsp;&nbsp;", $arrDispSubForums);
         }
         $dispBoards .= "\n\t\t\t\t<tr class='boardRows" . $newTopicBG . "'>\n\t\t\t\t\t<td class='boardName dottedLine" . $newTopicBG . "'><a href='viewboard.php?bID=" . $boardInfo['forumboard_id'] . "'>" . $boardInfo['name'] . "</a>" . $dispNewTopicIMG . "<br><span class='boardDescription'>" . $boardInfo['description'] . $dispSubForums . "</span></td>\n\t\t\t\t\t<td class='dottedLine boardLastPost" . $newTopicBG . "'>" . $dispLastPost . "</td>\n\t\t\t\t\t<td class='dottedLine boardTopicCount" . $newTopicBG . "' align='center'>" . $dispTopicCount . "<span id='forumPageTopicCount' style='display: none'> Topics</span></td>\n\t\t\t\t\t<td class='dottedLine boardTopicCount boardPostCount" . $newTopicBG . "' align='center'>" . $dispPostCount . "<span id='forumPagePostCount' style='display: none'> Posts</span></td>\n\t\t\t\t\n\t\t\t\t</tr>\n\t\t\t";
     }
 }
Example #2
0
     $newTopicBG = " boardNewPostBG";
 }
 // Get Last Post Display Info
 if (count($arrForumTopics) > 0) {
     $subForumObj->objPost->select($arrForumTopics[0]);
     $firstPostInfo = $subForumObj->objPost->get_info_filtered();
     $subForumObj->objTopic->select($firstPostInfo['forumtopic_id']);
     $lastPostID = $subForumObj->objTopic->get_info("lastpost_id");
     $subForumObj->objPost->select($lastPostID);
     $lastPostInfo = $subForumObj->objPost->get_info_filtered();
     $postMemberObj->select($lastPostInfo['member_id']);
     $dispLastPost = "<div class='boardLastPostTitle'><a href='viewtopic.php?tID=" . $firstPostInfo['forumtopic_id'] . "#" . $lastPostID . "' title='" . $firstPostInfo['title'] . "'>" . $firstPostInfo['title'] . "</a></div>by " . $postMemberObj->getMemberLink() . "<br>" . getPreciseTime($lastPostInfo['dateposted']);
 } else {
     $dispLastPost = "<div style='text-align: center'>No Posts</div>";
 }
 $dispTopicCount = $subForumObj->countTopics();
 $dispPostCount = $subForumObj->countPosts();
 $arrDispMoreSubForums = array();
 $arrMoreSubForums = $subForumObj->getSubForums();
 foreach ($arrMoreSubForums as $value) {
     $subForumObj->select($value);
     $subForumInfo = $subForumObj->get_info_filtered();
     $arrDispMoreSubForums[] = "<a href='" . $MAIN_ROOT . "forum/viewboard.php?bID=" . $value . "'>" . $subForumInfo['name'] . "</a>";
 }
 $dispMoreSubForums = "";
 if (count($arrDispMoreSubForums) > 0) {
     $dispMoreSubForums = "<br><br><b>Sub-Forums:</b><br>&nbsp;&nbsp;" . implode("&nbsp;&nbsp;<b>|</b>&nbsp;&nbsp;", $arrDispMoreSubForums);
 }
 $subForumObj->select($boardID);
 $subForumInfo = $subForumObj->get_info_filtered();
 $dispSubForums .= "\n\t\t\t<tr class='boardRows" . $newTopicBG . "'>\n\t\t\t\t<td class='boardName dottedLine" . $newTopicBG . "'><a href='viewboard.php?bID=" . $subForumInfo['forumboard_id'] . "'>" . $subForumInfo['name'] . "</a>" . $dispNewTopicIMG . "<br><span class='boardDescription'>" . $subForumInfo['description'] . $dispMoreSubForums . "</span></td>\n\t\t\t\t<td class='dottedLine boardLastPost" . $newTopicBG . "'>" . $dispLastPost . "</td>\n\t\t\t\t<td class='dottedLine boardTopicCount" . $newTopicBG . "' align='center'>" . $dispTopicCount . "<span id='forumPageTopicCount' style='display: none'> Topics</span></td>\n\t\t\t\t<td class='dottedLine boardTopicCount" . $newTopicBG . "' align='center'>" . $dispPostCount . "<span id='forumPagePostCount' style='display: none'> Posts</span></td>\n\t\t\t\n\t\t\t</tr>\n\t\t";