The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Forum Permissions
Thanks
Thank you! |
#2
|
||||
|
||||
How about this:
Guests can see the thread titles, but when they click on it, they get the following error: Code:
Sorry, you're not allowed to view threads when you're not logged in. Please login or <a href="register.php">Register</a>! |
#3
|
|||
|
|||
This is SO close to what I want... but not quite.
I want specific user groups to be able to see all of the boards (or some at my discretion) on the site but when they click on a board that they do not have permission to see, they get the "not authorized" error that lists possible reasons. Currently, they cannot see anything. If I switch "Can view forum" to yes in forum permissions, they can see the board but when they click on it, they get a "No posts in the last 30 days" message when this is not the case as there have been posts on that board today. Solutions? Thanks, Cygnus |
#4
|
|||
|
|||
Your (Broekie) code is as follows:
Code:
// To make sure that not logged in users can't view threads if ($bbuserinfo['usergroupid']==1) { eval("standarderror(\"".gettemplate("error_threadviewnotloggedin")."\");"); exit; } // End of code Code:
// To make sure that not logged in users can't view threads if ($bbuserinfo['usergroupid']!=2) { eval("standarderror(\"".gettemplate("error_threadviewnotloggedin")."\");"); exit; } // End of code Would that work? Does != work in PHP or am I confusing it with ASP? <> perhaps? Anyone? Bueller? Cygnus |
#5
|
|||
|
|||
OK... just thought of a problem with that code...
!=2 will not work as it will keep out Admins, SuperMods and Mods. I need something that will make specific boards viewable to four usergroups and produce the "no authorization" error for all other groups. Would this work: if ($bbuserinfo['usergroupid']!=2 || 3 || 4) Am I now throwing in another language? Thoughts? Ideas? Help... Cygnus |
#6
|
|||
|
|||
Ah... so none of you guys know PHP?
That's kind of surprising... Cygnus |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|