Agaric Design is going to write a small module to provide the option to list all available newsletters in one block so that visitors can subscribe to more than one newsletter in one action. An option to do this as radio buttons (the immediate need is for multiple translation versions of a newsletter for http://www.wsf2008.net/ ) will also be made, but maybe this isn't generally useful?

Other proposed features:

  • Let registered users change the e-mail address they sign up for newsletters with
  • More UI customizable options for signup blocks
  • Integrate with actions so admin can set up for an alert when a newsletter is subscribed to (for bridging to legacy systems)
  • Create this block outside of simplenews as a possible front-end to multiple newsletter systems, including CiviCRM/CiviMail.

Thoughts requested!

benjamin, Agaric Design Collective

Comments

sutharsan’s picture

benjamin, it sounds very interesting. Simplenews 6 may benifit from this effort, actions integration is in my roadmap, UI improvements are always welcome and different e-mail address for users is an interesting new persprective. For Simplenews 5 this surely needs to be a module, for 6 we can discuss.

ugesh541’s picture

Hi,

How to create a signup block for selecting multiple newsletter in drupal 5.x

Please help me

sutharsan’s picture

@forums4poc, it is not good practice to use an issue for a related question. Please create a new issue for your support request.

zoo33’s picture

Assigned: mlncn » zoo33
Status: Active » Needs review

Hi. First of all, my apologies to Benjamin for hijacking his issue.

I needed a subscription block like this too, and since it's been a couple of months since Benjamin's post I thought I'd take the matter in my own hands and write a small module which simply loads the form that Simplenews already provides at newsletter/subscriptions and sticks it in a block.

The module is called simplenews_multisignup and is checked into CVS. Before I publish it, I just want to check with Sutharsan if it would be better to turn this into a patch for Simplenews. Also if Benjamin has done some work in addition to what I did, then maybe we should try to merge our efforts?

sutharsan’s picture

I propose to make a patch for simplenews 6.x-dev for this. I have the plan to make a simplenews sub-module with several extra subscription functions. This will also include the current Simplenews on Register features.

zoo33’s picture

Status: Needs review » Active

OK, so maybe I should still publish it for the 5.x branch then. Guess you're adding functionality only to 6.x by now?

sutharsan’s picture

Indeed. I have no plans to extent Simplenews 5.x with new functionality.

zoo33’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new5.04 KB

OK, so here's a patch against 6.x. This is basically what I did in the module I was talking about. Not sure if everything is implemented the best way possible, but it works and it's a start. (In particluar, take a look att template_preprocess_simplenews_block_all() where I had to include an inc file manually.)

sutharsan’s picture

Status: Needs review » Needs work

Thanks for the patch. It is usefull as a start. However I would use an alphanumeric delta (e.g. 'all-newsletters') instead of '0'. You could move the preprocess function to the simplenews.subscriptions.inc. This would get rid of the include_once(). And last (but not least) please observe the indentations where you have added curly brackets.

zoo33’s picture

Status: Needs work » Needs review
StatusFileSize
new5.11 KB
new11.17 KB

That's excellent input!

I forgot to mention that I used the -b option (i think it is) to ignore whitespace, so that the patch would be easier to read. I'm including two versions of this new patch, one with whitespace changes and one without. (I actually found a whitespace error in the current hook_block($op = 'view').)

I followed your suggestion for the include file (should have been obvious to me). Also simplified and cleaned up a few things.

pebosi’s picture

Could you update your patch to the latest dev Version?

regards

zoo33’s picture

Here is an updated patch.

dschneider’s picture

I'd love to see that in the module. What's blocking that issue? May I be of any help?

zoo33’s picture

The patch may need to be rerolled against the current version in CVS by now. Other than that, positive reviews and tests always help.

yngens’s picture

subscribe

zonny’s picture

Title: Better newsletter signup block with checkbox or radio button option for multiple newsletters » how can I patch the file?

I need some help, please.

I have all 4 patch file in folder (modul) "simplenews_multisignup" stored and updated. I get the following error message:

>patch -p0 < simplenews_all_subscriptions_block.patch
patching file simplesnews_/simplenews_all_subscriptions_block.patch
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354
This applicaton has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

zoo33’s picture

Title: how can I patch the file? » Better newsletter signup block with checkbox or radio button option for multiple newsletters
Status: Needs review » Needs work

The patch probably needs to be updated because of other changes that have been made to the module since it was created.

cesareaugusto’s picture

Category: feature » support

What about the status of this multiple newsletter signup block? How could I get it work on my website? I read this featur shall be implemented into the main 6.x version module. I installed it but I cannot find any feature of this kind. I'm a newbie into Drupal :) Can anyone help me? Thanks! :D

tgeller’s picture

subscribe.

criz’s picture

Status: Needs work » Needs review
StatusFileSize
new11.77 KB

Patch from #12 rerolled against the current version in CVS. Works for me.

criz’s picture

Category: support » feature
mnp’s picture

subscribe

seren10pity’s picture

Hi, I implemented the patch on the lates dev version of simplenews, but I can't see any new options to combine the subscription blocks into one.
Could it be a versioning problem, or maybe I didn't watched the right place ? What is supposed to change ?

thanks.

ambientdrup’s picture

This is actually posted as a module here:

http://drupal.org/project/simplenews_multisignup

This way you don't have to run the patches. The module does it. I just installed the 6.x dev version and it works fine.

Hope that helps.

=backdrifting

matteoraggi’s picture

On block and also on newsletter/subscription for me it don'twork, it ask for n email if logghed off, but it don't show the 4 newslettes that I have on my site in drupal 6.14 using last stable version of simplenews.

miro_dietiker’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

I still hope we will be able to bring this functionality into simplenews. it would be much better maintained in case of api changes. Currently if we change things we need to update many external modules and everything is still pretty -dev.

What's exactly the reason not to add it to DRUPAL-6--2 -dev? There's nothing unnatural and it's a great starting point.

sutharsan’s picture

Status: Needs review » Needs work

This functionality may get into simplenews, but not this patch. It looks way to complex. A simple block is what we are looking for, not with the options the current single newsletter has. This can be build as a separate form and not combine it with existing forms.

millions’s picture

subscribe.

Would love this to be built in.

sutharsan’s picture

millions, great that you support this. What can you do to make this happen?

millions’s picture

Unfortunately not much! Just wanted to let Ben know. After posting this I found the multiple signup block which helps though!

sutharsan’s picture

Component: Code » User interface
miro_dietiker’s picture

Status: Needs work » Fixed

We've added a multi subscription block with the
#805114: Cleanup Form creation processes comment #21

Project simplenews_multisignup is obsoleted for this release and future then.

Status: Fixed » Closed (fixed)

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

miro_dietiker’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Patch (to be ported)

OK then, this needs port.
Triggered by duplicate
#1165494: Multi signup block

Possibly in relation with #805114: Cleanup Form creation processes

webchick’s picture

Tagging (hope this isn't incorrect).

miro_dietiker’s picture

Assigned: zoo33 » Unassigned
berdir’s picture

Status: Patch (to be ported) » Closed (duplicate)

This has been closed as a duplicate of #805114: Cleanup Form creation processes before, the code that adds the multi-sign up block is added in the patch there, I'm working on porting that.