The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Allowing Users Access to ONLY One Sub-Forum
Good afternoon fellas,
I have hit a wall in trying to set this up. Obviously when new users sign up to a vb4 site, they have access to all of the normal forums and sub-forums (except for private/restricted ones). I am trying to create a KIDS usergroup, that ONLY has access to a single sub-forum, called KIDS. I do not want them to see any other forum posts outside of the KIDS sub-forum. I do not want to manually go through and edit the forum/sub-forum permissions on the scores of existing subs, restricting access to KIDS. If I do it this way, any time we create a new sub-forum in the future, we have to once again worry about remembering to restrict KIDS from it, and sooner or later, we will forget, and the KIDS will see adult signatures, swearing, chicks in bikinis, etc... We want to avoid this type of maintenance. Do any of you have any idea of how to allow an entire USERGROUP access to only a SINGLE SUB-FORUM, and NO other FORUMS on the site? Very appreciated, |
#2
|
||||
|
||||
If you only want the kids to EVER see one forum (other than when they aren't logged in but thats another permission story) then put this in your header template right at the very top
HTML Code:
<vb:if condition="$bbuserinfo['usergroupid'] == X AND $forum[forumid] != X"> <meta HTTP-EQUIV="REFRESH" content="0; url=PUT YOUR KIDS FORUM URL HERE"> </vb:if> |
#3
|
|||
|
|||
Thanks Simon, I will try this today. I appreciate the feedback very much!
--------------- Added [DATE]1341600456[/DATE] at [TIME]1341600456[/TIME] --------------- Hey there Simon, I created usergroup KIDS (ID 19) and sub-forum KIDS [ID 88], created a user called KidsTest who was assigned to usergroup KIDS only. I added the changes below to the very top of my header and saved it. Upon logging in for the very first time, the KidsTest account still sees every single forum and sub. I have tried it with and without tic marks around the 19 and 88, and it makes no difference. The code I used: <vb:if condition="$bbuserinfo['19'] == X AND $forum['88'] != X"> <meta HTTP-EQUIV="REFRESH" content="0; url=https://www.og13.com/forums/forumdisplay.php?88-Kids-Customs"> </vb:if> Anything thoughts? Thanks! Anthony |
#4
|
||||
|
||||
It should be this!!!
HTML Code:
<vb:if condition="$bbuserinfo['usergroupid'] == 19 AND $forum[forumid] != 88"> <meta HTTP-EQUIV="REFRESH" content="0; url=https://www.og13.com/forums/forumdisplay.php?88-Kids-Customs"> </vb:if> |
#5
|
|||
|
|||
That code did the trick, but...
It refreshes that page over and over, from Firefox, Internet Explorer, and Chrome. I even created a test thread inside of the KIDS sub-forum, and when the KidsTest login enters the thread, it immediately kicks back out to the KIDS sub-forum root folder and auto-refreshes eternally. Does it have anything to do with the REFRESH command in the code? I am sending you the username and password in email, so that you can login and see what I am, IF you do not mind. Thanks, Anthony |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|