The member variables should already be set directly after
<cms:member_process_activation/>, if successful:
- Code: Select all
<cms:set action="<cms:gpc method='get' var='act'/>"/>
<cms:if action='activate'>
<cms:member_process_activation/>
<cms:if k_success>
<cms:send_mail from=k_email_from subject='Account Activated' to=k_member_email>
Hello <cms:show k_member_title/>,
Your account has been activated!
</cms:send_mail>
<cms:set_flash name='success_msg' value='2'/>
<cms:redirect k_page_link/>
<cms:else/>
<cms:show k_error/>
</cms:if>
<cms:else/>
<!-- Registration form -->
</cms:if>
If you want to verify that this is the case, temporarily remove the redirect and place a
<cms:dump/>.
The shortcodes could be implemented like so:
- Code: Select all
<cms:send_mail from=k_email_from subject='Account Activated' to=k_member_email>
<cms:do_shortcodes><cms:get_custom_field masterpage='emails.php' var='activated_email'/></cms:do_shortcodes>
</cms:send_mail>
In your addons/kfunctions.php, an example shortcode would be:
- Code: Select all
$FUNCS->register_shortcode( 'member_title', 'member_title_handler' );
function member_title_handler( $params, $content=null ){
global $CTX;
return $CTX->get( 'k_member_title' );
}
In the admin panel textarea, you would then just type
[member_title].