![]() |
Would it be possible to set a forum so it doesn't display on the main index with the other forums, but in the forum jump dropdown boxes, it's there as normal?
|
There is one easy way I can think of right now.
In functions.php, change this: Code:
$iforums=$DB_site->query('SELECT forumid,parentid,displayorder,title FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder,forumid'); Code:
$iforums=$DB_site->query('SELECT forumid,parentid,displayorder,title FROM forum WHERE active=1 ORDER BY parentid,displayorder,forumid'); I guess you can add another 'special option' for the display order, let's say -1, but that would take more hacking. |
That looks like just what I need :) All I want is for my zine-related forums to not appear in the main community listing, so this should be perfect.
Thanks as always! :D |
Just a followup... this doesn't work :( They neither display on the forum index OR on the forumjump (I definitely want them displayed on the latter)...
Any ideas?:( Frustratingly yours Mark :p |
just add these forums manually to the forumjump template.
eg, place <option value="1">Forum No 1</option> there. |
I have multiple template sets, and if I ever need to change which forums are viewable or not, re-editing the templates would be a pain in the bum to say the least :)
|
Ok, I'm sorry.
It's not displayed because it's using a cache already set in a previous code, so it doesn't use what I told you to replace. Sorry. :( Only way I can think of is not using the forum cache at all, but that would really slow down the forumjump box. |
Ok, that's cool FF :) It was more just the icing on the cake rather than something essential :)
You can't have the answers all the time! :p Thanks :) Mark |
All times are GMT. The time now is 01:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|