PDA

View Full Version : vB-powered page


NxTek
06-08-2005, 07:29 PM
Hi,
I'm making a page that basically outputs the username to use with another script.

Is there code that would make this page vB-powered? I'm assuming I can use something like this -

<?php
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);

chdir('/home/httpd/vhosts/onlinepokerlistings.com/httpdocs/forums');

require_once('./global.php');

php echo $bbuserinfo['username'];
?>

Thanks in advance!

NxTek
06-11-2005, 06:59 PM
Anyone?

Reeve of shinra
06-11-2005, 10:19 PM
That should work but I think it should be


echo $bbuserinfo['username'];


You have a php in front that shouldnt be there so far as I can tell.

NxTek
06-11-2005, 10:33 PM
Excellent. Thanks!!