![]() |
User Privileges on non-vB pages
I am looking to make certain non-vB pages on my site accessible on various levels (i.e. Certain parts are displayed for Registered Users, additional parts are displayed for Mods/Admins, and Guests are brought to the vB login screen,) using the vBulletin cookie, but I have no idea about:
1) How to require the cookie for access. 2) How to make certain parts accessible to certain user-levels. Any help would be greatly appreciated. Thanks |
Try these two hacks maybe?
http://www.vbulletin.org/hacks/index...ack&hackid=548 http://www.vbulletin.org/hacks/index...ack&hackid=282 - miSt |
Those seem to use sessions, and I am looking to use cookies so users don't have to re-login every time. I want to have users login/register from the vB board itself, while the non-vB pages verify the cookie generated by vB. Is using the vB cookie on non-vB pages relatively safe, or is it opening a potential 'can of worms' of security risks?
|
|
That seems to just be a login portal for vB, but doesn't use the cookie for access to non-vB pages. What I am looking for (not a "hack" per se) is something that will allow me to do this on non-vB pages:
PHP Code:
|
I think you'll like WebTemplates
|
I am not really looking to hack up my vB, especially since vB3 is due out any month now. I noticed this bit of code in the thread for your hack:
PHP Code:
|
If you are ready to manually edit/update permissions per .php file without any user interface for administration, yes you can just insert:
PHP Code:
PHP Code:
|
Is it possible to do this using a file that is not in my forums directory?
My directory structure is: public_html -forums ---admin ---images ---mod I'm getting this error PHP Code:
PHP Code:
|
PHP Code:
|
All times are GMT. The time now is 01:41 AM. |
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:
|