Forums

Send Admin User activation URL email

ltempest 14 Feb, 2022
Hello,
I have a website that currently has a number of registration forms for visitors to register to specific user groups and access additional content. These work perfectly and user register and view the content. These forms and Joomla are set to allow automatic user activation with no approval email etc.

However, my client now wants another section of his site restricted to users who register, but they want to approve the user registration before a user can login. I cannot change the Joomla config becasue this will affect the already working 'free' registration user groups.

I have another registration form setup and it works to the point of registering the user in a new group and disabling their acces. it emails the site administrator a notification of the form submission, but I cannot get the email to include a valid activation link for the admin to approve the user account.

I have been trying to follow this older thread:

https://www.chronoengine.com/forums/posts/t106976/activation-code-for-joomla-user-registration?keywords=user%20activation

but do not know or understand the session / Data Builder fucntion. How does this work? how do i set it up and where do I include it in the form setup settings?

Can anyone help? :-)

Thanks
Lee
Colnem 14 Feb, 2022
Hi

A data session is preserved as long as user is connected.
So you can retrieve this value on all page forms.

To set a session value, use Action/Basics/Variables. Then choose Set New Variable: Session Data: your_session_name = your_value (or {data:your_data_value} or {var:your_var_name}).

To use in Action or View Element, use {session:your_session_name}.

Beware: this data session is alive on all your forms as long as you not destruct (or reuse) it.

Bye
ltempest 15 Feb, 2022
Colnem,
Thanks for the reply, unfortunately I do not understand what you are asking me to do! :-(

Do I set this session value on in the form loading, or submit actions?

How then do I recall this in the email sent to the admin?

Thanks
Lee
Colnem 15 Feb, 2022
HI

I just answer to the question about session variable. Not about to allow automatic user activation with no approval email etc.
Because my english is very bad and I'm not sure that I have understand well that you search.

Colnem
ltempest 18 Feb, 2022
Colnem,
Thank you for your efforts, hopefully someone else may see this thread and offer some advice. i now have a DataBuilder in my submit actions that now seems to provide a session variable. However I think the code i have in the admin email is incorrect. From an older thread I an using this:

{url.full:activate$code=(var:joomla_user3.activation)}

which give a url like this:

http://XXXXX/knowledge-center/rockwell-automation-integration/rockwell-automation-registration?chronoform=rockwell-user-group&event=activate&code=94e2fe86-816c-4e17-bf6f-0e355a46d24d

Which does not look correct as it is using the chronoform url and not the core Joomla url which should be something like:
​http://XXXXX/index.php?option=com_users&task=registration.activate&token=c54699c03a1039b3adda603e7aa3ecc0&Itemid=21


What I do not understand is how to cinstruct this URL in the admin email setup.

Anyone have any ideas?
kollo2 02 Dec, 2022
Got the same Problem - did anyone got a solution?
You need to login to be able to post a reply.