Joomla & Lifetype Integration

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-06-2007, 05:52 PM
New Pligger
 
Join Date: Sep 2007
Posts: 4
Hello Pliggers,

I've been able to integrate Pligg with Joomla and Lifetype to some extent using CURL, in the sense that there is no session management or cookies, but users will have a single account and password, every time they are prompted for a login in joomla, pligg, a cpanel email account and lifetype, after registering. (Well Lifetype already has that kind of integration anyway...). The downside is that users aren't allowed to change passwords!

Have a look at http://www.sceptix.com.

Feedbacks are welcome!

Cheers!
Reply With Quote
  #2 (permalink)  
Old 12-06-2007, 06:44 PM
Casual Pligger
 
Join Date: Sep 2007
Posts: 96
can you please share how you did this, I hope this isnt a "hey look what i have done post"
Reply With Quote
  #3 (permalink)  
Old 12-06-2007, 07:20 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,828
I moved this thread over to the "My Pligg Site" forum since it provides absolutely no examples or how to.


Get the full Pligg Module Pack today.

Anyone want the domain MyHubb.com ? Bid Now!




Reply With Quote
  #4 (permalink)  
Old 12-06-2007, 11:17 PM
New Pligger
 
Join Date: Sep 2007
Posts: 4
Alright!!!

Now, Joomla handles internal php variables like $my->username and (I have to confirm, I'm not sure of what I did right now It's late, really late at night, but I'll be happy to post something tomorrow) simply used CURL to submit the same community builder (CB or comprofiler.php) <username> and <pasword> to Pligg (as I recall it, there was some modding to it, but I will post it in the future, if needed) and to cpanel (in the same way). But Lifetype already has a Joomla integration through their "user data source" or something alike.

I'm simply using Community Builder as a registration source (ALSO some further modding to dissallow uppercaps and spaces in userrnames) just to get things straight!
Reply With Quote
  #5 (permalink)  
Old 12-07-2007, 02:16 AM
New Pligger
Pligg Version: 9.8
Pligg Template: default
 
Join Date: Dec 2007
Location: TH
Posts: 3
I'll like to see how ,Thanks. ,I also try curl but fail.
Reply With Quote
  #6 (permalink)  
Old 12-07-2007, 05:24 PM
New Pligger
 
Join Date: Sep 2007
Posts: 4
Hi dochost,

Try adding the code below

PHP Code:
    // Creating Pligg user
    
$url 'http://www.domain.com/regjoom.php';
    
$params "username=".$row->username."&email=".$row->email."&password=".$row->password;
    
$user_agent "Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)";
    
$ch curl_init();
    
curl_setopt($chCURLOPT_POST,1);
    
curl_setopt($chCURLOPT_POSTFIELDS,$params);
    
curl_setopt($chCURLOPT_URL,$url);
    
curl_setopt($chCURLOPT_USERAGENT$user_agent);
    
curl_setopt($chCURLOPT_RETURNTRANSFER,1);
    
$result=curl_exec ($ch);
    
curl_close ($ch); 
After:

PHP Code:
echo "\n<div>" implode"</div>\n<div>"$messagesToUser ) . "</div>\n"
Around line 1345 in file comprofiler.php.

This means that you also have to create the file regjoom.php containng this code:
PHP Code:
include_once('Smarty.class.php');
$main_smarty = new Smarty;
include(
'config.php');
include(
mnminclude.'html1.php');
include(
mnminclude.'link.php');
include(
mnminclude.'smartyvariables.php');
include(
mnminclude.'ts.php');
global 
$db$current_user$main_smarty$the_template;
$username=$db->escape(trim($_POST['username']));
$password=$db->escape(trim($_POST['password']));
$userip=$_SERVER['REMOTE_ADDR'];
$saltedpass=generateHash($password);
$email=$db->escape(trim($_POST['email']));
if (!
user_exists($username)) {
    
$db->query("INSERT INTO " table_users " (user_login, user_email, user_pass, user_date, user_ip) VALUES ('$username', '$email', '$saltedpass', now(), '$userip')");

Do not forget the <?php ?> tags.

Good luck!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Joomla Geoserv Questions and Comments 14 06-11-2009 10:50 AM
joomla template for pligg fanginoon Questions and Comments 0 05-27-2008 04:46 AM
joomla <> pligg integration posible? Yes, if i'm not wrong lacasuela Questions and Comments 5 04-09-2008 11:29 AM
The importance of achieving vBulletin integration BobdeBilder Questions and Comments 4 07-14-2007 09:05 AM
Joomla Vote Mambot mobilpress Questions and Comments 1 05-27-2007 07:30 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development