Redundant Posted October 29, 2008 Share Posted October 29, 2008 Howdy Folks, This is an Authentication Plugin for Joomla 1.5 which uses the WHMCS API. It takes 3 Parameters required by the WHMCS API. Hopefully this plugin will help us get a little closer to a Joomla Bridge which is a frequent topic around here. See this thread. Not a Bridge: What this primarily lacks is simultaneous login to WHMCS. Hopefully someone can pitch in and help with this. Perhaps a CURL call embedded in this plugin to the DoLogin.php? (as suggested in this thread). I am not familiar with CURL. Installation: Download the ZIP. In Joomla Admin, go to the menu: Extensions -> Install/Uninstall. After installation, select Menu -> Extensions -> Plugin Manager. In the list displayed, select WHMCS-Authentication. Fill in the 3 parameters. Hope some folks can test this plugin out. It is my first, so it may have some issues. It's pretty simple and straightforward. Note: I ran into some issues using API Calls when using .htaccess rewrite rules to force WHMCS to https. So if this plugin doesn't work, try removing your Rewrite rules for WHMCS+HTTPS). Thank you kindly whmcsauth.zip 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 30, 2008 Share Posted October 30, 2008 Well done... that is almost identical to what I just created but I have a little more error checking done and am working on the sessions problem now. Something you forgot to say is when you log in (using the joomla login) it authenticates using the WHMCS DB and creates the user automatically in the joomla DB. 0 Quote Link to comment Share on other sites More sharing options...
Redundant Posted October 30, 2008 Author Share Posted October 30, 2008 Well done... that is almost identical to what I just created but I have a little more error checking done and am working on the sessions problem now. Hey awesome. Really looking forward to what you come up with. I have been sitting here trying to get Curl+dologin to work without success. Something you forgot to say is when you log in (using the joomla login) it authenticates using the WHMCS DB and creates the user automatically in the joomla DB. Wow, well...I had to go look in the joomla users database to check out what you're talking about. I can't take credit for that, guess Joomla does that automatically Sweet. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 30, 2008 Share Posted October 30, 2008 $response = JUser::getInstance(); That line is the culprit (its a good thing not a bad one) The dologin thing wont work properly (been there already) 0 Quote Link to comment Share on other sites More sharing options...
shed Posted November 9, 2008 Share Posted November 9, 2008 Hey Sparky, Any progress on your plugin? this would be great! 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 9, 2008 Share Posted November 9, 2008 Not yet, been busy with work and editing my sisters wedding dvd. Will get back to it soon. 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted November 10, 2008 Share Posted November 10, 2008 I have a 1.57 test site that displays this error code at the top of the joomla site Notice: Undefined offset: 1 in .../public_html/plugins/authentication/whmcsauth.php on line 87 And then the page displays... Suggestions? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 10, 2008 Share Posted November 10, 2008 Try this one and please let me know your results. http://tshosting.com.au/beta/WHMCS-Joomla1.5-Auth.zip 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted November 10, 2008 Share Posted November 10, 2008 Is the placement of the files the same in the joomla site? I noticed the file is encoded, a commercial plugin coming? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 10, 2008 Share Posted November 10, 2008 Is the placement of the files the same in the joomla site? Just install it as you would normally with any other joomla extension. In Joomla Admin, go to Extensions -> Install/Uninstall. Browse for the zip file and install. After installation, select Extensions -> Plugin Manager and fill in the details. I noticed the file is encoded, a commercial plugin coming? Possible.... have not decided yet 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted November 10, 2008 Share Posted November 10, 2008 Thanks... I'll have some time tomorrow morning to go over it., it's 1 AM here... Have you gone as far as looking at authentication based on whether the whmcs user is active, has a valid membership or has purchased a specific product? ...Just wondering 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted November 10, 2008 Share Posted November 10, 2008 The configuration requests the whmcsdb details are you writing to it or do you only need read access? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 10, 2008 Share Posted November 10, 2008 The configuration requests the whmcsdb details are you writing to it or do you only need read access? Read only for now.... There are other plans for it later Have you gone as far as looking at authentication based on whether the whmcs user is active, has a valid membership or has purchased a specific product? As you asked 1. Yes but not in that beta version 2. If the user does not exist in WHMCS then he does not have a membership 3. Will look into that for later... 0 Quote Link to comment Share on other sites More sharing options...
Redundant Posted November 13, 2008 Author Share Posted November 13, 2008 Try this one and please let me know your results.http://tshosting.com.au/beta/WHMCS-Joomla1.5-Auth.zip Hello Sparky: I have experimented with this some. At Joomla login it authenticates OK against WHMCS database like the other Plugin. But, after Joomla login, navigating over to WHMCS doesn't show the user logged in. Is this the intent? 0 Quote Link to comment Share on other sites More sharing options...
jimulti Posted November 13, 2008 Share Posted November 13, 2008 I'm new to WHMCS and currently evaluating it. I would like WHMCS and Joomla 1.5 to share login, so I'm happy to join in the discussion & development of a Joomla/WHMCS loginshare or bridge. Joomla is Open Source with a GPL licence Sparky, you will no doubt have used Joomla GPL code to build your WHMCS-Joomla1.5-Auth extension Therefore you have to pass the code on under the same licence. From the Joomla site: Does the license allow someone to encrypt an extension? Yes, technically, but the distributor must provide access to the complete and unencrypted source code by either including it in the package or by making it available for download. Sparky, can you supply an unencrypted version so that you comply with the Joomla Licence and so we can all help to develop a loginshare/bridge. cheers Jim 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 13, 2008 Share Posted November 13, 2008 I'm new to WHMCS and currently evaluating it.I would like WHMCS and Joomla 1.5 to share login, so I'm happy to join in the discussion & development of a Joomla/WHMCS loginshare or bridge. Joomla is Open Source with a GPL licence Sparky, you will no doubt have used Joomla GPL code to build your WHMCS-Joomla1.5-Auth extension Therefore you have to pass the code on under the same licence. From the Joomla site: Does the license allow someone to encrypt an extension? Yes, technically, but the distributor must provide access to the complete and unencrypted source code by either including it in the package or by making it available for download. Sparky, can you supply an unencrypted version so that you comply with the Joomla Licence and so we can all help to develop a loginshare/bridge. cheers Jim Jim, if thats the joomla rules then no problem. The download has been removed and is no longer available. I have other projects to do anyway. 0 Quote Link to comment Share on other sites More sharing options...
Shaun Posted November 15, 2008 Share Posted November 15, 2008 A joomla/WHMCS authentication can be party compleated with this. http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,3444/Itemid,35/ It won't create the session but with some minipulation and looking at some of the other posts it is possible to get an extention that can do it. I think the name of the session variable was mentioned before. 0 Quote Link to comment Share on other sites More sharing options...
Redundant Posted November 24, 2008 Author Share Posted November 24, 2008 Anyone looking to pick this Bridge project up, I have been examining Jfusion which is an open source project geared towards bridging Joomla with Bulletin boards and other software. After some struggles with the sample Plugin in the downloads section, I was directed to the SVN (http://code.google.com/p/jfusion/) which proved to be the best place to start with more mature code. Some solid bulletin board projects have been completed and a sample starter-plugin is also included with the install. A good amount of sample code is included regarding session handling, db connection, and all of the completed BB plugins are there for samples too. Someone with solid PHP skills would probably find the JFusion plugin's a breeze. They work pretty much the same as Joomla plugins. thanks 0 Quote Link to comment Share on other sites More sharing options...
Metee Posted November 28, 2008 Share Posted November 28, 2008 I created a little WHMCS login/logout module for joomla, this module can return first and last name after Log in to WHMCS (from joomla module). OK you can preview this module with link below. http://www.360advance.com/whmcs_login_module_en.html (Sorry my website is Thai and I'm not translate it yet) 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted November 28, 2008 Share Posted November 28, 2008 I'd like to test it, is it available for testing? Does it allow ANY registered whmcs user access to the joomla site, or can it be configured to allow only certain product/hosting plan owners login access? 0 Quote Link to comment Share on other sites More sharing options...
Metee Posted November 29, 2008 Share Posted November 29, 2008 Sorry I forgot to tell that my joomla module is NOT login share or bridge the purpose of the module is bypass joomla session, normally you can't use WHMCS integrate code inside joomla module (I mean module can't return login status or it's mean integrate code didn't work like it should be only HTML code work but not PHP) I closed joomla user system and use WHMCS instead so I don't need to bridge or login share just use WHMCS customer system. 0 Quote Link to comment Share on other sites More sharing options...
sonoracomm Posted December 28, 2008 Share Posted December 28, 2008 Sorry I forgot to tell that my joomla module is NOT login share or bridge the purpose of the module is bypass joomla session, normally you can't use WHMCS integrate code inside joomla module (I mean module can't return login status or it's mean integrate code didn't work like it should be only HTML code work but not PHP) I closed joomla user system and use WHMCS instead so I don't need to bridge or login share just use WHMCS customer system. This would work fine for me. Is this module available for download? Thanks, G 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted December 29, 2008 Share Posted December 29, 2008 Count me in as well... I just wan to have a single email address/password combination that works on both whmcs.com and joomla with the whmcs client area providing the master profile... Is there a download available? 0 Quote Link to comment Share on other sites More sharing options...
sonoracomm Posted December 29, 2008 Share Posted December 29, 2008 I have implemented the original module posted, with a few changes. Thanks very much. Though it would be ideal to have the 'bridge' (I think it was referred to) function, just having it take the client to WHMCS is useful to me. I changed modules/mod_whmcs/mod_whmcs.php so it posts securely (https://) and takes the client to my own WHMCS as well as added the closing (input) tags and <br> tags as suggested. Thanks again, G 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted December 29, 2008 Share Posted December 29, 2008 Are you going to make it available for download? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.