This topic is locked

Joomla login working with phpRunner

10/4/2006 16:36:54
PHPRunner General questions
T
tm2000 author

Hey All..
Great Program.. Trying to get user info from Joomla to pass login username and password within phprunner...
Have followed this post:

http://www.asprunner.com/forums/index.php?...=1851&hl=joomla
and now my Joomla logins work with my form... but trying to make it so when someone logs into Joomla, they are logged into the table.. Have it inside my Joomla dBase..
Looked at this post:

http://www.asprunner.com/forums/index.php?...c=1370&hl=mambo
but can't figure it out.. I know someone has already figured this out.. Any one have some ideas?

W
wkorving01 11/4/2006

Have you tried to work with wrapper-login for Joomla? You can use this component to connect to you're PHPRunner application without login again.
Just create a login page in PHPRunner connection to the jos_......users table using unique fields like the username en de id field (I still have problems with this configuration using the password field ....), and change the wrapper-login.php password value into id ...
--

switch ($params->get( 'user_src' )) {

case "mambo":

$login = $my->username;

$query = "SELECT id FROM #__users WHERE id = ". $my->id;

$database->setQuery( $query );

$pass = $database->loadResult();

break;

---
Create a new component in Joomla thats points to the login.php page from you're PHPRunner application and use the Login en Password Form fields as in the login.php from PHPRunner, username and password, Identifier = Mambo. To ensure direct login add the following line into the Other fields field:
<input name="btnSubmit" value="Login" type="hidden">
Greetz,
Wim

T
tm2000 author 11/4/2006

... (I still have problems with this configuration using the password field ....



Thanks Wim.. I git it working, but your way is much better.. On the Password, I had the same issue, but you know, I just used the username as the password since it's not a big deal with the info I have in the database and it worked great.

A
aaronchan 7/22/2007

Hi! Wim... trying to get phprunner to run under Joomla one time login. Please help clarify the portion where you said,
"Create a new component in Joomla thats points to the login.php page from you're PHPRunner application and use the Login en Password Form fields as in the login.php from PHPRunner, username and password, Identifier = Mambo. To ensure direct login add the following line into the Other fields field:
<input name="btnSubmit" value="Login" type="hidden">"
I'm not sure what component you were referring to? Where is the Other fields? If possible, please give a breakdown of the steps you used to integrate Joomla with PHPrunner.
THanks a lot for your help!

rsawchuk 7/24/2007



Thanks Wim.. I git it working, but your way is much better.. On the Password, I had the same issue, but you know, I just used the username as the password since it's not a big deal with the info I have in the database and it worked great.


Joomla uses a MD5 encryption of its passwords. So whenever I needed to read its password from another application I add MD5 to the variable name.
Hope this helps.
Russ

F
fullfusion 11/30/2007

Create a new component in Joomla thats points to the login.php page from you're PHPRunner application and use the Login en Password Form fields as in the login.php from PHPRunner, username and password, Identifier = Mambo. To ensure direct login add the following line into the Other fields field:

<input name="btnSubmit" value="Login" type="hidden">


<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=23782&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=23782&image=2&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> Help with the above <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=23782&image=3&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=23782&image=4&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=23782&image=5&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />
I am also wondering what the steps to get this accomplished are....
wim or Aaron Chan or anyone, did you get it solved?
Can you please be so kind to provide the steps so we can all benefit from your great discovery?
All we are all missing are the last steps on the quote above <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=23782&image=6&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=23782&image=7&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />
Thank you so much!!!

K
kenlyle 12/21/2007

Me too...I do a lot of Joomla sites, but have not created components or otherwise worked behind the Admin GUI in the code. It would be great to have easy, clear instructions, because building on the Joomla logins simplifies things...
Thanks!

Ken

rsawchuk 12/22/2007

Me too ... I got over a dozen Joomla sites each with 2 to 4 phpRunner applications. The best I have managed to do is get users to check Remember Password. This usually saves them some work.
I don't have the time or expertise to spend days trying to figure out how to get it to work. I'm at a point where I would be willing to PAY someone to come with a solution. Anyone interested?
Russ

K
kenlyle 1/14/2008

Hey!
I have Joomla 1.0.13, and am using PHPR 4.1, Build 312.
I just set up security on my application and set the jos_users as the table, and username and password as the fields.
There is some issue with the MD5 or the new Joomla encryption scheme, but here is a workaround that works for me until someone comes up with something better:
Enable Lost Password recovery in Security, as well as Change Password.
Tell your users to use Lost Password to get their "replacement" password, then use Change Password to change it back.
After changing it "back", I was able to login to Joomla through the Login module, which is Community Builder in my case, but that shouldn't matter.
Like I said, at least it works....
Ken

K
kenlyle 1/22/2008

Hey!

I have Joomla 1.0.13, and am using PHPR 4.1, Build 312.
After changing it "back", I was able to login to Joomla through the Login module, which is Community Builder in my case, but that shouldn't matter.
Like I said, at least it works....
Ken


Update...Duh, sorry...in that scheme, when you go back to the PHPR application, the login then fails, because once Joomla gets a crack at the standard MD5 password, it "salts" it somehow.
I have had a coder do a workaround for me, and am deciding whether/how to release it.
Ken

I
indigo 2/13/2008

Is there a login script working with Joomla 1.5 version that is out now?

It encrypts passwords using salt.

T
tparkiDevClub member 3/29/2008

Like Indigo I'm hoping some wizard will come up with a script or something to enable users who login to a Joomla 1.5 site to access PHPRunner screens without a further login step. Joomla 1.5 encrypts it passwords using a 'one way MD5 hash'.
Tim