PDA

View Full Version : Change Forum Display On Index


lostincable
03-16-2009, 12:57 AM
I am trying to limit the forums that are displayed on the index. I want to have only one forum listed on the index page and the rest removed.

I know this can be done by hiding the forums in the acp but I would like them to be physically removed from the index not just hidden. I believe this would be done by changing
"forumdisplay.php" to only display a selected number of forums, again I would like to do this within the code of vbulletin and not the database.

I have looked at the following files,

function_forumdisplay.php
forumdisaply.php

And I am sure there is a way in the code but I am not a programmer so unable to determine what to change to limit the forum id's it draws from the datase.

Again I would like to do this through the code of vbulletin and not the database.

Any one have any ideas?

Dismounted
03-16-2009, 04:57 AM
Just set the display order of the forum to zero?

lostincable
03-16-2009, 05:01 AM
Are you saying to do that from the admin panel?

Thats what I am trying to avoid, if i do in the amdincp it will change it in the database.

I want to do this at a code level so the php code only draws a select forum (s) to display.

Does that make sense?

Dismounted
03-16-2009, 05:03 AM
Is there a problem with that? Seriously. All it changes is a display order...

lostincable
03-16-2009, 05:13 AM
Yes thats the whole point, if I do it at a database level it affects multiple domains that is because the database is shared.

If I can do it at a code level it affects only the coded site.

Dismounted
03-16-2009, 11:13 AM
The forums are fetched in construct_forum_bit() (functions_forumlist.php). However, from memory, there are no appropriate hooks to use, so you will most likely have to edit that file directly.

Also note that what you're doing may require more than one vBulletin license.