SoapSwap Forums

 
"; echo " "; //Get the category name for breadcrumb $database->setQuery("SELECT name,locked,review, parent from #__sb_categories where id='$catid'"); $database->loadObject($objCatInfo); //Get the Category's parent category name for breadcrumb $database->setQuery("SELECT name,id FROM #__sb_categories WHERE id='$objCatInfo->parent'"); $database->loadObject($objCatParentInfo); // set page title $mainframe->setPageTitle( $objCatParentInfo->name.' - '.$objCatInfo->name.' - '.$sbConfig['board_title'] ); //check if this forum is locked $forumLocked=$objCatInfo->locked; //check if this forum is subject to review $forumReviewed=$objCatInfo->review; echo ""; echo '"; echo " "; echo "
'._GEN_POST_NEW_TOPIC.''; } else{ echo ''._GEN_POST_NEW_TOPIC.''; } } echo '
'; //pagination 1 if (count($messages[0]) > 0) { echo _PAGE; if (($page-2) > 1) { echo '1 '; echo "... "; } for ($i=($page-2)<=0?1:($page-2); $i<= $page+2 && $i<= ceil($total/$threads_per_page); $i++) { if ($page == $i) { echo "[$i] "; } else { echo ''.$i.' '; } } if ($page+2 < ceil($total/$threads_per_page)) { echo "... "; echo ''.ceil($total/$threads_per_page).''; } } echo "
'; echo ''; echo $sbIcons['forumlist'] ? ''._GEN_FORUMLIST.' > ' : _GEN_FORUMLIST; echo ' '; if (file_exists($mosConfig_absolute_path.'/templates/'.$mainframe->getTemplate().'/images/arrow.png')) { echo ''; } else { echo ''; } echo ' '.$objCatParentInfo->name.' '; if (file_exists($mosConfig_absolute_path.'/templates/'.$mainframe->getTemplate().'/images/arrow.png')) { echo ''; } else { echo ' '; } echo ' '.$objCatInfo->name.' '; if ($forumLocked) { echo $sbIcons['forumlocked'] ? ''._GEN_LOCKED_FORUM.'' : ' '._GEN_LOCKED_FORUM.''; $lockedForum=1; }else{echo "";} if ($forumReviewed) { echo $sbIcons['forummoderated'] ? ''._GEN_MODERATED.'' : ' '._GEN_MODERATED.''; $moderatedForum=1; }else{echo "";} echo "
"; //get all readTopics in an array $readTopics=""; $database->setQuery("SELECT readtopics FROM #__sb_sessions WHERE userid=$my->id"); $readTopics=$database->loadResult(); if ( count ($readTopics) == 0 ) { $readTopics = "0"; } //make sure at least something is in there.. //make it into an array $read_topics=explode(',',$readTopics); if (count($messages) > 0) { if ($view=="flat") include_once(JB_ABSPATH.'/flat.php'); else include_once(JB_ABSPATH.'/thread.php'); } else { echo "

"; echo '

'._SHOWCAT_NO_TOPICS; echo "

"; }?>
Page: 1 [2] 3 4 ... 473