I have an adult novelty and would like to have a pop up that states they are over 18 blah blah blah.. and they click enter or exit..... how can i do and completethis process? (also if they chose exit.. do i make an Ez Page to redirect)
I have an adult novelty and would like to have a pop up that states they are over 18 blah blah blah.. and they click enter or exit..... how can i do and completethis process? (also if they chose exit.. do i make an Ez Page to redirect)
5 posts and 2 questions. Not off to a very good start. Be patient, and you will be rewarded. No patience.........no reward!
Anyway, as far as the age verification, That's no problem. You can Google "Age verification script" and come up with thousands. Here's one that's totally free, as most of them are, anymore. This one was found at Webmasters World:
Of course, you will have to change the URL's to your own.Code:[FONT=verdana]<script language="javascript"> var agePrompt=prompt("You must be over 18 to enter.") [/FONT] [FONT=verdana]if (agePrompt>=18) document.location="http://www.example.co.uk/ok-page.html"; else { alert('Sorry, we can not let you in!') document.location="http://www.example.co.uk/too-young-page.html"; [/FONT] [FONT=verdana]} </script> [/FONT]
Also, if they click "Exit", then by all means, let them exit. There's nothing more frustrating than trying to leave a site while the site is trying to keep you there.
Furthermore, if you make them stay on your site........they're even MORE likely to lie about their age (as if they won't anyway). I know..........it's all the legality stuff making you do this in the first place.
Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!
Sorry for the double posting... Im VERY new to this and learning how it works... and accidents happen...
thank you for the help i will definatly try it.. can you tell me where I enter this code?
Never used an age verification script before, but just on my test server it seems to work fine in just about ANY index or header file. On every one, I just put it right at the top of each one (even before the <php?) and it showed up. Try each one, as some lets it load the background, while others don't. I figure the actual "Proper" place for it would be in the header.php of YOUR template, but like I said, it works almost anywhere.
Hope this helps.
Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!
I tried this in 3 places all in my main "public_html" file... heres what happened.
/includes/templates/1112/common/tpl_header.php website would not ask for verification, but would go directly to a pop up that said "you can not come in" (the alert and directly send me to page not found
admin/includes/header.phpSame error as above
admin/index.php nothing happened - visited page in normal manner (no authorization)
Maybe I am not in the right places?
hmmmm... any ideas?
by the way.. thanks for all the help
chachab, you're going to have to change the URL's to your own, something like:
Code:[FONT=verdana]<script language="javascript"> var agePrompt=prompt("Please enter your Age. Example (24)") if (agePrompt>=18) document.location="http://www.getemfast.com"; else { alert('Sorry, we can not let you in!') document.location="http://www.getemfast.com/index.php?main_page=contact_us"; } </script>[/FONT][FONT=verdana][/FONT]
This works just fine if you will put it at the VERY TOP of Index.php (the one that's in the root of your shop).
Hope this helps.
Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!
hi, im new to this aswell but i was wondering how would i get this to work on just one catagory in my shop as the rest of the site it doesnt matter what age you are.. (its a dvd site)
Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!
thanks for your reply Get Em Fast. but i cant work out what page to load it on to... if i put it onto the main index.php it automatically blocks me out of the site and says that im not allowed in. please help asap.
thanks again