The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Controlling access to external pages via vB credentials
In vB 2.x I was able to use this code to control access to a page based on member group.
PHP Code:
Thanks! |
#2
|
||||
|
||||
Most of the variables and functions have changed in vB3 now, you should use something like
PHP Code:
|
#3
|
|||
|
|||
OK, lemme try it out and I'll let you know how it went.
Thanks! |
#4
|
||||
|
||||
Should that be require_once ? :P
|
#5
|
||||
|
||||
It doesn't have to but yes it can be.
|
#6
|
|||
|
|||
OK, works like a charm. I just dropped the correct code into a pre-existing page as you can see:
PHP Code:
|
#7
|
||||
|
||||
Can't think why that's happening. Also, theres unnessacary code in that script
(Unless you need to require bigthree.php and forumlist.php) |
#8
|
|||
|
|||
Yeah, I got rid of those two requires...I didn't notice them at first. The only solution I see is to have the subscription event change the primary user group from 1 to 11 instead of configuring it as a secondary user group....I can't see that this would be a problem, but I'm not sure.
|
#9
|
||||
|
||||
What I would do is use 1 print_output and use the fetch_templates in each if section.
E.g; PHP Code:
|
#10
|
||||
|
||||
^Recheck my post
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|