Community Add-Ons
| Maintainers: | osmyrna |
restricted_website
for osCommerce Online Merchant v2.2
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.
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.
