Log in

View Full Version : If forum is private, don't show subforums on forumhome


007
04-21-2005, 03:01 PM
Hey what is the if statement I need to put around the subforum code to make it so subforums aren't displayed on forumhome if they are in a forum that the person doesn't have access to?

Thanks.

~007

Snow
04-21-2005, 03:05 PM
Why don't you use forum permissions in the adminCP... just state which usergroups can't see the sub-forums and they won't see them.

007
04-21-2005, 03:15 PM
Good point, will try that lol!

Actually that won't work I don't think. I want them to see the main forum still, just as Private.

Snow
04-21-2005, 04:49 PM
The main forum you could set as View forum - yes, view others threads - no post threads-no. Sub-forums don't have to inherit permissions from the parent forum and you can set them to View forum - no.

007
04-21-2005, 10:49 PM
Interestingly enough, I already have both forums set to "View forum - no" for guests and some usergroups and since I have "Hide private forums - no" selected, it just shows both still. Nobody can get in, but still... Just want to make it not show up in subforums listings.. :(