1. I've started a massive SPAM purge, any accounts that have spammed are being removed, also for a short period new user signups are disallowed until the SPAM cleaning is finished.

How to make popup for leaving users?

Discussion in 'Java Script/AJAX' started by Rqqepqqq, Oct 26, 2011.

  1. Rqqepqqq

    Rqqepqqq New Member

    Joined:
    Jun 7, 2011
    Messages:
    179
    Likes Received:
    1
    Trophy Points:
    0
    Hello everyone!
    How to create a popup for first time visitors leaving my site? I want to make a message so that there will be some chances of them coming back, and if they come back I don't want that popup to show up for them!
    Please help me, thank you!
    Loading...
  2. MarPlo

    MarPlo Member

    Joined:
    May 12, 2011
    Messages:
    69
    Likes Received:
    7
    Trophy Points:
    8
    Hi
    An ideea is to store into a database the IP of each visitor.
    Also, create a cookie, and a SESSION.
    Then, to each visitor check if that cookie or session exists. If not, get his IP and check in the list of IPs in database. If that ip not registered, register it and add the code for popup in tha page.
    If cookie, session, or ip exists registered, do nothing.
    Well, this is the ideea, but to code it...,

Share This Page