|
![]() |
| | LinkBack (5) | Thread Tools | Search this Thread | Rate Thread | Display Modes |
(#1)
|
| Senior Member Posts: 4,955 Join Date: Jun 2005 Location: Cumbria, UK SupportSuite Owned License | Creating a LoginShare -
23-07-2007, 05:08 PM
Ok, I decided to create a step by step guide to creating a LoginShare. This is the guide for integrating with a piece of software that uses MD5 password storage. Any reference to email can be changed to username if your system uses usernames instead. 1. Download vipercart.login.php (attached). 2. Rename the vipercart part of the file to the name of the software you are integrating with. 3. Find the following line :- Code: $dbLoginShare = new dbCore($_loginshare["vchostname"], $_loginshare["vcdbuser"], $_loginshare["vcdbpass"], $_loginshare["vcdbname"], "mysql", false); 4. Find the following line (2 lines down from the one in step 3) :- Code: $_user = $dbLoginShare->queryFetch("SELECT * FROM `". $_loginshare["vcdbprefix"] ."customers` WHERE `email` = '". $dbCore->escape($username) ."';"); 5. Find the following line :- Code: if ($_user["password"] == $userpassword && !empty($_user["password"])) 6. Find the following line :- Code: $userid = getLoginShareUser(LOGINAPI_VIPERCART, $_user["id"]); 7. Find the following line :- Code: $userid = insertUser(true, $_user["email"], $regpassword, $_SWIFT["tgroup"]["regusergroupid"], LOGINAPI_VIPERCART, $_user["id"], $_user["firstname"]." ".$_user["lastname"], $_SWIFT["tgroup"]["languageid"], 0, false, 1, true); 8. Find the following section :- Code: $forms[0]["title"] = $_SWIFT["language"]["hostname"]; $forms[0]["name"] = "vchostname"; $forms[1]["title"] = $_SWIFT["language"]["dbname"]; $forms[1]["name"] = "vcdbname"; $forms[2]["title"] = $_SWIFT["language"]["dbuser"]; $forms[2]["name"] = "vcdbuser"; $forms[3]["title"] = $_SWIFT["language"]["dbpass"]; $forms[3]["name"] = "vcdbpass"; $forms[4]["title"] = "DB Table Prefix"; $forms[4]["name"] = "vcdbprefix"; 9. Upload the file you just created to /includes/LoginShare/. 10. Open loginshare.config.php inside that same directory. 11. From aproximatly line 21 onwards, you will see lines similar to the follow :- Code: define("LOGINAPI_VBULLETIN", 2); 12. Scroll down to where you see lines similar to the following :- Code: $_LOGINAPI[LOGINAPI_MODERNBILL] = array("title" => $_SWIFT["language"]["loginapi_modernbill"], "include" => "modernbill.login.php"); 13. Open /locale/en-us/templates.php and look for :- Code: 'loginapi_modernbill' => 'ModernBill', 14. You should now be able to follow the following tutorial to configure the loginshare :- http://www.craigbrasssystems.com/oth...hare/main.html Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#2)
|
(#3)
|
| Senior Member Posts: 4,955 Join Date: Jun 2005 Location: Cumbria, UK SupportSuite Owned License |
15-08-2007, 07:29 AM
How stupid am I! Forgot about the next bit! Will update the tutorial now. Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#4)
|
| Senior Member Posts: 4,955 Join Date: Jun 2005 Location: Cumbria, UK SupportSuite Owned License |
15-08-2007, 07:36 AM
Updated. Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#5)
|
(#6)
|
| Senior Member Posts: 4,955 Join Date: Jun 2005 Location: Cumbria, UK SupportSuite Owned License |
16-08-2007, 08:57 AM
Oh yes, also missed that bit. Will update the thread to add more steps. Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#7)
|
| Senior Member Posts: 4,955 Join Date: Jun 2005 Location: Cumbria, UK SupportSuite Owned License |
16-08-2007, 09:01 AM
Updated. See step 13. Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#8)
|
(#10)
|
| Operations Manager |
22-08-2007, 10:04 PM
Quote:
Thanks, -------------------------------------------------------------------
| |
| | |
(#11)
|
(#12)
|
| Member Posts: 41 Join Date: Sep 2007 SupportSuite Owned License |
25-09-2007, 12:09 AM
Quote:
![]() My shared login still isn't working (it connects to the database, but says username/password isn't correct). My next question is, what would I need to change above if the password isn't using MD5 storage? | |
| | |
(#13)
|
| Senior Member Posts: 4,955 Join Date: Jun 2005 Location: Cumbria, UK SupportSuite Owned License |
25-09-2007, 08:06 AM
Well if it isn't MD5 storage then thats why it won't be working. What password algorithm is it using? Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#14)
|
(#15)
|
| Senior Member Posts: 4,955 Join Date: Jun 2005 Location: Cumbria, UK SupportSuite Owned License |
25-09-2007, 05:39 PM
So you mean its just plain text passwords (ie examplepassword would be stored as examplepassword in the database)? Icon Headquarters - Its Elixir - Web2Messenger |
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
LinkBacks (?)
LinkBack to this Thread: http://forums.kayako.com/f48/creating-loginshare-12857/ | ||||
| Posted By | For | Type | Date | |
| WHMCS and Kayako - Web Hosting Talk - The largest, most influential web hosting community on the Internet | This thread | Refback | 05-02-2008 07:41 AM | |
| Kayako eSupport » Support desk software (ticket, e-mail, self-help) | This thread | Refback | 19-12-2007 10:25 AM | |
| Kayako SupportSuite » Support desk software (ticket, e-mail, live chat, self-help) | This thread | Refback | 16-12-2007 03:00 PM | |
| Kayako LiveResponse » Live chat and support desk software (live chat, self-help) | This thread | Refback | 16-12-2007 12:43 PM | |
| Kayako eSupport » Support desk software (ticket, e-mail, self-help) | This thread | Refback | 16-12-2007 04:54 AM | |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error Creating Tables | Danym | SupportSuite, eSupport and LiveResponse | 1 | 03-11-2006 11:22 AM |
Kayako provides online help desk software and support solutions; enabling companies to improve their support and reduce costs.
Our three main products include: SupportSuite, eSupport and LiveResponse