PDA

View Full Version : Removing a forum from the drop down menu?


Sweet Cheeks
09-12-2002, 09:46 PM
Would this be a template modification? We have a forum that's only accessible by clicking through a Big Red Warning and I wanted to remove it's direct access from the pull down menu

Thanks for you help :banana:

Neo
09-12-2002, 11:44 PM
Well I know is forumdisplay you can find this variable...$forumjump

then if you look for the template: forumjump that will have the basics. Right under that should be forumjumpbit which should have the forum info. But since the forum info is called from a PHP file you would have to go into.. admin/functions.php and then in the PHP function makeforumjump edit the code a little.

I think then find this


$iforums=$DB_site->query('SELECT forumid,parentid,displayorder,title FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder,forumid');


and then edit it to something like this (the XX is what foumr id you want to exclude)

$iforums=$DB_site->query('SELECT forumid,parentid,displayorder,title FROM forum WHERE displayorder<>0 AND active=1 AND forumid!=XX ORDER BY parentid,displayorder,forumid');


I havent tryed it out yet but it should work oO;;;

Sweet Cheeks
09-18-2002, 05:53 AM
Thank you Neo :banana: