Ok,
I was able to get it to work somewhat, by modifying init.php
PHP Code:
$uid = 0;
$session_id = $_COOKIE['gameonleagues-signon'];
if ($session_id) {
$ch = curl_init();
//call out to java application.
$LEAGUE_LOOKUP = "http://localhost:8080/account/session2forumid";
curl_setopt($ch, CURLOPT_URL,"$LEAGUE_LOOKUP/$session_id");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_VERIFYHOST, false);
curl_exec($ch);
if (!curl_errno($ch)) {
$uid = curl_multi_getcontent($ch);
} else {
//curl error, java site is down.
}
}
$vbulletin->session->userinfo =& fetch_userinfo($uid);
that seems to load the user in their every time. Now, I just need to disable the login box, and the logout link, or, have the login form submit to my java application.
--------------- Added [DATE]1205441158[/DATE] at [TIME]1205441158[/TIME] ---------------
Quote:
Originally Posted by Reeve of shinra
There are two projects out there focusing on integrating drupal with vb... you may want to check into them as it sounds like it may be the best long term solution for you.
|
Actually, I migrating away from drupal altogether. We were using them as our forum software. The drupal api is super slick, and I was able to integrate their site with single signon without any changes to the drupal core. However, the drupal forums are pretty lame on a good day.
What I want is for vbulletin to fulfill the role that drupal did. namely, the forum software that complements our main site (in java).