Custom Edit Profile Block

Hi everyone,

 

I want to create a custom PHP block that contains a link for the end-user to edit their profile.  However, I only want this to show up if the logged in user is viewing his own profile.  I found this code in the sys_objects_action block, but it doesn't work:

 

if ({ID} != {member_id}) return;
return _t('{cpt_edit}');

 

Basically, the code above will display the "Edit" button in the actions block.  I think that I'm on the right track.  However, I could also be incredibly off-base.

 

Thanks in advance for the help!

Quote · 15 Oct 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.