Kevin Quillen

Laughing. Coding. Rocking. Ranting.

"User Alerts" Module Available on GitHub

| Comments

I submitted a module I created for a project to Drupal.org 7 days ago and haven’t heard much of anything back on whether it will be approved or not.

Instead of sit idle, I decided to learn how to use Git and get my first account on GitHub to share this module to the world.

User Alerts repo URL: http://github.com/kevinquillen/User-Alerts

This module provides a simple way to show urgent message on the website. Think of CNN Breaking News, when they show a short message the top of the site.

Alerts can be set on a timer and cleared with cron, or the user can close the alert after reading it. A cookie is set so they do not see the message again. This is to ensure alerts work for sites that don’t have authenticated Drupal users, so anonymous users are tracked.

How to use this module:

  1. Enable User Alerts

  2. Set the appropriate permissions for selected roles

  3. A User Alert block is available in Block Management. Set this in the appropriate region of your theme.

  4. Create a user alert node.

You can also set some global settings for alerts at admin/settings/user-alert.

I have tested this module and it does work as intended. I have not fully tested it under Boost or Drupal normal cache. Hopefully users will report back issues and I can address them.

Comments