Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Apr 2008
    Posts
    79
    Plugin Contributions
    0

    help question Need Age Verification before entering page

    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)

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Need Age Verification before entering page

    Quote Originally Posted by chachab View Post
    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)
    No Need to double post.

  3. #3
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Need Age Verification before entering page

    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:

    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]
    Of course, you will have to change the URL's to your own.

    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!

  4. #4
    Join Date
    Apr 2008
    Posts
    79
    Plugin Contributions
    0

    Default Re: Need Age Verification before entering page

    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?

  5. #5
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Need Age Verification before entering page

    Quote Originally Posted by chachab View Post
    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!

  6. #6
    Join Date
    Apr 2008
    Posts
    79
    Plugin Contributions
    0

    Default Re: Need Age Verification before entering page

    Quote Originally Posted by Get Em Fast View Post
    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.
    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

  7. #7
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Need Age Verification before entering page

    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!

  8. #8
    Join Date
    Mar 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: Need Age Verification before entering page

    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)

  9. #9
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Need Age Verification before entering page

    Quote Originally Posted by blown57 View Post
    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)
    You should be able to put this script on the specific page that you need the age verification on, so that when that page is called, the verification script kicks in first.

    Hope this helps.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  10. #10
    Join Date
    Mar 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: Need Age Verification before entering page

    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

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. I need an age verification that i can customize
    By Nephishizo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Nov 2010, 05:33 PM
  2. Need to setup Age Verification to my adult site
    By purebeautyandlust in forum General Questions
    Replies: 1
    Last Post: 21 Oct 2009, 11:31 AM
  3. Replies: 1
    Last Post: 10 Sep 2009, 11:29 AM
  4. Age Verification
    By signs in forum General Questions
    Replies: 0
    Last Post: 12 Jul 2009, 04:08 AM
  5. i need a age verification pop up before entering page...
    By chachab in forum Customization from the Admin
    Replies: 1
    Last Post: 25 Apr 2008, 03:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg