I use my own custom registration form created with Chronoforms.
Everything works nice but what I want is to create my own activation email (and not the 'unprofessional' look of the standard Joomla activation email). Can I do this with Chronoforms?
Thanks in advance.
Regards
Geert
Hi squawk,
That URL needs to include &chronoform=user_registration&event=check_email there's just a ; in the version you posted.
Bob
Hi Bob
Many thanks
The link now take the user to the site without an error page however the form (or any other page) is not displayed. Just the site's header and footer. I have also notice that the $token variable doesn't appear to be at the end of the completed link.
Also if I wish to include an activation link within an admin email that is sent at the same time, would this be the same code?
Many, many thanks once again Bob.
Hi squawk,
It should be OK provided that this Custom Action is after the Joomla! Registration action; to see exactly what is happening add a Debugger action (or more than one in different places). That will show you what values are being set and where.
Does your form have a check_email event? and does the event show any output? If not then there is nothing to see.
Bob
Hi Bob
Yes it does have a check email event to check if the email address in question is already used.
It is to this custom code I added you vlink code in an if else condition.
And it is before the Joomla! Registration action as I've got the email sending from the on success area of the registration action.
Hi squawk,
The token doesn't have any value before the Joomla! Registration action :-( The Custom Code has to be after the action. You can try putting it in the On Success event before the email though personally I try not to use the On Success events but put actions in the main parent event.
Bob
Hi Bob
Just tried that, the vlink then doesn't resolve and the email just contains 'vlink'!
Would you suggest that I should remove the email generation from the registration action and have the custom followed by the email action after and separate from the registration?
And thank you once again. :-)
Hi once again
The suggestion below is exactly the point I have now reached, and the $token is now being resolved. However the page still goes to a page dispalying only the header and footer and doesn't send the admin the verify email?
Hi squawk,
Please add a debugger to the Check Email event to see exactly what is happening there.
Bob