Forums

Placeholder in new event not shown

galbur 19 Apr, 2013
Hi

That was hard work ;-) I builded a Form with a Joomlaregistration and an E-Malil to activate the Account and a curl Fuction to a AcyMailing List. After all, it worked very well, but there is one last Problem. The Joomla Registration leads to a new event called "on activation" i have a "Thank you" message and an e-mail with new information for the user.

The Email with the activation Link in the "on submit" event works perfect with the dynamic data in Curly Brackets. "{firstname} {name}" is "Peter Smith".

The E-Mail in the "on activation" event doesn't work. "{firstname} {name}" is "{firstname} {name}".
As well the "dynamic to" in the dynamic tab (email action)doesn't work so the registered couldn't get an email.

Maybe i forgot something?

Chris

Thank you
Chris
GreyHead 20 Apr, 2013
Hi Chris,

The On Activation event is run completely separately from the On Submit event - there might be a few days in between - so there is no saved data to use, You have to re-load anything that you want to include in the email or thank you message from the Joomla! User object or a Database table.

Bob
galbur 20 Apr, 2013
Hi Bob

Thanks a lot for youre reply! Ok, let's say i want to connect it with a DB.
Where do i have to start? How to load the Data from the DB to the new event?
Is there a tutorial for this?

Chris
GreyHead 20 Apr, 2013
Hi Galbur,

I would add some kind of record identifier to the activation url and use this to load a record from the database table using the DB Record Loader action.

You may be able to use the standard activation code for this I haven't tried it but I think it would mean looking up the activation code in the #__users table before the Joomla Activation action (it will be deleted after the activation). This will let you look up the user id and use that to get the rest of the information from the Joomal User object, or from your own table.

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