Serialnoob

Profile updated and points

Recommended Posts

Hello,

I'd like to add/remove points whenever some profile fields are edited (for example email, username, profile picture, member title, cover, signature etc);

The default rule "profile has been updated" triggers the actions for every single profile update, including reactions... 

I've read some similar topics here but I couldn't figure out how to do it?

https://ipsguru.net/forums/topic/714-event-member-profile-is-updated

https://ipsguru.net/forums/topic/298-condition-for-profile-fields-and-rule-fields?tab=comments#comment-1061

Please help!

PS: I am a noob

Share this post


Link to post
Share on other sites

Its not particularly easy to pull that off. You basically have to check the changed fields array that is part of the profile updated event to see if any of the fields you just mentioned are in it.

The "changed" array indicates what properties have changed in the update. If you actually need the before and after values, then it gets even more involved.

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.