Xenforo integration with website

No i am not using any CMS i have my own website on vb was :

PHP:
<?php
$curdir = getcwd ();
chdir('forum');
require_once('./global.php');
chdir ($curdir);

echo $vbulletin->userinfo['username']; // Here I can display now my username with i logged in in the forum
?>
 
Top Bottom