Jump to content

Joomla Bridge


tim

Recommended Posts

Mike,

 

(this one is on topic :) )

I depends on how much information you want to capture, how much of those user input information fields already exists in Joomla (default is UN, PW & email), and how you want to use the information.

 

however, your question is a bit fuzzy. Joomla is great for showing dynamic user-only content, where-as WHMCS isn't.

Can you clarify whether you are looking at a) a login share, user-sync or both, and

and b) Joomla-forum, Joomla to WHMCS, WHMCS to forum or all three.

 

the reason I ask i there are a couple of WHMCS-forum login shares now running.

 

Also one of your previous threads says you haven't messed with Joomla. i wouldn't be jumping in the deep end with Joomla on my first investigations of it. Its a bit top heavy, and has a medium steep learning curve for the admin user.

Link to comment
Share on other sites

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 months later...

Can you give me an idea of where to find the authentication login share you were speaking of? I found a plugin which says whmcsauth but it does not seem to build the user into the whmcs database, only joomla, even with whmcs api url password etc... I want to use joomla as content only but at the same time, have each user stored either in the joomla database or have joomla access to whmcs database so I can use joomla to email all clients, autoresponder plugin etc...

 

Any help appreciated..

 

Joe

Link to comment
Share on other sites

I'll pay for a Joomla addon.

 

ok, I've searched and searched, then started over.

There is tons of talk about WHMCS and Joomla, mainly in reference to templates and look/feel.

 

Does anyone know how to combine the username/password database for Joomla & WHMCS?

 

It would be so nice if users could just login to joomla, and be already logged into WHMCS. Just my 2c.

 

:-) Thanks

Tim

Link to comment
Share on other sites

  • 3 weeks later...

I'm planing to create a component out of WHMCS for Joomla.

My component is com_whmcs381. In Joomla directory /components/com_whmcs381/whmcs381.php is as following.

 

<?php
$pathshow=$_GET['pathshow'];
$username = $_POST['username'];
$password = $_POST['password'];
$rememberme = $_POST['rememberme'];
switch ($task) {

[indent]default:
case 'normal':
[indent]$local="http://www.slesolutions.com/xxxxxxxx/components/com_whmcs381/whmcs/";
$string=$local.$pathshow;
//require($string);
include($string);
break;[/indent]

case 'form':

[indent]$local="http://www.slesolutions.com/xxxxxxxx/components/com_whmcs381/whmcs/";
$command="?username=";
$command .=$username;
$command .="&password=";
$command .=$password;
//$command .="&rememberme=";
//$command .=$rememberme;
$string=$local.$pathshow.$command;
include($string);
break;[/indent]
[/indent]
}
?>

I planed to grab the WHMCS site by include() to the Joomla site.

