Thank you so much Lynne! I knew it had to be something simple...
Unfortunately when adding it into the header of our CMS (WP) I get:
Code:
Unable to add cookies, header already sent.
File: /home/userdir/public_html/wp-content/themes/newscast/header.php
Line: 2
Strange thing is, leaving the securitytoken empty now, it appears to be working. Maybe I threw a switch within VB that ignores it now?! Oh well, works for now...
This does work by the way to authenticate on a page outside of VB, but unfortunately tries to send headers again. It even returns "guest" if not logged in:
Code:
<?php
$curdir = getcwd ();
chdir('/home/jamgears/public_html/forums');
require_once('./global.php');
chdir ($curdir);
echo $vbulletin->userinfo['securitytoken'];
?>