Log in

View Full Version : Which Hook Location to Hide Forum???


AsscBB
06-20-2008, 07:07 AM
I hope someone has an idea that may be able to help.

I'm trying to set up an alternate conditional structure to hide forums/subforums based on forumid, and other information. I have the conditional set up which will drive wether to show or hide, but where I'm stuck is:
*the proper command to use to change the permission on the fly
*which hook location(s) to either place or call the function

To give an example, lets say I have a true/false variable (at least this part works) I intend to use as a switch to show/hide a forumid , what command does my function need to call to allow/deny the user the ability to see/post/etc a forum/thread/post and which hook(s) should I use to place and call the function?

I've tried solving this problem with usergroups and permissions, but my application does not play well with that solution.

Thanks!

Scott

Dismounted
06-20-2008, 10:15 AM
An easier method (IMO) would be to edit the forumhome_forumbit_* templates and wrap them with a forum ID conditional.

AsscBB
06-20-2008, 01:49 PM
Would that approach keep the posts under a hidden forum unsearchable?

Dismounted
06-21-2008, 04:04 AM
Set the display order to 0 as well.