Jump to content
Latest News: (loading..)

jazanaca

Members
  • Content count

    15
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Cathy
  1. jazanaca

    Have you used this

    Problem solved. Just some other glitches to sort now. Getting there slowly
  2. jazanaca

    Have you used this

    I have been trying lots of different things with the age code to try and get it to work with no luck. I assume the problem is with the age code that is in the age-page, I will paste it in and mark where I think the problem is. i have found a way to make the NO submit work, but the YES keeps returning to the age-page /// Redirect over database if ($ageverify == "YES"){ $oflegalage = 'yes'; tep_session_register('oflegalage'); Header("Location: index.php?cPath=2357"); #restricted category URL from DATABASE -- I assume the problem is on this line and the last line }elseif ($ageverify == "NO"){ # under 18 go to index page: $oflegalage = 'no'; tep_session_register('oflegalage'); Header("Location: index.php"); # URL for minors from DATABASE -- Also here } /// Redirect over database below is from the age code from the original document I downloaded, I will also insert the part from application top incase there is anything wrong with it. /// Redirect over database if ($ageverify == "YES"){ $oflegalage = 'yes'; tep_session_register('oflegalage'); tep_redirect(tep_href_link(AGEPAGE_SHOW)); #restricted category URL from DATABASE this is different to the above }elseif ($ageverify == "NO"){ # under 18 go to index page: $oflegalage = 'no'; tep_session_register('oflegalage'); tep_redirect(tep_href_link(AGEPAGE_REDIRECT)); # URL for minors from DATABASE this is different to the above } /// Redirect over database from application top: /* START age code mfg */ $restricted_category = 2357; if ($cPath_array[0] == $restricted_category) { if (!tep_session_is_registered('oflegalage')) { # cookie not set $age_page_path = 'age-page.php'; # change this to the name of your age agreement page $navigation->set_snapshot(); tep_redirect(tep_href_link($age_page_path)); # redirect to age agreement page } else { # cookie is registered if ( $oflegalage == 'yes') { # of legal age, continue loading the category } elseif ($oflegalage == 'no' ) { $age_page_path = 'age-page.php'; # change this to the name of your age agreement page $navigation->set_snapshot(); tep_redirect(tep_href_link($age_page_path)); # redirect to age agreement page } # end legal age } # cookie registered } # restricted category /* END age code by mfg */ Maybe if you go to the site and have a look -- www.finditcheaperonline.com/age-page.php. Hope you can help. Thank you
  3. jazanaca

    Have you used this

    Hi, has anybody used the age restriction add-on, with the yes and no submit, so that it redirects to index.php for under 18 and restricted category if over 18. I am trying to sort it but it still doesn't work. Can anybody help. Thank you
  4. Helping a friend

×