The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I have a PHP page outside the forum directory that I am trying to integrate some vB features into using the global.php method.
an example: Code:
<B>Welcome</B> to <a href="<?=$site_url?>"> <?=$site_name?> </a>, <? if ($bbuserinfo['username']=='Unregistered') { echo 'Guest'; } else { echo $bbuserinfo['username']; } ?> !</font></p> Code:
Welcome to <sitename>, <username>! Now - here is where the problems begin.. By including global.php at the start of the page, i believe that if I am logged into the forums, that code should show my username. It doesnt. it sees me as 'not logged in'. IN addition to this, for some weird reason, it seems to lose the output for $site_name (my own non-vB variable). If I comment out the include for global.php, my own variables work fine.. Im clueless as to why... and would appreciate any help. Cheers in advance. ![]() |
#2
|
||||
|
||||
![]()
One of the things global.php does is clear all variables.
|
#3
|
||||
|
||||
![]()
Bugger.. is there any way around this?
Ok. what I've started doing is instead of using the CMPS, I simply include the global.php file and use things like $bbuserinfo['username'] on the page. Like so: PHP Code:
The above.. works fine.. on its own. But Im using this in a php page with its own variables. Similiar to this: PHP Code:
And by using that approach.. by including global.php it seems to clear all the values stored in my own variables.. At the end of the day, I only seem to be able to show one set or the other. HELP! [RESOLVED] I forgot to include global.php BEFORE anything else. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|