Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3791994
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:33:15+00:00 2026-05-19T12:33:15+00:00

I have a module that displays an alert to a user, inside of a

  • 0

I have a module that displays an alert to a user, inside of a block. Here is my GitHub repo, because I can’t remember how to get a dev branch going on Drupal CVS right this second:

https://github.com/kevinquillen/User-Alerts

Module page (with longer description):

http://drupal.org/project/user_alert

I recently started addressing some of the issues in the queue. One of the first ones I wanted to get out of the way was making it so this module can still function when Block Cache and/or Boost are enabled. One person reported that when one user closed the message, it closed it for all other visitors, I assume this stems from caching mechanisms.

I added a Drupal.behavior to check for an active alert on page load- but I can’t figure out how to only fire this behavior if the block is visible per its visibility settings. For instance, if its only set to the front page, this behavior should only fire on the front page and not all pages (adding overhead).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T12:33:16+00:00Added an answer on May 19, 2026 at 12:33 pm

    check for the existence of your blocks css class, or add a class specificly for this check, before firing off AJAX call. If your class exists your block exists.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a module that displays articles. And I tried to make an
I have a JSP program that displays a form where the user enters some
I have a custom module that displays data on my product pages. My module
I have module that implements custom content type via NodeAPI hooks ( hook_insert ,
I have a module that is being used to create only a few page
I have a module that reads the StandardError of a process. Everything works fine,
Suppose you have a module that you know is safe. You want to mark
Let's say that I have a module that has a Queue in it. For
I have a war module that is being built and is including a few
I have this module pattern that stores a bunch of vars. I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.