The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
hiding a forums based on conditional
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 |
#2
|
|||
|
|||
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.
|
#3
|
|||
|
|||
Oooh! Thanks!
I'm still learning how vBulletin works and your suggestion looks just like what the doctor ordered!!! Thanks again! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|