auto login after registration - HELP..:-)

15 years 9 months ago #67787 by simon
Hi all....

A question. What if I want to login the visitirs of one of my sites automatically after registration..

I have tried all I could find (and a lot more) on this forum but nothing works..

Added

$mainframe->login($user[0]->username,$user[0]->password);

in comprofiler.php around line 2634. But it just does not work and I can not figure out wtf I am dong wrong..

Joomla 1.12 / CB 1.1

Anyone any ideas????

Please Log in to join the conversation.

15 years 9 months ago #67998 by beat
upgrade to joomla 1.0.15 and it will work

or change to:

[code:1]$mainframe->login($user[0]->username,md5($user[0]->password));
[/code:1]

btw: not recommended, as the user will not have a chance to save username/password in his browser keychain ;)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

15 years 9 months ago #68023 by simon
thanks beat...again..:-)

Please Log in to join the conversation.

15 years 8 months ago #68986 by simon
He Beat...

Upgraded my clients site to 1.0.15 (needed to do that anyway and tried the autologin again..

It just doesn't work

Can't put my finger on it? any tips?

Please Log in to join the conversation.

15 years 2 months ago #87597 by amanoullah_n
Replied by amanoullah_n on topic Re:auto login after registration - HELP..:-)
Hi Beat,

I can't find the
[code:1]echo $messagesToUser;[/code:1]in comprofiler.php.

What I found was
[code:1]echo "\n<div>" . implode( "</div>\n<div>", $messagesToUser ) . "</div>\n";[/code:1]on line 1058.

Am am using CB 1.1 on Joomla 1.5

What should I modify? If I replace [code:1]echo "\n<div>" . implode( "</div>\n<div>", $messagesToUser ) . "</div>\n";[/code:1] by [code:1]$mainframe->login($user[0]->username,md5($user[0]->password));[/code:1] or [code:1]$mainframe->login($user[0]->username,$user[0]->password);[/code:1], I get an error like this:

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in D:\WWW\testsite\includes\application.php on line 183

Thanks for your help!

Please Log in to join the conversation.

15 years 3 weeks ago #92899 by pplexr

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.238 seconds

Facebook Twitter LinkedIn