CMS MADE SIMPLE FORGE

Frontend Users

 

[#7515] User properties available in e-mail notification

avatar
Created By: Georg Wallisch (alcibiades)
Date Submitted: 2012-01-25 11:15

Assigned To:
Resolution: Won't Fix
State: Closed
Summary:
User properties available in e-mail notification
Detailed Description:
By adding 
	$event_params['userprops'] = $userprops; 
and a new array 
	$event_params['props2update'] = $props2update;
which is generated by
	$props2update[$propname] = $val;
in the loop right before
	$ret = $this->SetUserPropertyFull( $propname, $val, $uid );
to the $event_params array in "action.do_userchangesettings.php" you can show
the affected properties in the notification e-mail.

The following template only shows the values the user has changed:

*****TEMPLATE BEGINS*****
The user has changed these properties:

{foreach from=$param_userprops item=prop}
{foreach from=$prop item=i key=k}{assign var=$k value=$i}{/foreach}
{if $data != $param_props2update[$title]}
PROP NAME: {$title}
IS WAS: {$data}
NOW IT IS: {$param_props2update[$title]}
---
{/if}
{/foreach}
*****TEMPLATE ENDS*****

History

Comments
avatar
Date: 2014-04-26 12:18
Posted By: Robert Campbell (calguy1000)

Use the FEU API in your UDT.
      
Updates

Updated: 2014-04-26 12:18
resolution_id: => 8
state: Open => Closed