setQuery($query); $results = $kunena_db->query() or trigger_dberror("Unable to read categories."); ; $parent_ids = @mysql_result($results, 0, 'parent'); //$cids=@mysql_result( $results, 0, 'id' ); $sname = "" . @mysql_result($results, 0, 'name') . ""; // write path if (empty($spath)) { $spath = $sname; } else { $spath = $sname . ' � ' . $spath; } // next looping $catids = $parent_ids; } $shome = '' . _GEN_FORUMLIST . ' '; $pathNames = $shome . ' � ' . $spath . " "; echo $pathNames; //Get the category name for breadcrumb $kunena_db->setQuery("SELECT id, name, locked, review, description, parent FROM #__fb_categories WHERE id='{$catid}'"); $objCatInfo = $kunena_db->loadObject() or trigger_dberror("Unable to read from categories."); //Get the Category's parent category name for breadcrumb $kunena_db->setQuery("SELECT name, id FROM #__fb_categories WHERE id='{$objCatInfo->parent}'"); $objCatParentInfo = $kunena_db->loadObject() or trigger_dberror("Unable to read from categories."); // set page title $document=& JFactory::getDocument(); $document->setTitle(stripslashes($objCatParentInfo->name) . ' - ' . stripslashes($objCatInfo->name) . ' - ' . stripslashes($fbConfig->board_title)); //check if this forum is locked $forumLocked = $objCatInfo->locked; //check if this forum is subject to review $forumReviewed = $objCatInfo->review; /* echo ''; echo isset($fbIcons['forumlist']) ? ''._GEN_FORUMLIST.' > ' : _GEN_FORUMLIST; echo ' '; if (file_exists(KUNENA_ROOT_PATH .DS. 'templates/'.$app->getTemplate().'/images/arrow.png')) { echo ''; } else { echo ''; } echo ' '.$objCatParentInfo->name.' '; if (file_exists(KUNENA_ROOT_PATH .DS. 'templates/'.$app->getTemplate().'/images/arrow.png')) { echo ''; } else { echo ' '; }*/ // echo ' '.$objCatInfo->name.' '; if ($forumLocked) { echo isset($fbIcons['forumlocked']) ? '' . _GEN_LOCKED_FORUM . '' : ' ' . _GEN_LOCKED_FORUM . ''; $lockedForum = 1; } else { echo ""; } if ($forumReviewed) { echo isset($fbIcons['forummoderated']) ? '' . _GEN_MODERATED . '' : ' ' . _GEN_MODERATED . ''; $moderatedForum = 1; } else { echo ""; } ?>