PDA

View Full Version : Displaying hidden(order="0") in jump menu?


gynot67
12-07-2002, 01:42 AM
I originally posted this at vbulletin.com and they directed me here because it would require hacking.

I have a forum hidden by using display order="0" then I link direct using forumdisplay.php?forumid=13.
How can I get this to show in the forum jump so when a Mod goes to move a thread from another board they have the option to move it to this seperate forum? It don't display in jump list

Xenon
12-07-2002, 11:34 AM
open admin/functions.php

find (within function makeforumjump)
if ( !isset($iforumcache) ) {
$iforums=$DB_site->query('SELECT forumid,parentid,displayorder,title FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder,forumid');
while ($iforum=$DB_site->fetch_array($iforums)) {
$iforumcache["$iforum[parentid]"]["$iforum[displayorder]"]["$iforum[forumid]"] = $iforum;
}

change it to: if ( !isset($iforumcache) ) {
$iforums=$DB_site->query('SELECT forumid,parentid,displayorder,title FROM forum WHERE active=1 ORDER BY parentid,displayorder,forumid');
while ($iforum=$DB_site->fetch_array($iforums)) {
$iforumcache["$iforum[parentid]"]["$iforum[displayorder]"]["$iforum[forumid]"] = $iforum;
}