The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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? |
![]() |
|
|