' . fb_get_pathway($kunena_db, $obj_fb_cat, $bool_set_title, $obj_post) . ''; } /** * Function to print the pathway * @param object database object * @param object category object * @param int the post id * @param boolean set title */ function KUNENA_get_pathway(&$kunena_db, $obj_fb_cat, $bool_set_title, $obj_post = 0) { global $fbIcons; $document=& JFactory::getDocument(); $fbConfig =& CKunenaConfig::getInstance(); //Get the Category's parent category name for breadcrumb $kunena_db->setQuery("SELECT name, id FROM #__fb_categories WHERE id='" . $obj_fb_cat->getParent() ."'"); $objCatParentInfo = $kunena_db->loadObject(); check_dberror("Unable to load category."); //get the Moderator list for display $kunena_db->setQuery("SELECT * FROM #__fb_moderation AS m LEFT JOIN #__users AS u ON u.id=m.userid WHERE m.catid='" . $obj_fb_cat->getId() . "'"); $modslist = $kunena_db->loadObjectList(); check_dberror("Unable to load moderators."); // echo '
'; // List of Forums // show folder icon $return = '' . _GEN_FORUMLIST . ' '; // link to List of Forum Categories $return .= ' '.CKunenaLink::GetKunenaLink(_GEN_FORUMLIST).'
'; // List of Categories if ($objCatParentInfo) { if ($bool_set_title) { $document->setTitle(stripslashes($objCatParentInfo->name) . ' - ' . stripslashes($obj_fb_cat->getName()) . ' - ' . stripslashes($fbConfig->board_title)); } // show lines $return .= ' |-'; $return .= ' ' . $objCatParentInfo->name . ' '; // link to Category $return .= ' '.CKunenaLink::GetCategoryLink('listcat', $objCatParentInfo->id, $objCatParentInfo->name).'
'; $return .= ' | '; } else { if ($bool_set_title) { $document->setTitle(stripslashes($obj_fb_cat->getName()) . ' - ' . stripslashes($fbConfig->board_title)); } } // Forum // show lines $return .= ' |-'; $return .= ' + '; // Link to forum $return .= ' '.CKunenaLink::GetCategoryLink('showcat', $obj_fb_cat->getId(), $obj_fb_cat->getName()); //check if this forum is locked if ($obj_fb_cat->getLocked()) { $return .= isset($fbIcons['forumlocked']) ? '  '
            . _GEN_LOCKED_FORUM . '' : ' ' . _GEN_LOCKED_FORUM . ''; } // check if this forum is reviewed if ($obj_fb_cat->getReview()) { $return .= isset($fbIcons['forumreviewed']) ? '  ' . _GEN_REVIEWED . '' : ' ' . _GEN_REVIEWED . ''; } //check if this forum is moderated if ($obj_fb_cat->getModerated()) { $return .= isset($fbIcons['forummoderated']) ? '  ' . _GEN_MODERATED . '' : ' ' . _GEN_MODERATED . ''; $text = ''; if (count($modslist) > 0) { foreach ($modslist as $mod) { $text = $text . ', ' . $mod->username; } $return .= ' (' . _GEN_MODERATORS . ': ' . ltrim($text, ",") . ')'; } } if ($obj_post != 0) { if ($bool_set_title) { $document->setTitle($obj_post->subject . ' - ' . stripslashes($fbConfig->board_title)); } // Topic // show lines $return .= '
 | '; $return .= ' | '; $return .= ' |-'; $return .= ' + '; $return .= ' ' . $obj_post->subject . ''; // Check if the Topic is locked? if ((int)$obj_post->locked != 0) { $return .= ' ' . _GEN_LOCKED_TOPIC . ''; } } // echo '
'; return $return; } /** * Function that get the menu used in the header of our board * @param array $fbConfig * @param array $fbIcons * @param int $my_id * The user id * @param int $type * What kind of header do you want to print: 1: default (home/profile/latest posts/faq), 2: extended1 (home/profile/view/pending messages/faq) ,3:extended2 (home/profile/reply/view/pdf/faq) * @param string $view * The view the user is currently using, only needs to be pass when type==3 or type==2 * @param int $catid * Only needs to be passed when type==3 or type==2 * @param int $id * Only needs to be passed when type==3 or type==2 * @param int $thread * Only needs to be passed when type==3 or type==2 (well actually just give 0 when type==2) * @param boolean $is_moderator * Only needs to be passed when type==2 * @param int $numPending * Number of pending messages, only needs to be passed when type==2 * @return String $header * The menu :-) */ function KUNENA_get_menu($cbitemid, $fbConfig, $fbIcons, $my_id, $type, $view = "", $catid = 0, $id = 0, $thread = 0, $is_moderator = false, $numPending = 0) { $func = strtolower(JRequest::getCmd('func', '')); if ($func == '') // Set default as per config settings { switch ($fbConfig->fbdefaultpage) { case 'recent': $func = 'latest'; break; case 'my': $func = $my_id ? 'mylatest' : 'latest'; break; default: $func = 'listcat'; } } $header = '
'; return $header; } function getSearchBox() { $return = ''; return $return; } ?>