Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
Digital Mayhem Offline
Community Moderator
 
Digital Mayhem's Avatar
 
Posts: 887
Join Date: May 2005
Location: Henderson, Nevada
Duplicate ModernBill LoginShares - 25-03-2006, 01:29 AM

Our company has several divisions and we have two divisions that use seperate modernbills and SupportSuite doesn't let you have multiple copies of LoginShares I talked to Varun in IM over 3 weeks ago and he started to walk me through how to copy a loginshare but then he said he had to leave to go eat and hasn't been back on since... I don't know PHP so if anyone has done this or knows how to do it. I would greatly appreciate the help.
   
Reply With Quote
  (#2) Old
eger Offline
Member
 
Posts: 126
Join Date: Jul 2004
25-03-2006, 03:05 AM

I also have 2 modernbill installations and would like to have a modernbill loginshare for each template. If you figure it out please post here how you did it.
   
Reply With Quote
  (#3) Old
craigbrass Offline
Senior Member
 
Posts: 5,753
Join Date: Jun 2005
Location: Cumbria, UK
25-03-2006, 10:48 AM

It would be easy. Just dublicate modernbill.login.php inside includes/LoginShare/ and call the new one modernbill2.login.php. Upload that to the server.

Then, open loginshare.config.php inside the same folder. Look for :-
Code:
define("LOGINAPI_CLIENTEXEC", 113);
Right under it add :-
Code:
define("LOGINAPI_MODERNBILL2", 114);
Then, look for :-
Code:
$_LOGINAPI[LOGINAPI_CLIENTEXEC] = array("title" => $_SWIFT["language"]["loginapi_clientexec"], "include" => "clientexec.login.php");
Right under it add :-
Code:
$_LOGINAPI[LOGINAPI_MODERNBILL2] = array("title" => $_SWIFT["language"]["loginapi_modernbill"], "include" => "modernbill2.login.php");
Then, upload that file to your server.

After that you should see 2 loginshares inside the admin area. The one with the DB details is the first one and the one without is the new one. Should just be a case then of assigning loginshares to templates.

This assumes you are using the latest stable (.32).

If this doesn't work, please let me know and I will try and set it up in my test enviroment.

Best Regards,
Craig Brass


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger

Last edited by craigbrass; 26-03-2006 at 09:15 AM.
   
Reply With Quote
  (#4) Old
Digital Mayhem Offline
Community Moderator
 
Digital Mayhem's Avatar
 
Posts: 887
Join Date: May 2005
Location: Henderson, Nevada
25-03-2006, 12:34 PM

okay did that and when I opened the second ModernBill LoginShare it has the same db details as the first and when I change them it also changed them on the first one... So didn't work
   
Reply With Quote
  (#5) Old
craigbrass Offline
Senior Member
 
Posts: 5,753
Join Date: Jun 2005
Location: Cumbria, UK
25-03-2006, 01:36 PM

Ok, open modernbill2.login.php and find :-
Code:
		$dbLoginShare = new dbCore($_loginshare["mbhostname"], $_loginshare["mbdbuser"], $_loginshare["mbdbpass"], $_loginshare["mbdbname"], "mysql", false);
And replace it with :-
Code:
		$dbLoginShare = new dbCore($_loginshare["mb2hostname"], $_loginshare["mb2dbuser"], $_loginshare["mb2dbpass"], $_loginshare["mb2dbname"], "mysql", false);
Then, find :-
Code:
	$forms[0]["title"] = $_SWIFT["language"]["hostname"];
	$forms[0]["name"] = "mbhostname";
	$forms[1]["title"] = $_SWIFT["language"]["dbname"];
	$forms[1]["name"] = "mbdbname";
	$forms[2]["title"] = $_SWIFT["language"]["dbuser"];
	$forms[2]["name"] = "mbdbuser";
	$forms[3]["title"] = $_SWIFT["language"]["dbpass"];
	$forms[3]["name"] = "mbdbpass";
And replace it with :
Code:
	$forms[0]["title"] = $_SWIFT["language"]["hostname"];
	$forms[0]["name"] = "mb2hostname";
	$forms[1]["title"] = $_SWIFT["language"]["dbname"];
	$forms[1]["name"] = "mb2dbname";
	$forms[2]["title"] = $_SWIFT["language"]["dbuser"];
	$forms[2]["name"] = "mb2dbuser";
	$forms[3]["title"] = $_SWIFT["language"]["dbpass"];
	$forms[3]["name"] = "mb2dbpass";


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger

Last edited by craigbrass; 25-03-2006 at 01:39 PM.
   
Reply With Quote
  (#6) Old
Digital Mayhem Offline
Community Moderator
 
Digital Mayhem's Avatar
 
Posts: 887
Join Date: May 2005
Location: Henderson, Nevada
25-03-2006, 02:23 PM

okay sorta worked but now when I go to the template group and select the second ModernBill LoginShare it doesnt save it and reverts it back too "SupportSuite Login Routine"
   
Reply With Quote
  (#7) Old
Digital Mayhem Offline
Community Moderator
 
Digital Mayhem's Avatar
 
Posts: 887
Join Date: May 2005
Location: Henderson, Nevada
25-03-2006, 06:02 PM

nevermind I got it sorta fixed

craigbrass had me put

Code:
$_LOGINAPI[LOGINAPI_MODERNBIL2L]
he got the 2 and the second L reversed... So I fixed that and now it lets me save the second modernbill loginshare for that template group but now when I go too https://www.xesupport.net/?group=xelicenses&nosave=1 I enter my modernbill email and password and it then says processing login but then comes back and says

Invalid Username or Password


Anyone have any ideas?
   
Reply With Quote
  (#8) Old
craigbrass Offline
Senior Member
 
Posts: 5,753
Join Date: Jun 2005
Location: Cumbria, UK
26-03-2006, 09:19 AM

Ooops, I have updated that in my main post thus not to confuse anybody else.

Are you SURE you have the correct "ModernBill" inside the template group as both loginshares will say the same name for them?


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#9) Old
Digital Mayhem Offline
Community Moderator
 
Digital Mayhem's Avatar
 
Posts: 887
Join Date: May 2005
Location: Henderson, Nevada
26-03-2006, 11:28 AM

Yes cause I tried both...

Plus the first main default one is at the top of the drop down list and the second one that I added is towards the bottom.
   
Reply With Quote
  (#10) Old
Digital Mayhem Offline
Community Moderator
 
Digital Mayhem's Avatar
 
Posts: 887
Join Date: May 2005
Location: Henderson, Nevada
26-03-2006, 11:31 AM

Well I created a custom "Users Group" called "XeLicenses Users" and set the template to use that and get the problem but I went and changed it to the default "Registered" and now it works...
   
Reply With Quote
  (#11) Old
eger Offline
Member
 
Posts: 126
Join Date: Jul 2004
28-03-2006, 08:13 PM

Thanks for well documenting this guys. Hopefully I can try this out soon. I would love to see this support added to esupport.
   
Reply With Quote
  (#12) Old
Digital Mayhem Offline
Community Moderator
 
Digital Mayhem's Avatar
 
Posts: 887
Join Date: May 2005
Location: Henderson, Nevada
31-03-2006, 03:39 PM

ya I already suggested to Varun to be able to go into the LoginShares and be able to click a button like labled "Copy" and it will create another one of those loginshares... like you can do with the server modules and order groups in modernbill.



ever been hit by a big rig? I was just hit by one tuesday night...
   
Reply With Quote
  (#13) Old
User Name Offline
Member
 
Posts: 115
Join Date: May 2005
01-04-2006, 03:16 PM

Quote:
Originally Posted by XETechnologies
ever been hit by a big rig? I was just hit by one tuesday night...
Literally? You okay?
   
Reply With Quote
  (#14) Old
craigbrass Offline
Senior Member
 
Posts: 5,753
Join Date: Jun 2005
Location: Cumbria, UK
01-04-2006, 04:05 PM

It would prolly be better if you selected the loginshare for the template group from the drop down menu in the template group settings and then the configure options popped out below. That way you could have multiple loginshares with ease.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#15) Old
newplanet Offline
New Member
 
Posts: 1
Join Date: Apr 2006
02-04-2006, 09:04 PM

I would like to share logins between my 2 moderbill installs aswell, however my config files are encoded

Why encode the config files? Is there a way I can get an unecoded config file so I may implement this?

Thanks
   
Reply With Quote
Reply

Tags
duplicate, loginshares, modernbill

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ModernBill Integration Beta Jamie Edwards News and Announcements 0 13-11-2006 12:00 PM
Modernbill integration demon SupportSuite, eSupport and LiveResponse 0 06-04-2006 03:16 PM
Tutorial: ModernBill Integration on Seperate Servers Nick Developers & Code 11 06-03-2006 10:58 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47