SelfRegistration & NMS (& FEU) integration
Posted: Mon Jun 30, 2008 11:46 pm
Hi all,
I am using CMSMS 1.3.1 with such modules:
- CGExtensions 1.8
- FrontEndUsers 1.4.3
- SelfRegistration 1.2
- NMS 2.1.1
I am on the stage of staring of configuration of everything and went through forum searching for solution, but didn't find an answer.
I would like to make such workflow:
- user registers with SelfReg form where there is email field and checkbox "I would like to receive newsletters"
- user confirms his registration through link in the emaiil
- I the system inserts his email address and name to NMS database if he/she selected to receive newsletters
Additionally I would like to remove his/her email from NMS list when he/she will change his/her profile from frontend 'change settings' form. Of course all operations I would like to perform on given NMS list.
I think I could do updating of NMS database catching onUserRegistered (for adding user's address) and OnUpdateUser (for removing user's address) events. Could you guide me how to make elegant update (I mean not by ordinary running MySQL query) to add _confirmed_ user's address to NMS database and to remove it if he/she uncheck mentioned option in his FEU record?
Second quetion about FEU: I understand that {silent} dumps user properties silently, but how to display for example text "You are logged as John Doe" (having property firstname="Joe" and surname="Doe")?
I am using CMSMS 1.3.1 with such modules:
- CGExtensions 1.8
- FrontEndUsers 1.4.3
- SelfRegistration 1.2
- NMS 2.1.1
I am on the stage of staring of configuration of everything and went through forum searching for solution, but didn't find an answer.
I would like to make such workflow:
- user registers with SelfReg form where there is email field and checkbox "I would like to receive newsletters"
- user confirms his registration through link in the emaiil
- I the system inserts his email address and name to NMS database if he/she selected to receive newsletters
Additionally I would like to remove his/her email from NMS list when he/she will change his/her profile from frontend 'change settings' form. Of course all operations I would like to perform on given NMS list.
I think I could do updating of NMS database catching onUserRegistered (for adding user's address) and OnUpdateUser (for removing user's address) events. Could you guide me how to make elegant update (I mean not by ordinary running MySQL query) to add _confirmed_ user's address to NMS database and to remove it if he/she uncheck mentioned option in his FEU record?
Second quetion about FEU: I understand that {silent} dumps user properties silently, but how to display for example text "You are logged as John Doe" (having property firstname="Joe" and surname="Doe")?