I have a custom page outside of the forums that I want to use the vbulletin session / login with. I followed the directions at
https://vborg.vbsupport.ru/showthread.php?t=98009 and it seems to be somewhat working, however, even though i am logged into the forums it always returns a userId of 0 and acts as if I am not logged in.
PHP Code:
<?php
chdir('/home/path/to/forums');
require_once('./global.php');
if (!is_member_of($vbulletin->userinfo, 6,7,5,9,23) ||
is_member_of($vbulletin->userinfo, 8))
{
print_no_permission();
}
I am using nodejs so am using port 3000 on my site. I have the php processor working, just can't seem to get the vbulletin session.
What am I doing wrong?