![]() |
Forum Permissions
Thanks
Thank you! |
1 Attachment(s)
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>! |
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 |
Your (Broekie) code is as follows:
Code:
// To make sure that not logged in users can't view threads Code:
// To make sure that not logged in users can't view threads Would that work? Does != work in PHP or am I confusing it with ASP? <> perhaps? Anyone? Bueller? Cygnus |
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 |
Ah... so none of you guys know PHP?
That's kind of surprising... Cygnus |
All times are GMT. The time now is 09:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|