How to set up a warning page that appears once on whatever page you enter a site?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Darrell
    Confirmed User
    • Feb 2003
    • 803

    #1

    How to set up a warning page that appears once on whatever page you enter a site?

    Anybody know how to set up a warning page that appears once on whatever page you enter a site and preferably in the language of the surfer? youporn does this and I cannot find out how to do that anywhere

    Thanks for any help.
  • quantum-x
    Confirmed User
    • Feb 2002
    • 6863

    #2
    Code:
    <? if (!isset($_COOKIE['splash'])) { 
        setcookie('splash','1',time()+90*86400); ?>
        <div id="splash">Warning</div>
    <? } ?>
    That'll do the trick.
    Essentially, you check for a cookie. If there's no cookie, then you set one, and then display the div / whatever you want.
    PrettyInCash.com - BoozedGFs.com - TeenGFs.com - JizzGFs.com- MilfUploads.com -

    Comment

    • Darrell
      Confirmed User
      • Feb 2003
      • 803

      #3
      Wow thanks I'll try that out

      Just doing some searches for youporn on google and they are not ranking well although I'm sure they used to rank very well for 'free porn' etc. Maybe their warning page is affecting their rankings.

      Comment

      Working...