Simplenews signup page for anonymous users

JoeyDay - February 11, 2006 - 23:08

I love the "my newsletters" section the simplenews module adds to My Account, but I don't necessarily like the sidebar blocks. I need to have a way for anonymous users to subscribe to multiple newsletters. Is there a page somewhere that asks for the user's email address once and then gives a series of checkboxes for which newsletters they'd like to sign up for? Or is there an easy way for me to create one? Thanks for any help you can provide.

According to the Simplenews

jsimonis - February 12, 2006 - 02:32

According to the Simplenews page: http://drupal.org/node/28906

Through the "manage my subscriptions" link: shows all newsletters available. Anonymous users are directed to http://domain/newsletter/subscriptions, logged in users to http://domain/user/uid/edit/newsletter

Through a custom page. A custom page can be built by using these functions:

  • simplenews_subscription_manager(): takes no arguments and prints the same form as in "manage my subscriptions". However, logged in users are not redirected to their account's page in this case, they can update their subscriptions right away.
    Use _simplenews_subscription_manager() if you want the form returned and not printed
  • simplenews_recent_newsletters($tid, $count, $title): prints a list of recent issues. $tid is a required argument (the term's tid), the others are optional. $count defaults to 5 (the number of issues displayed), $title defaults to NULL (sets a title above the list).
    Use _simplenews_recent_newsletters($tid, $count, $title) if you want the list returned and not printed

--
Jenni S.

Thanks!

JoeyDay - February 13, 2006 - 05:04

Thanks for your help. I'm not sure how I missed that one *blush*, but I appreciate you researching it for me. Next time I'll try to read the docs a little more carefully myself.

Not a problem. I know I've

jsimonis - February 14, 2006 - 09:02

Not a problem. I know I've done that a few times myself.

: )

--
Jenni S.

chiming in my thanks too

michaelangela - June 17, 2006 - 05:00

I was *just* looking at this problem and viola! Many thanks.

--------------------
Michael
http://michaelangela.name

 
 

Drupal is a registered trademark of Dries Buytaert.