Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

redirection after user registration/activation

11 years 2 months ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

after an new user activates his account he's redirected to the register form.
Of course there is displayed the info in the drawer position...

Die E-Mail-Adresse wurde verifiziert. Sobald der Administrator das Konto aktiviert hat, wird automatisch eine weitere E-Mail verschickt.
REDIRECTED_TO_COMMUNITY_REGISTRATION

...but i am quite sure some new users will be confused about that. Is it possible to redirect to e.g. the sites home after the activation link is pressed?

regards
Peter

11 years 2 months ago
  • David Sutanto's Avatar
  • David Sutanto
  • Visitor
  • Thank you received: 0
Licenses:

Hi Peter,

About this, i need to get some advice from a developer and will reply soon :) I'm so sorry for late reply because of weekend :)

Warm Regards,

David

11 years 2 months ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Any update on this?

11 years 2 months ago
  • David Sutanto's Avatar
  • David Sutanto
  • Visitor
  • Thank you received: 0
Licenses:

Hi Peter,

Sorry for very late reply for you :)
maybe you can do this step by step but don't forget to backup first your registration.php :)

Step:1
Open the file: components/com_users/controllers/registration.php

Step:2
Search the below code on line: 79

elseif ($useractivation == 1)
		{
			$this->setMessage(JText::_('COM_USERS_REGISTRATION_ACTIVATE_SUCCESS'));
			$this->setRedirect(JRoute::_('index.php?option=com_users&view=login', false));
		}

Step:3

After email activation. set Custom redirect to home page
Replace the below line :
$this->setRedirect(JRoute::_('index.php?option=com_users&view=login', false));
with this :
$this->setRedirect('index.php');

if you want change redirect to other page, please change index.php into new url begin with index.php?xxxxx (don't use SEF url)

Warm Regards,

David

11 years 1 month ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

thanks for that!
Until the second step everything seems to be good and redirecting ist working!
I replaced the necessary line with:
$this->setRedirect('index.php'); (exactly as you said)

not with:
$this->setRedirect('index.php'));

The issue now is that the registration link seems to be not working.
1) using FF an empty window appears, nothing is displayed
2) using IE an error-message is shown "error 401 login failed"

Never the less, the login is working after activation.
But now, another user confusing behaviour is given...

regards
Peter

11 years 1 month ago
  • David Sutanto's Avatar
  • David Sutanto
  • Visitor
  • Thank you received: 0
Licenses:

Hi Peter,

Can you provide me your FTP access ? by the way, you are using Admin as user activation right ? not self user activation..

Warm Regards,

David

11 years 1 month ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Sent you a PM!

11 years 1 month ago
  • David Sutanto's Avatar
  • David Sutanto
  • Visitor
  • Thank you received: 0
Licenses:

Hi My Dear Peter :)

I can't access FTP with credentials from your private message.. it said "Response: 530 Login authentication failed"... Can you check again about this credentials ?

Warm Regards,

David

11 years 1 month ago
  • David Sutanto's Avatar
  • David Sutanto
  • Visitor
  • Thank you received: 0
Licenses:

Hi Peter,

I trie to backup your site using akeeba, please don't delete my akeeba backup :D i need this to inspect on my localhost not on your live site :)

Warm Regards,

David

11 years 1 week ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi David,
let me come back to this topic or let us close this.

I am not glad that you enabled user self activation to my productive site without asking me and my approval.

David wrote: by the way, you are using Admin as user activation right ? not self user activation..


The good thing on this is, that the user registration process now isn't confusing the user anymore.

Maybe i will come back to this again, if i see a need to have an admin approval. Until that i will test the needed steps within my develope environment myself.

At least i have one more question: where do i find the switch for "self user activation"/"admin user activation"?

kind regards
Peter

11 years 1 week ago
  • David Sutanto's Avatar
  • David Sutanto
  • Visitor
  • Thank you received: 0
Licenses:

Hi Peter,

I'm sorry, my bad because i forgot change it back again into admin activation... to change it again go to joomla backend-> user -> user manager -> options and search about new user activation in there..

Warm Regards,

David

10 years 11 months ago
  • David Sutanto's Avatar
  • David Sutanto
  • Visitor
  • Thank you received: 0
Licenses:

Hi Peter,

We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.

Warm Regards,

David

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW