If the simplenews block is "right" aligned, drupal_set_message() has already displayed the messages for the page, and thus the message doesn't get displayed until the following page is browsed. I would think that this is a common problem and that there is an easy solution. Is there a hook to process the form before page rendering starts?

Also, when the email address is already subscribed, why not just display a drupal message to this effect instead of sending another confirmation request?

Comments

DriesK’s picture

Your first problem seems a theming issue to me. I tested several xtemplate and phptemplate themes, and I couldn't reproduce this behaviour. All messages were always displayed on the current page, also if they were returned by right blocks. Which theme are you using?

Concerning your second issue: the main reason is privacy. If a drupal message is displayed, saying that you are already subscribed, one could (manually or by using a script) find out who is subscribed to the mailing list. You could for example 'investigate' whether I am subscribed to an adult site's newsletter just by submitting my email address. Obviously, when people subscribe to a newsletter, they expect their privacy to be protected as much as possible.
Furthermore, sending an email saying "you are already subscribed" was also ruled out as an option, as was already discussed here.

douggreen’s picture

I am using the Blue Marine template, that I have slightly customized. I switched back to the native Blue Marine template and verified that this template has the same problem. Then I switched to Box Cleanslate which works fine.

I don't know much about themes yet, other than knowing CSS, XML, and HTML. I did notice that Box Cleanslate uses php to define the template whereas Blue Marine uses an xtmpl file. Can you reproduce the problem and/or do you know what needs to be fixed?

DriesK’s picture

This issue will be fixed in the next Simplenews version, which will be available very soon now.

DriesK’s picture

Status: Active » Fixed
osherl’s picture

Anonymous’s picture

DriesK’s picture

Status: Fixed » Closed (fixed)

Closed because the automatic close feature in project module is broken, and the issue list is becoming cluttered.