2

I'm looking for a module (or another way) of displaying a message to all users only once after they login. Basically, a client wants to add a newsletter on their site, and would like to give the change to all the users with accounts once they login to signup to the newsletter. They just want the message to appear once, the user can dismiss it, and then it will never display again. Ideally it would be possible to generate more messages at future dates for other reasons (changes to privacy policy, offers, etc).

I've looked at a few modules, including LoginToboggan, Rules, Flag, Absolute Messages and EU Cookie Compliance but none seem to do what I need.

Anyone know of a module or a method of implementing this with the above modules?

2 Answers 2

3

You can try the Splashify module

Display a splash page anywhere on your site by redirecting the user, showing a lightbox, or displaying a popup. This module is designed to be search engine friendly, mobile device friendly and offers multiple configuration options.

4
  • Looks promising! will give it a go and get back to you! Commented May 14, 2013 at 14:54
  • Does the trick, but I just can't restrict it to only Authorized users! Any experience? Commented May 15, 2013 at 8:05
  • Sorry Mark, no experience with that
    – 4life
    Commented May 15, 2013 at 8:50
  • No worries, time to be bad and hack the module Commented May 15, 2013 at 9:34
3

Do you have the Rules module installed?

You can try creating a rule with the following settings:

  • Event: User has logged in
  • Elements: User has role (set it to authenticated users)
  • Actions: Show a message on the site (set your welcome message here)

Drupal will show your welcome message as a system message. There you go!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.