Log in

View Full Version : hiding a forums based on conditional


AsscBB
05-16-2008, 03:43 AM
Hey all,

Well after a brief hiatus from setting up my board, I've gotten back into it and run into a bit of a problem. I have set up a table which mimicks usergroups to segregate my users into different categories since the default usergroups did not meet my needs. Now, I want to use this table to drive wether or not to hide a forum. Basically, selectivly show forums based on my custom table. I think this would be a simple hack adding an if statement around the forum code, but I don't know which file this is in. Can someone point me in the right direction? I'm still learning MySQL and PHP, but I'm more than proficient in VB - which in short means the syntax still throws me a curve every now and then and tracing things across the files can be quite daunting!

I appreciate any help!

Scott

calorie
05-16-2008, 05:23 AM
One idea would be to edit the construct_forum_bit function, perhaps fetch what you need about the user outside the for loop and then set an if condition inside the for loop that changes display order to zero if a certain condition is met.

AsscBB
05-16-2008, 03:15 PM
Oooh! Thanks!

I'm still learning how vBulletin works and your suggestion looks just like what the doctor ordered!!!

Thanks again!