Hi!
Following issue:
I'm using extended users and would like to have new users verify their email address (as in the documentation). However my ultimate goal is not to activate the account directly (and additionally send an email to the admin).
So I changed the "activate" part to the following:
The process_activation seems to give me the page_id of the new registered user which is why I used cms:pages to access this user's details in hopes of sending those to the admin and resetting the publish date to zero so that the account gets disabled again. However I get only a "Cheating?!" when I try to open the verification link.
Any ideas to why? Or is there a better way to handle what I would like to achieve?
Following issue:
I'm using extended users and would like to have new users verify their email address (as in the documentation). However my ultimate goal is not to activate the account directly (and additionally send an email to the admin).
So I changed the "activate" part to the following:
- Code: Select all
<cms:if action='activate' >
<h2>Activate account</h2>
<cms:process_activation />
<cms:if k_success >
<cms:set_flash name='success_msg' value='2' />
<cms:pages masterpage='users/index.php' id=page_id limit='1'>
<cms:db_persist
_masterpage=k_template_name
_page_id=k_page_id
_mode='edit'
k_publish_date = '0000-00-00 00:00:00'
/>
</cms:pages>
<cms:else />
<cms:show k_error />
</cms:if>
<cms:else/>[...]
The process_activation seems to give me the page_id of the new registered user which is why I used cms:pages to access this user's details in hopes of sending those to the admin and resetting the publish date to zero so that the account gets disabled again. However I get only a "Cheating?!" when I try to open the verification link.
Any ideas to why? Or is there a better way to handle what I would like to achieve?