It was working with links 100%,(<a href="...)

index.php?option=com_whmcs381&task=normal&pathshow=

but when it comes to user login it falis.

index.php?option=com_whmcs381&task=form&pathshow=

as WHMCS wants to send data to dologin.php

index.php?option=com_whmcs381&task=form&pathshow=dologin.php

 

WHMCS is not throwing incorrect user information warning, So I assume that my code is successfully authenticating WHMCS, but it fail to create session(I'm not sure here).

 

So i checked it with a test.php

<?php

session_start();

foreach ($_SESSION as &$value){

[indent]echo $value;
echo '<br />';[/indent]

}
foreach ($_COOKIE as &$value){

[indent]echo $value;
echo '<br />';[/indent]

}
unset($value);
return "";
?>

When I access test.php directly (http://www.slesolutions.com/xxxxxxxx/components/com_whmcs381/whmcs/)

it gives me no sessions related to WHMCS login.

And through Joomla (index.php?option=com_whmcs381&task=normal&pathshow=test.php) gives me a blank joomla page.

 

Does anyone have any idea to improve from here.

My knowledge on PHP and Joomla is not good but I keep doing things so feel free to correct me.

Tnx ppl.

U'

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
  • 2 weeks later...

Hi,

 

just found this !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

It seems to be updated, as it is written to be fixed for 4.1 - and users reviews of the dev`s service are great. Will install it and write, how it works.

 

--- edited: saw that it coast 120$.....

 

:-P

Edited by hastla
Link to comment
Share on other sites

  • 5 weeks later...
Hi,

 

just found this !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

It seems to be updated, as it is written to be fixed for 4.1 - and users reviews of the dev`s service are great. Will install it and write, how it works.

 

--- edited: saw that it coast 120$.....

 

:-P

 

any news regarding this integrator?

Link to comment
Share on other sites

  • 3 weeks later...
any news regarding this integrator?

 

Hi,

 

I bought it and I think I was one of the first. Steven (the developer) always gave the best to make it really good working now. Little things have to be changed or made better, but all in all 120$ is cheap for such a good support included.

 

I´m sure Steven will make the ultimate registration tool for WHMCS and Joomla 1.5 - Buy this and you will get what you want. Unbelievable fast updating and fast enhancements of features are guaranteed for this addon. You can see my install here: http://www.nowdoo.at - realease to production stage soon.

Link to comment
Share on other sites

  • 1 month later...
Is it really worth $120 though?

 

I have been looking around and for $25, there are companies that will make my WHMCS site look identical to my Joomla site. I know I wouldn't have the dynamic menus, etc, but $120 does seem a bit steep.

 

yes, I don't wanna pay that much. would prefer something cheaper. anything?

Link to comment
Share on other sites

  • 3 months later...

Hi

 

Just came across this post so thought I would post what I did.. Sorry if I am bumping it up.

 

If you just want to have the one login, being the WHMS login, try doing below.

 

1. Go to Module Manager - new - custom HTML

 

2. add

 

<form id="frmlogin" action="billing/dologin.php?goto=clientarea" enctype="application/x-www-form-urlencoded" method="post">

<table class="frame" style="margin: 0 auto;" border="0" cellspacing="0" cellpadding="0" align="center">

<tbody>

<tr>

<td>

<table border="0" cellspacing="0" cellpadding="5" align="center">

<tbody>

<tr>

<td class="fieldarea" width="20" align="right">Email:</td>

<td><input style="width: 102px; height: 22px;" name="username" size="13" type="text" /></td>

</tr>

<tr>

<td class="fieldarea" width="20" align="right">Password:</td>

<td><input style="width: 101px; height: 22px;" name="password" size="14" type="password" /></td>

</tr>

<tr>

<td class="fieldarea" width="20" align="right"><input name="rememberme2" type="checkbox" value="on" /></td>

<td>Remember Me</td>

</tr>

<tr>

<td class="fieldarea" width="20" align="right"> </td>

<td><input type="submit" value="Login" /></td>

</tr>

</tbody>

</table>

</td>

</tr>

</tbody>

</table>

</form>

 

3. Make sure the 1st line is pointing to your whmcs folder (billing, payments, etc)

 

4. Press save and your done. :D

Link to comment
Share on other sites

  • 1 month later...
  • 8 months later...
this is EXTREMELY easy to do. just write a short function to make the following call to the WHMCS API while storing the user's joomla profile info in an array called $DetailArray:

 

$url = "api.php"; # URL to WHMCS API file
$username = "admin"; # Admin username goes here
$password = "admin"; # Admin password goes here
$postfields["username"] = $username;
$postfields["password"] = md5($password);

$postfields["action"] = "addclient"; 
$postfields["firstname"] = $Detail_Array[firstname];
$postfields["lastname"] = $Detail_Array[lastname];
$postfields["companyname"] = $Detail_Array[business];
$postfields["email"] = $Detail_Array[email];
$postfields["address1"] = $Detail_Array[address];
$postfields["address2"] = $Detail_Array[address2];
$postfields["city"] = $Detail_Array[city];
$postfields["state"] = $Detail_Array[state];
$postfields["postcode"] = $Detail_Array[postcode];
$postfields["country"] = "AU";
$postfields["phonenumber"] = $Detail_Array[phone];
$postfields["password2"] = $Detail_Array[password];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$data = curl_exec($ch);
curl_close($ch);

$data = explode(";",$data);
foreach ($data AS $temp) {
	$temp = explode("=",$temp);
	$results[$temp[0]] = $temp[1];
}

if ($results["result"]=="success") {
	# Result was OK!
	echo("Success, new client id is ". $results["clientid"]);
} else {
	# An error occured
	echo "The following error occured: ".$results["message"];
}

 

then just save the user's $clientID into a field in the joomla user table. You can then submit their username and password to the WHMCS login page using a link on your joomla homepage.

 

We did the same thing on our website, but we dont use Joomla. its the same deal though.

 

I've never actually used Joomla, but if it's writen in PHP with MySQL, then you should be able to use this code (mostly borrowed from the WHMCS API documentation) to do what you want to do.

 

Hi there, where must i put this code? thanks in advance

Link to comment
Share on other sites

Hi there, where must i put this code? thanks in advance

 

Hey, this thread is pretty old... there's a solution for this now:

 

https://www.gohigheris.com/our-products/whmcs-autoauth-for-joomla.html

 

and a much more robust paid solution:

 

https://www.gohigheris.com/our-products/jwhmcs-integrator.html

 

the guys there are great...so check it out.

Link to comment
Share on other sites

  • 1 month later...
this is EXTREMELY easy to do. just write a short function to make the following call to the WHMCS API while storing the user's joomla profile info in an array called $DetailArray:

 

$url = "api.php"; # URL to WHMCS API file
$username = "admin"; # Admin username goes here
$password = "admin"; # Admin password goes here
$postfields["username"] = $username;
$postfields["password"] = md5($password);

$postfields["action"] = "addclient"; 
$postfields["firstname"] = $Detail_Array[firstname];
$postfields["lastname"] = $Detail_Array[lastname];
$postfields["companyname"] = $Detail_Array[business];
$postfields["email"] = $Detail_Array[email];
$postfields["address1"] = $Detail_Array[address];
$postfields["address2"] = $Detail_Array[address2];
$postfields["city"] = $Detail_Array[city];
$postfields["state"] = $Detail_Array[state];
$postfields["postcode"] = $Detail_Array[postcode];
$postfields["country"] = "AU";
$postfields["phonenumber"] = $Detail_Array[phone];
$postfields["password2"] = $Detail_Array[password];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$data = curl_exec($ch);
curl_close($ch);

$data = explode(";",$data);
foreach ($data AS $temp) {
	$temp = explode("=",$temp);
	$results[$temp[0]] = $temp[1];
}

if ($results["result"]=="success") {
	# Result was OK!
	echo("Success, new client id is ". $results["clientid"]);
} else {
	# An error occured
	echo "The following error occured: ".$results["message"];
}

 

then just save the user's $clientID into a field in the joomla user table. You can then submit their username and password to the WHMCS login page using a link on your joomla homepage.

 

We did the same thing on our website, but we dont use Joomla. its the same deal though.

 

I've never actually used Joomla, but if it's writen in PHP with MySQL, then you should be able to use this code (mostly borrowed from the WHMCS API documentation) to do what you want to do.

 

Could someone tell me where I need to copy these codes?

Link to comment
Share on other sites

this is EXTREMELY easy to do. just write a short function to make the following call to the WHMCS API while storing the user's joomla profile info in an array called $DetailArray:

 

$url = "api.php"; # URL to WHMCS API file
$username = "admin"; # Admin username goes here
$password = "admin"; # Admin password goes here
$postfields["username"] = $username;
$postfields["password"] = md5($password);

$postfields["action"] = "addclient"; 
$postfields["firstname"] = $Detail_Array[firstname];
$postfields["lastname"] = $Detail_Array[lastname];
$postfields["companyname"] = $Detail_Array[business];
$postfields["email"] = $Detail_Array[email];
$postfields["address1"] = $Detail_Array[address];
$postfields["address2"] = $Detail_Array[address2];
$postfields["city"] = $Detail_Array[city];
$postfields["state"] = $Detail_Array[state];
$postfields["postcode"] = $Detail_Array[postcode];
$postfields["country"] = "AU";
$postfields["phonenumber"] = $Detail_Array[phone];
$postfields["password2"] = $Detail_Array[password];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$data = curl_exec($ch);
curl_close($ch);

$data = explode(";",$data);
foreach ($data AS $temp) {
	$temp = explode("=",$temp);
	$results[$temp[0]] = $temp[1];
}

if ($results["result"]=="success") {
	# Result was OK!
	echo("Success, new client id is ". $results["clientid"]);
} else {
	# An error occured
	echo "The following error occured: ".$results["message"];
}

 

then just save the user's $clientID into a field in the joomla user table. You can then submit their username and password to the WHMCS login page using a link on your joomla homepage.

 

We did the same thing on our website, but we dont use Joomla. its the same deal though.

 

I've never actually used Joomla, but if it's writen in PHP with MySQL, then you should be able to use this code (mostly borrowed from the WHMCS API documentation) to do what you want to do.

 

where I need to paste this code could you tell me step by step? Thanks in advance

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated