View Full Version : Adding view controls to a page
Merriweather
12 Feb 2007, 01:03
I have some parts of my forum that are currently open to anyone, guest or registered. I want to add controls to those pages so I can set each usergroup's permissions whether they can view the page or not -- basically, I want the "You are not logged in or you do not have permission" message to come up if a group I deny permission to tries to view that area of the forums.
I realize there's a bit of work involved here, but I wondered if someone could be kind enough to help me muddle through adding this control to a part of my forum?
Analogpoint
12 Feb 2007, 03:07
Can't you just set the permissions for the individual forum? Or am I not understanding you...
Merriweather
12 Feb 2007, 03:19
Sorry I wasn't clear here, as I'm not talking about a forum. I'm talking about additional pages or mods that I want to control who can and cannot see them. :)
Analogpoint
12 Feb 2007, 03:35
Take a look at this thread, and see if you can use the functions to check if someone's logged in or not on your other pages. Actually, why don't you just check for the vB cookie to see if they're logged in?
Merriweather
12 Feb 2007, 03:44
It's a start, but I'm not looking just to see if they are logged in. I want to be able to control settings per usergroup.
Analogpoint
12 Feb 2007, 04:12
Hmmmm. You'll probably have to access the vb database directly and look up their permissions then.
Reeve of shinra
12 Feb 2007, 04:31
http://www.vbulletin.org/forum/showthread.php?t=98009 -- look under "Limiting Access to the Script" for tips to get you started.
Merriweather
12 Feb 2007, 04:35
Thank you, Reeve of shinra!
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.