Hi,
I'm using the latest chronoforms and have created a user registration form that works perfectly. It sends out a custom email welcoming the user and stores all the questions asked in a database for later access.
Problem is, I need the user to activate their account from the email sent after registration. We have created a great email template that is used throughout the website but the activation email is still the old boring joomla one and I can't figure out how to include the activation link in the email sent when the user registers, any ideas anyone? Last thing to do before the website goes live so urgent!
Cant find a tutorial or complete answer for this either on the forum!
Cheers,
Derek
I'm using the latest chronoforms and have created a user registration form that works perfectly. It sends out a custom email welcoming the user and stores all the questions asked in a database for later access.
Problem is, I need the user to activate their account from the email sent after registration. We have created a great email template that is used throughout the website but the activation email is still the old boring joomla one and I can't figure out how to include the activation link in the email sent when the user registers, any ideas anyone? Last thing to do before the website goes live so urgent!
Cant find a tutorial or complete answer for this either on the forum!
Cheers,
Derek
Hi Derek,
There doesn't seem to be an easy way to do this with the Joomla Registration action :-(
The simplest seems to be to edit the definition in the site language files - look for: COM_USERS_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY
Otherwise you can create your own activation link, I did it recently with this code in a Custom Code action:
You can then add {vlink} to a ChronoForms Email template.
This version also uses a custom validation form event but I think that the code could be adapted to use the standard Joomla validation page by changing the path in the URL here:
Bob
There doesn't seem to be an easy way to do this with the Joomla Registration action :-(
The simplest seems to be to edit the definition in the site language files - look for: COM_USERS_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY
Otherwise you can create your own activation link, I did it recently with this code in a Custom Code action:
<?php
$token = $form->data['_PLUGINS_']['joomla_registration']['activation'];
$form->data['vlink'] = JURI::root().'index.php?option=com_chronoforms&chronoform=new_login_request&event=retailer&token='.$token;
?>
You can then add {vlink} to a ChronoForms Email template.
This version also uses a custom validation form event but I think that the code could be adapted to use the standard Joomla validation page by changing the path in the URL here:
option=com_chronoforms&chronoform=new_login_request&event=retailer
Bob
This topic is locked and no more replies can be posted.