How to have an automodal Lightbox only pop up once for a user?

Discussion in 'Drupal' started by Ameria, Dec 8, 2010.

  1. #1
    Hello!

    I'm running Drupal 6.13 and Lightbox2 version 6x-1.11. I have a working lightbox set up in the homepage template with the following code to automatically pop up when the page is loaded (just a basic linked image):

    <div id="lightboxAutoModal" rel="lightmodal[|width:600px; height:500px; scrolling:auto;]" style="display:none;"><a href="/donate"><img src="/docs/images/donatelightbox.jpg" /></a></div>

    The obvious problem is, of course, that it pops up every time the page is accessed. Would anyone know how and where to add a cookie so that the lightbox only appears for a user once? Any help is greatly appreciated!
     
    Ameria, Dec 8, 2010 IP
  2. rlnorthcutt

    rlnorthcutt Member

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    rlnorthcutt, Dec 13, 2010 IP
  3. Ameria

    Ameria Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Haha, I love the name! Thank you Ron!
     
    Ameria, Dec 14, 2010 IP