Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Third Party Products and Support:
handshake plugin
soundbeat



Joined: 15 Jul 2006
Posts: 28

Posted: 10/08/06 17:38 
Hi There,

I'm looking to use JamRoom as one my important platform but I'll use other system like vbulletin, and handshake.

Handshake fully support vbulletin but there's not 3rd party plugin for Jamroom. Handshake support 3rd party script, does anyone can help me on writing the jamroom one?

Keep me informed

Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 10/08/06 17:40 
Do you have a link to the "handshake" script? Sounds interesting...

Cheers!


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
soundbeat



Joined: 15 Jul 2006
Posts: 28

Posted: 10/08/06 17:44 
http://www.dzoic.com

This is my site http://www.soundbeatfriends.com we are going to revamp it.

This is an exemple of vbulleting 3rd party plugin script:
Code
<?php

function vbulletin_register($values){
   
   $host_details = parse_url($values["url"]);
   $host = $host_details["host"];
   $vbulletin_path = $host_details["path"];
   if(!ereg("/$",$vbulletin_path))
      $vbulletin_path.= "/";
      
   $vbulletin_values = array(
      "s" => "",
      "do" => "addmember",
      "url" => urlencode($values["url"]),
      "agree" => "1",
      "password_md5" => "",
      "passwordconfirm_md5" => "",
      "username" => $values["username"],
      "password" => $values["password"],
      "passwordconfirm" => $values["password"],
      "email" => $values["email"],
      "emailconfirm" => $values["email"],
      "referrername" => "",
      "timezoneoffset" => "0",
      "dst" => "2",
      "options[adminemail]" => "1"
   );
      
   while(list($key,$val) = each($vbulletin_values)){
      $post_string.= $key."=".urlencode($val)."&";
   }//while
   $post_string = rtrim($post_string,"&");
   $fp = fsockopen ($host, 80, $errno, $errstr);
   if($fp){
    fputs($fp, "POST ".$vbulletin_path."register.php HTTP/1.1\r\n");
    fputs($fp, "Host: ".$host."\r\n");
    fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
    fputs($fp, "Content-length: ".strlen($post_string)."\r\n");   
    fputs($fp, "Connection: close\r\n\r\n");
    fputs($fp, $post_string . "\r\n\r\n");
    $line = "";
    while (!feof($fp)) {
       $line.= fgets ($fp,1024);
    }//while
    fclose ($fp);
   }//if
   
    return true;
   
}//vbulletin_register

function vbulletin_login($values){
   
   $host_details = parse_url($values["url"]);
   $host = $host_details["host"];
   $vbulletin_path = $host_details["path"];
   if(!ereg("/$",$vbulletin_path))
      $vbulletin_path.= "/";

   $vbulletin_values = array(
      "s" => "",
      "do" => "login",
      "forceredirect" => "1",
      "vb_login_md5password" => "",
      "vb_login_md5password_utf" => "",
      "vb_login_username" => $values["username"],
      "vb_login_password" => $values["password"],
      "cookieuser" => "1"
   );
         
   while(list($key,$val) = each($vbulletin_values)){
      $post_string.= $key."=".urlencode($val)."&";
   }//while
   $post_string = rtrim($post_string,"&");
         
   $fp = fsockopen ($host, 80, $errno, $errstr);
   if($fp){
    fputs($fp, "POST ".$vbulletin_path."login.php HTTP/1.1\r\n");
    fputs($fp, "Host: ".$host."\r\n");
   fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
   fputs($fp, "Content-length: ".strlen($post_string)."\r\n");
   fputs($fp, "User-Agent: ".$_SERVER["HTTP_USER_AGENT"]."\r\n");
   fputs($fp, "Connection: close\r\n\r\n");    
   fputs($fp, $post_string."\r\n\r\n");
   $line = "";
   while (!feof($fp)) {
      $line.= fgets ($fp,1024);
   }//while
   fclose ($fp);
   }//if
          
   $line = ereg_replace("\r","",$line);
   $lines = explode("\n",$line);
   foreach($lines as $header){
      if(eregi("^Set-Cookie",$header)){
         preg_match_all("/^Set-Cookie: ([^=]+)=([^;]+);/",$header,$matches);
         $name   = $matches[1][0];
         $value  = urldecode($matches[2][0]);
         preg_match_all("/expires=([^;]+);/",$header,$matches);
         $expire_string = $matches[1][0];
         if($expire_string)
            $expire = strtotime($expire_string);
         else
            $expire = 0;
         load_cookie($name,$value,$expire);
      }//if
   }//foreach
   
   return true;
      
}//vbulletin_login

