The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I just upgraded from 3.0 to 3.6.
I was using this code on an custom app to make sure people are logged in before going to a page. PHP Code:
Thanks! |
#2
|
|||
|
|||
![]()
Try this
Code:
require_once('../gathering/global.php'); if (!$vbulletin->userinfo['userid']) { print_no_permission(); } |
#3
|
||||
|
||||
![]()
No with that we just get a blank white page.
|
#4
|
|||
|
|||
![]()
I'm very sure that the code should work.
Verify your global.php path is correct. I've used this code on my script and it works correctly. Code:
require_once('./global.php'); if (!$vbulletin->userinfo['userid']) { print_no_permission(); } |
#5
|
||||
|
||||
![]()
Yes it was a pathing issue!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|