Announcement

Collapse
No announcement yet.

cookiez!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cookiez!

    hey- is there a way i can use a cookie, to make a text box on my site disappear? like for example if someone returns to my site; without clearing cookies that the box will disappear?

  • #2
    Something along these lines:
    PHP Code:
    <?php
    if ( ! isset ( $_COOKIE['box_seen'] ) )
    {
     
        echo 
    'Box here';
        
        
    setcookie 'box_seen'truetime()+365*24*60*60 ) ;
     
    }

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X