The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using vbulletin class within own function.
Hi,
I want to use the classes of vB within my own functions after including global.php. Code:
<? <?PHP // include vbulletin functions chdir('./community'); require_once('./global.php'); function checkLogin (){ if($vbulletin->userinfo['userid'] > 0){ return true; } else{ return false; } } ?> Found out that I had to use: global $vbulletin; within the function. Is this save to do? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|