Webmastersite.net
Register Log In

e107 integration

Title e107 integration
Description Working on integrating WSN Gallery with e107 CMS
Message Text I have been looking at the integration tools. Here's what I know so far: - e107 uses 1 cookie (default name = "e107cookie") - cookie is in format id#.encpasswd where id# is obviouslty the user's id number, and encpasswd is the password in the database (text password having been run through md5) run through md5 again. Eg. if the text password was Password, then the database would contain dc647eb65e6711e155375218212b3964, and the cookie would contain b8498ee29e56e711a268ae8cc461ae94. - the field in the database to determine if a user is valid (user_ban) uses 0 to show a user is valid, and 1 if they are not. This may be why I get 0 members listed, and errors show when I try to list users ( see http://urbanlines.net/gallery/memberlist.php?debug=1 ). I have added the following integration code
<?php
 $memberstable = 'ul_e107_user';

 $newusergroup = 'user_class';
 $newname = 'user_loginname';
 $newid = 'user_id';
 $newpassword = 'user_password';
 $newemail = 'user_email';
 $newtime = 'user_join';
 $newip = 'user_ip';
 $newvalidated = 'user_ban';
 $newsignature = 'user_signature';
 $newlocation = '';
 $newbio = '';
 $newhomepage = '';
 $newoccupation = '';
 $newaim = '';
 $newmsn = '';
 $newicq = '';
 $newyahoo = '';
 $newcustomtitle = 'user_customtitle';
 $newinterests = '';
 $newsalt = '';

 $otherencoder = 'no';

 $admingroup = '-1';
 $group4 = '';
 $group5 = '';

 $idcookiename = 'e107cookie';
 $passwordcookiename = '';
 $cookietype = '';
 $idindex = '';
 $passwordindex = '';
 $cookieidtype = '';

 ?>
Results so far are that it recognises when I put the correct username/password in (tells me if it's wrong) but then it still doesn't log me in. It creates 4 cookies: - e107cookie (userid) - wsnpass (password as in database) - testcookie (userid) - returnto (page I tried to log in from) I'm a bit stuck on getting it to read/write the cookies. I'm guessing I need to add $cookietype = 'e107'; then edit classes/members.php to include an else if ($cookietype == "e107") section or 2, but not sure what or where. Is this going to be a simple job, or will loads of complicated changes be needed?
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership Ducnan Clarke
Views 699 views. Averaging 0 views per day.
Similar Topics
Submission Date Oct 08, 2006 - 12:25 PM