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

sutharsan’s picture

Sure this can be done. It is a typical example of something that can be done with a little custom code.

appel’s picture

Do 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!

sutharsan’s picture

Status: Active » Fixed

You 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

russellb’s picture

Hi. 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.