The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Vbulletin Authentication on NON-VB PAGES
I am looking for a modification or snippet of code that can be placed on pages that will check to see if a user is a community member and either display the page requested, display a variation of the page or redirect to registration, depending on if the user is a GUEST, REGISTERED MEMBER, or any certain usergroup.
This might come in handy when people use paid subscriptions to allow different access to certain pages. Can anyone give me a hand? |
#2
|
||||
|
||||
Are they currently using global.php or totally custom?
|
#3
|
|||
|
|||
Nobody is using anything yet, lol.
Thats why this is a request. Seeing if anyone out there is willing to work with me and see if it is possible to get permissions to work outside of vbulletin and make it work on non-vb pages by using VB authentication for those pages. |
#4
|
||||
|
||||
I meant your script.
global.php is the file that makes it 'a vbulletin page' if it is called you can easily use permissions. It depends on what you have now to determine how hard it would be to do it this way. |
#5
|
|||
|
|||
I haven't started on anything. Im not familiar with the permission system and how it authenticates for VB3. So, im basically inquiring if anyone here with the knowledge on how it works, would be able to tackle the idea.
How I was thinking to set it up, would be like this. If not a member it would display a no permission error. Not a Vbulletin 'no-permission' error, but one made to fit the site. If you were a member you would be taken to the page in question. It would kind of behave in the same way the Password Protect Non-Vb pages would, but without the pop-up window. All the login forms would be ON the actual site, and possibly depending on which usergroup the person was a member of on the forums would also change. So if you only want to allow Usergroup 12 to view that page because usergroup 12 is a paying usergroup you could set that up. Or allow usergroups 12, 15, and 17, that sort of thing. I think this would be a fantastic thing for people who want to take their vbulletin integration that much farther with paid subscriptions. |
#6
|
||||
|
||||
If you havn't started anything yet here is a good tutorial...
https://vborg.vbsupport.ru/showthread.php?t=62164 |
#7
|
|||
|
|||
yeah, but what about groups? i cant find to put if this usergroup display 'this' or else display 'this'
if im using an echo statement i dont need to put it in vb templates right? how can i do that properly? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|