Hi guys.
Is there any easy way to include the vBul 4 login session on external pages? I'm trying to integrate vBulletin into a site, and we have decided to let vBulletin handle the entire authorization process. How do I include the session in other pages? All I really need is two variables:
- Is the user logged in or not
- If so, what is the users userid (or better yet username... or both, lol)
Thanks in advance,
Ferdia
--------------- Added [DATE]1304556074[/DATE] at [TIME]1304556074[/TIME] ---------------
Ok, so with the following code I think I have managed to connect into the session system of vBul:
PHP Code:
ini_set('display_errors', 1);
error_reporting(E_ALL);
chdir("/home/sites/<sitename>/public_html/forum/");
require("./global.php");
echo "Your vBul user id is: ".$vbulletin->userinfo['userid']." and your username is ".$vbulletin->userinfo['username']."";
chdir("/home/sites/<sitename>/public_html/dev");
I'm assuming it worked because it returns "Unregistered" as a username, where as it would display nothing if wasn't connected. The problem is it's returning this despite my being logged in.
Any suggestions?
--------------- Added [DATE]1304606364[/DATE] at [TIME]1304606364[/TIME] ---------------
I have now read every title of every thread in all 113 pages of this forum, and read every thread that relates to this topic. Everywhere I read about people wanting to implement a single sign on solution, they get told they'd be better off using vBul's login instead of their sites one, and yet I haven't found a single thread where people with problems in doing so manage to resolve there issue.
So now I have to ask... is it even possible to implement the session across the entire site and not just the forum?
Even the vaguest ideas would be helpful ladies and gents...
--------------- Added [DATE]1304624675[/DATE] at [TIME]1304624675[/TIME] ---------------
Turned out to be an issue with cookies on the www subdomain. I disabled that domain on my server and all was well. Thanks for all the "help".
Ferdia