function vbulletin_logout($values){
   
   $host_details = parse_url($values["url"]);
   $host = $host_details["host"];
   $vbulletin_path = $host_details["path"];
   if(!ereg("/$",$vbulletin_path))
      $vbulletin_path.= "/";

   $vbulletin_values = array(      
      "do" => "logout",
      "u" => $GLOBALS["Get"]->cookie("bbuserid")
   );
         
   while(list($key,$val) = each($vbulletin_values)){
      $post_string.= $key."=".urlencode($val)."&";
   }//while
   $post_string = rtrim($post_string,"&");
         
   $fp = fsockopen ($host, 80, $errno, $errstr);
   if($fp){
    fputs($fp, "POST ".$vbulletin_path."login.php HTTP/1.1\r\n");
    fputs($fp, "Host: ".$host."\r\n");
   fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
   fputs($fp, "Content-length: ".strlen($post_string)."\r\n");
   $cookies = "";
   while(list($key,$val) = each($_COOKIE)){
      $cookies.= $key."=".urlencode($val)."; ";
   }//while
   $cookies = rtrim($cookies,'; ');
   fputs($fp, "Cookie: ".$cookies."\n");
   fputs($fp, "User-Agent: ".$_SERVER["HTTP_USER_AGENT"]."\r\n");
   fputs($fp, "Connection: close\r\n\r\n");
   fputs($fp, $post_string."\r\n\r\n");
   $line = "";
   while (!feof($fp)) {
      $line.= fgets ($fp,1024);
   }//while
   fclose ($fp);
   }//if
          
   $line = ereg_replace("\r","",$line);
   $lines = explode("\n",$line);
   foreach($lines as $header){
      if(eregi("^Set-Cookie",$header)){
         preg_match_all("/^Set-Cookie: ([^=]+)=([^;]+);/",$header,$matches);
         $name   = $matches[1][0];
         $value  = urldecode($matches[2][0]);
         preg_match_all("/expires=([^;]+);/",$header,$matches);
         $expire_string = $matches[1][0];
         if($expire_string)
            $expire = strtotime($expire_string);
         else
            $expire = 0;
         load_cookie($name,$value,$expire);
      }//if
   }//foreach
   
   return true;
   
}//vbulletin_logout

function vbulletin_link($values){
   
   return rtrim($values["url"],"/")."/index.php";
   
}//vbulletin_link

?>


Back to top
soundbeat



Joined: 15 Jul 2006
Posts: 28

Posted: 10/11/06 19:21 
any development???

Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 10/12/06 11:42 
I'm not familiar with vBulletin "plugins", but you might want to check out Jamroom's Bridge scripts - there's one already for vBulletin, and I think you'll find that using Jamroom as the main script, and then allowing Jamroom yo "update" your other scripts will be easier, since Jamroom has a more complex user account setup, going the other direction and attempting to create a Jamroom account from a vBulletin account is going to be tricky.

Check out the jamroom/include/plugins/jrBridges/vBulletin.php script for details.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
soundbeat



Joined: 15 Jul 2006
Posts: 28

Posted: 10/12/06 12:38 
Ok, I will check that, thanks alot

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Third Party Products and Support

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.