Setting up a node notification at user register

Author Message

Nathan Kelly

Monday 28 November 2005 7:14:46 pm

Hi all, the site I'm currently working on has a newsletter section, basically its just a folder[class] called "Newsletter".

I would like to have a checkbox on the user registration form that allows the user to specify wether or not they would like to subscribe to the newsletter. If they select the check box the newsletter node will be added to their notifications and they will be able to un-subscribe from the notification/settings area.

Is this possible? I fear the limitation will be that the user will not be created until [after] they have clicked the register button, therefore the notification can't be added until [after] the user exists.

This may need to be a two step process but I'm not sure where to start, can anyone give me some suggestions on how this might be achieved?

Cheers!

Pardon me while I burst into flames...

Alexandre Abric

Tuesday 29 November 2005 12:32:04 am

Hi,

Yes, this is possible. You need to develop a workflow on "post register".

Have a look at the contrib I made : http://ez.no/community/contribs/workflow/personal_folder

It comes with a "post activate" trigger and you will also find a patch for the "post register" trigger in the comments.

Nathan Kelly

Tuesday 29 November 2005 6:44:09 pm

Hi Lex, there seems to be a lot of patching to do for something so simple, is this the only way this can be done?

If so how much of your extension do I need to change or disregard to do it, I'm not very adept when it comes to PHP (in fact I'm useless) so your files don't make much sense to me.

I'll give it a try but I don't like my chances, thanks for the help.

Cheers!

Pardon me while I burst into flames...

Andrew Kelly

Wednesday 14 December 2005 4:37:19 am

Hi Nathan,

really like to discuss this topic with you, please contact me at
akelly at transparency dot org when you're available.

And by the way, is there a way to contact member directly rather than using the forums like this?

Andy

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.