SocGlue.com - Where Societies Come Together Online - Blogs, Videos, Photos, Music, Friends, Culture, Groups and more!SocGlue.com - Where Societies Come Together Online - Blogs, Videos, Photos, Music, Friends, Albums and more!

Your place for everything online: Blogs,Video Albums,Photo Albums,Chat, Music, Friends, Forums....and more!

Blogs • Photos • Videos • Chat • Music • SocNews • Feedback Login


Currently viewing page 1 of 5 (22 blogs total)
Page: 1 2 3 4 5

Saturday, August 14th, 2010 1:35 PM
Cassius Playing Way Too Much Sonic The Hedgehog
   We got a Sega Dreamcast on our trip in July through the Northwest.  A woman from Calgary was very kind to give us this, as her children are all older now and didn't play it anymore.

Cassius plays Sonic Advernture 1 and 2 for hours upon end and boy, when you tell him no more video games, its big trouble!
Add Comment

Thursday, November 19th, 2009 10:35 AM
VBulletin Login bridge (PHP Curl Post not necessary) using AJAX
   Recently I was tasked with creating a Vbulletin login bridge on a website that is on a LAMP (Linux Apache Mysql PHP) webserver.

The problem:

Given a website, lets call it mywebsite.com, it was a pain to have to login to mywebsite.com with one user/pass, and then have to go to the vbulletin forum and have to login a second time with a user/pass.

Upon logging into mywebsite.com, I needed the system to automatically login to the VBulletin forum.  I tried a CURL post originally, but the cookies did not pass through properly.

The solution:

First, upon registration on mywebsite.com, you need to create a corresponding user on vbulletin.com.  Here is what I used (I am sure some of settings for the user fields may vary for your particular case):
// Get alphanumeric string, then take the first three characters and use them for the vbulletin salt.
$salt = substr(md5(uniqid(rand(), true)), 0, 3);
$sql = "INSERT INTO user (usergroupid, username, password, passworddate, email, showvbcode, showbirthday, usertitle, joindate, options, salt, lastvisit) VALUES (2, '$_POST[nickname]', MD5(CONCAT(MD5('$_POST[password]'), '$salt')), CURRENT_DATE, '$_POST[email]', 1,0,'Junior Member',".time().",45096023,'$salt',".time().")";

Next, my solution  was achieved by using the AJAX function below (note that the "url" variable in the function below will vary depending upon how you set up vBulletin - just make sure its properly pathed to the vbulletin login.php file):

function vBulletin_login(user, md5pass)
{
    xmlHttp = getXMLHttpObject();
    if (xmlHttp==null)
    {
        alert ("Your browser does not support AJAX!");
        return;
    }

    var url="/forum/login.php";
    var poststr = "do=login" +
                  "&url=%2Fforum%2Findex.php" +
                  "&vb_login_md5password=" + md5pass +
                  "&vb_login_username="+ user +
                  "&cookieuser=1&s=&securitytoken=guest" +
                  "&sid="+Math.random();

    var t;

    xmlHttp.onreadystatechange=performTask;

    function performTask()
    {   
        if(xmlHttp.readyState==4)
        {
            if(xmlHttp.status==200)
            {
            }
               
        }
   
    }

   xmlHttp.open("POST",url,true);
   xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
   xmlHttp.setRequestHeader("Content-length", poststr.length);
   xmlHttp.setRequestHeader("Connection", "close");
   xmlHttp.send(poststr);

   return false;
}

And here is an example of how PHP code can be used to call the vbulletin AJAX function after logging into mywebsite.com:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
// 1) Perform any operations related to logging into mywebsite.com that you may have such as setting session data, etc.

// 2) Call ajax function vBulletin_login(user, md5pass)
$content .=
"
<script type=\"text/javascript\" src=\"/admin/javascript/ajax_functions.js\"></script>
<script type=\"text/javascript\">
vBulletin_login('".$vbulletinUsername."', '".md5($vbulletinPassword)."');
</script>
You are now logged into mywebsite.com, as well as the vbulletin forum on mywebsite.com.
";

// Display HTML/script page, which executes AJAX vbulletin login function.
echo $content;
-------------------------------------------------------------------------------------------------------------

And thats it!  Hope this helps someone out there!
Add Comment

Friday, August 7th, 2009 4:37 PM
Family Heirlooms... WWF Style
   I thought these were long gone, but no!  Originally owned my brother and I, they were given to my cousin awhile back, and now that he is older, they are being handed down to my son.  Pictured below are George "The Animal" Steele, Nikolai Volkov, and Randy "Macho Man" Savage.  They still bounce and kartwheel the same as when I was a child.  AHHH YEAH!

George The Animal Steele, Nikolai Volkov, and Randy Macho Man Savage
Add Comment

Friday, August 7th, 2009 4:28 PM
Cassius And I at the Queen Mary
   We arrived at our second stop of the Haunted Tour this year - The Queen Mary in California.
I look at this boat and its amazing how big it is and to think it was build in the 1930s.
Seems like we should be much further along with space travel than we are.

We stepped into the supposed paranormal vortex in the ladys changing room near the pool on the lower level of the ship, and I didn't notice any cold spots or feel weird.  There was a strange smell but I think somebody pooted.

Queen Mary in California, Cassius and I
Add Comment

Tuesday, June 30th, 2009 1:36 PM
Cassius Corn Photo
   This one reminded me of the c-monster.

Cassius Corn
Add Comment

Currently viewing page 1 of 5 (22 blogs total)
Page: 1 2 3 4 5


Blogs • Photos • Chat • Music • SocNews • FeedbackDevelopment Tracker

©Copyright 2006 SocGlue.com All rights reserved
Yellow Spin - SocGlue.com Proud member of Yellow Spin