Joomla Registration Activation Link

luxhodge 15 Oct, 2013
Bob,

I am trying to create some custom Joomla! registration forms. I want to register a new user and at the same time save their data to a table in the database that I can use later to create their custom profile page. The database save works fine and my custom profile page works fine (assuming my user is properly activated). However, the activation link is where I get stuck. I don't know what link to use to activate a user if I bypass the Joomla! registration setup. I tried using a link to my custom login page, but when I try to activate a new user, I am sent to a url like this: http://mysite.com/client-login&token=a_really_long_unique_user_ID. This ends up with a 404 page not found error. What am I missing? I have Joomla! new user registration set to no. Is that incorrect? I thought that is what it said in a tutorial that I found. Please let me know what you think. Attached is a copy of my registration form without the database save. I also included some screenshots. Thanks!

Erik
[attachment=2]Joomla_reg_question_shot1.jpg[/attachment]
[attachment=1]Joomla_reg_question_shot2.jpg[/attachment]
[attachment=0]Joomla_reg_question_shot3.jpg[/attachment]
luxhodge 15 Oct, 2013
I am going to post my own answer to this. I went back and found another post on this topic which lead me to the answer. Here is the link: http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=26&t=67569. The activation link ended up being a relative link and includes your form name and the event name for your Joomla! activation event. My error was that my event name was spelled wrong. I had a lower case "v" for verify instead of an upper case "V". Doh!. Here are all my working settings and the activation link url:
In the Joomla! registration event block:
- Override the Joomla Allow user registration = Yes
- Usertype = Client (custom for this user registration form)
- User activation = Yes
- Send activation = Yes
- Activation link = index.php?option=com_chronoforms&chronoform=ClientRegistration&event=Verify
(ClientRegistration is the name of my form, Verify - capital V! - is the name of my event for activation)
- Random Password = No
- Auto Login = No
- Display status = No
- User Data Path = blank
- I have an Event Loop in the On Fail and nothing in the OnSuccess

Then in the On Verify event, I have a Joomla User Activation block with these settings.
- Override the Joomla Allow user registration = Yes
- Allow default Redirects = No.
- I have an Event Loop in the OnFail action.
- I have a RedirectUser with a custom URL (my custom login page) in the OnSuccess action.

That's it. Sorry I didn't find the link above before posting this. Thank you for your patience.

Erik
This topic is locked and no more replies can be posted.