PDA

View Full Version : Need help editing Jumping Spaces


01-24-2001, 07:46 PM
My subject makes sense, honest! My forumongers are a very picky bunch. They want the jump to bar on the forums to have no categories and no spaces. I've deleted the categories, but I can't delete the spaces. This is what I have left in global.php:
$forums=$DB_site->query("SELECT category.categoryid, category.title AS categorytitle,
forumid, forum.title AS forumtitle
FROM category
LEFT JOIN forum ON (category.categoryid = forum.categoryid)
WHERE category.displayorder<>0 AND forum.displayorder <> 0 AND active=1
ORDER BY category.displayorder, forum.displayorder");
$firstcat = 0;
$jumpforumbit = "";
while ($forum=$DB_site->fetch_array($forums)) {
$currentcat = $forum[categoryid];
if ($usecategories == 1) {
$optionselected="";
if ($firstcat != $currentcat) { // Print Category
$firstcat = $forum[categoryid];
// This creates our "blank line" in the dropdown
$jumpforumtitle="";
eval("\$jumpforumbits .= \"".gettemplate("jumpforumbit")."\";");
}
}

All I've done is delete random sections and this is what I've honed it down to, check out the forums in my profile to see what the code does if you want a visual.

01-28-2001, 05:26 PM
So, can anyone lend a hand here? The spaces make the list way too big.