I have a cck node type with an e-mail field and a subscription checkbox. Is it in anyway possible for simplenews to autosubscribe cck nodes with a ticked subscribe box? I can use both D5 & D6.
I have a cck node type with an e-mail field and a subscription checkbox. Is it in anyway possible for simplenews to autosubscribe cck nodes with a ticked subscribe box? I can use both D5 & D6.
Comments
Comment #1
sutharsan commentedSure this can be done. It is a typical example of something that can be done with a little custom code.
Comment #2
appel commentedDo you happen to have any experience with this sort of thing? If so, could you give me a few pointers? I'd really appreciate it!
Comment #3
sutharsan commentedYou need code to act upon saving the node (hook_nodeapi()).
So subscribe a user user the simplenews_subscribe_user() function.
In Simplenews 6 may take a look at the simplenews actions.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
russellb commentedHi. I have written a little D6 module 'simplenews_subscribe_cck' which provides an action to subscribe an email address from a CCK field to a given newsletter when a node is created / updated. It also has an option to require a subscribe checkbox field on the node and a few other bits of config. Let me know if anyone needs that.