![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Feb 2003
Location: In bed asleep
Posts: 803
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
Code:
<? if (!isset($_COOKIE['splash'])) { setcookie('splash','1',time()+90*86400); ?> <div id="splash">Warning</div> <? } ?> Essentially, you check for a cookie. If there's no cookie, then you set one, and then display the div / whatever you want. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2003
Location: In bed asleep
Posts: 803
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |