Contributions

Features (Category Index)
Search: 

restricted_website

This Mod can be used with Prices for "Logged-In Users Only - Login view price 4.0" OR "Require login to view site" contributed by compwhizmm90 14 Apr 2006. These are both easy to install modifications that prevent viewing of the site without setting up an account. However, anyone can still go set up an account, so this very simple Mod is intended to prevent unauthorized accounts from being set up on wholesale sites through use of an "Authorization Word" which the site owner provides to approved customers.

Expand All / Collapse All

BUG FIX 17 Mar 2008

BUG FIX: You also need to edit the includesform_check.js.php file and search for (around line 197)

<?php if (ACCOUNT_DOB == 'true') echo ' check_input("dob", ' . ENTRY_DOB_MIN_LENGTH . ', "' . ENTRY_DATE_OF_BIRTH_ERROR . '");' . "n"; ?>

and replace with

<?php //if (ACCOUNT_DOB == 'true') echo ' check_input("dob", ' . ENTRY_DOB_MIN_LENGTH . ', "' . ENTRY_DATE_OF_BIRTH_ERROR . '");' . "n"; ?>


then find (around line 241)

<?php if (ACCOUNT_DOB == 'true') echo ' check_input("a_dob", ' . ENTRY_DOB_MIN_LENGTH . ', "' . ENTRY_DATE_OF_BIRTH_ERROR . '");' . "n"; ?>


and comment out as well like this ...

<?php //if (ACCOUNT_DOB == 'true') echo ' check_input("a_dob", ' . ENTRY_DOB_MIN_LENGTH . ', "' . ENTRY_DATE_OF_BIRTH_ERROR . '");' . "n"; ?>


Then the code will work. Note : Attached file contains same info.

restricted_website v.2 5 Feb 2008
restricted_website 18 Jul 2006

Note: Contributions are used at own risk.