GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to set up a warning page that appears once on whatever page you enter a site? (https://gfy.com/showthread.php?t=964760)

Darrell 04-22-2010 03:42 AM

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 04-22-2010 03:47 AM

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.

Darrell 04-22-2010 04:00 AM

Wow thanks I'll try that out :thumbsup

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.


All times are GMT -7. The time now is 02:55 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123