Hey mates,
got a small problem, which is already transformed to a major one...
i want to add a login box to my wordpress frontend, and if the user is logged in to the forum it should display a welcome message and some related stuff...
main facts:
i am including the global.php while using this code (added it to the header.php in wordpress. that it's openend on every page):
if (!file_exists('/path/forum/global.php')) { echo "++++ IT!";
exit; }
require_once('/path/forum/global.php');
got that code in my sidebar:
$userid=$vbulletin->userinfo['userid'];
echo '"'.$userid.'"';
the result i get: "" => that means, i can't read the userid of a logged in user.
got any tipps? would be pretty happy if yes