Community Add-Ons
Anti Robot Registration Validation 1.0 + images
for osCommerce Online Merchant v2.2
Created on version:
tep_snapshot-20030508
2.2 MS2 CVS
Transformed from phpBB2 hack to OsCommerce by
Robert Hellemans (Druide)
Screenshot included
Description:
This will add a Random-graphical-text Validation field in Registration form to protect your osC Shopping Cart from being flooded of robotic-member-registration (like many free webhost signup form...)
ADMIN INCLUDED:
goto ADMIN > Configuration > Anti Robot Reg
to activate/disable this contribution, also you can adjust the amount of validation images ( I would suggest to keep it at 5 )
NOTE:
i have included the CVS versions of all files that has to be changed (just to make it easier for the osC CORE) :)
Maybe this is a nice contribution to include in the official 2.2 MS2 release
Version 2.5 traduite en français
The validation_png.php file has just been modified in line 30 :
define(ANTI_ROBOT_IMAGE_PHP_BITMAP_FONT, 5);
replaced by
define('ANTI_ROBOT_IMAGE_PHP_BITMAP_FONT', '5');
With this mod the validation code appears in the box. Well, well, 4 hours to find this ;-)
Hope it could be usefull for someone.
Hi
I have attached the updated SQL file along with the correct password_forgotten file.
Works great on my site, just tested twice to verify.
www.thepcguy.de
Use this code below to correct previous post.
insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('', 'Activate for Password Forgotten?', 'ACCOUNT_PASSWORD_FORGOTTEN_VALIDATION', 'true', 'Force the user to enter a visual code when requesting new account password. (OPTIONAL)', '736', '25', '2007-04-04 16:56:45', '2007-04-04 16:56:49', NULL, 'tep_cfg_select_option(array('true', 'false'),');
www.thepcguy.de
+add the next row in DB:
insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('1066', 'Activate for Password Forgotten?', 'ACCOUNT_PASSWORD_FORGOTTEN_VALIDATION', 'true', '', '736', '25', '2007-04-04 16:56:45', '2007-04-04 16:56:49', NULL, 'tep_cfg_select_option(array('true', 'false'), ');
Attached full package.
This version adds additional configuration options to Admin and corresponding functionality to specify:
size of the validation image (or auto size)
foreground and background color of the validation image
use of Truetype or PHP bitmap fonts
Truetype font size
Use of various filters to randomise the validation image (noise, scatter, interlace, greyscale)
Drop in replacement validation_png.php file included which adds the functionality.
v2.5 to v2.6 sql upgrade file included.
If undertaking a fresh install you must run the 2.5 sql followed by the 2.6 sql.
The package also includes a pre-modded links_submit.php file which can now be enabled/disabled through Admin.
You must execute the indicated SQL in the corresponding text file "Add to links_submit page with admin control.txt"
included in the package to set the configuration option used by links_submit.php.
Hope you find it useful, Tone.
I needed a way for Links Manager to stop the spam.
Code for incorporating this contribution into the links_submit.php page and instructions was kindly supplied by Tone. Since I've seen others ask for this, I've added Tone's instructions to this contribution.
This is the full package version of 2.5 with optional links_submit.php page update.
I had no problems with images with this version, and had not installed the Hungarian language updates, so this version does not include the 2 previous contributions.
The image is not tag is not created when CONFIG_CALCULATE_IMAGE_SIZE is true, therefore I created made a few simple changes that allows this contribution to temporarily override this configuration directive.
Instructions (download the file to have on hand).
1) In includes/functions/html_output.php
a) Redefine the function tep_image, by replacing line 74:
function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
with
function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '', $calc_size = CONFIG_CALCULATE_IMAGE_SIZE) {
b) Change the if statement on line 87 from
if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {
to
if ( ($calc_size == 'true') && (empty($width) || empty($height)) ) {
2) In create_account.php, account_edit.php, account_password.php and contact_us.php, find
$validation_images = tep_image('validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id']);
and replace with
$validation_images = tep_image('validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id'], '', '', '', '', false);
This is just an upgrade, the hungarian files only!
Install:
Just run the sqp script and copy the hungarian file to its correct place and enjoy! ;)
v2.5 Update Detail
-Added to include contact_us.php
-Bug fixed - a typo in v2.4x update, which caused admin settings not functioning properly when switching on/off account_password validation.
-Added SQL script for updating from v2.3/v2.4x
-removed install.txt
---------------------------------------------
sorry I didn't include these languages packages below, please make translations if needed.
---------------------------------------------
Support Thread : http://forums.oscommerce.com/index.php?showtopic=44205
Full package
New language added - Brazilian Portuguese.
-------------
Pacote Completo
Nova linguagem adicionada - Portugues Brasileiro
This is the full pack with Danish now
Traduzione by Marco Maroso.
Modulo di validazione con immagine per Antirobot
--------------------------------------------
Allego la versione del file che prima era disponibile solo in Francese , ora anche il Italiano. Entrambi i file sono stati tradotti.
Da implementare con il pack completo.
--------------------------------------------
I Attach the Italian version of the file that was first translated in French, now it's available
in Italian. Both files have been translated.
You have to use the full pack and include this file for the Italian translation.
There's only the language files. I let the owner add it to the package.
Anti Robot Registration Validation 2.4.01 update - Full Package
with HTML installation/upgrade guide
-----------------------------------------------
v2.4 Updae Detail:
- Introduce PNG visual validation program developed by phpBB2 group.
Now you have numbers and characters in validation code.
Original GIF image files removed.
- Bug fixed - v2.3 codes have bad 'if statement' in 3 places.
When customers type-in incorrect validation code, or skipped validation
code, they were sent back to the same page without any error message.
- Bug fixed - v2.3 SQL scripts set the reg_key in anti_robotreg table to
char(5). If you set the code length greater than 5, only the leading 5
characters will be stored in reg_key. This bug caused the validtion code
to fail if the customers type-in more than 5 characters as they thought
it should be.
- Added description 'Max Length=10' in Admin for the validation code length.
- re-write the Install.txt with instruction to upgrade from v2.3.
v2.4.01 Update Detail:
- Added error message to $messageStack, now you have the erorr message showing
both at the page heading, and below the code input field.
- Added SQL script for update from v2.3
- Added minor change in language files.
- Added HTML Instruction. Minor corrections made to Install.txt
including the SQL scripts for update from v2.3.
-----------------------------------------------
Based on v2.3.1 Full language by D-Flxz 14 Sep 2006
-------------------------------------------------
- Changed to use png validation images generated by code. The original gif images have been removed.
- BugFixed in catalog/create_account.php & account_edit.php & account_password.php
there is a bad 'if statement' in v2.3 code. When customers type-in the wrong validation
code, they be sent back to the same page without any error message. It is really confusing.
contains the following 4 languages:
English
German
Dutch
Spanish
-------------------------------------------------
This is the complete package of the Anti Robot Registration 2.3.1 (full language.)
contains the following 4 languages:
English
German
Dutch
Spanish
enjoy...
please don't use my last posted version on this contri but search for the "Anti Spambot for reviews" contribution instead if you look for the features of this nice contri in the review system.
For those who don't like to search that code, I attached it here
All credit goes to the creators of the validation forms - I just ported the code to be usefull for the review system
Especially when using the "guest review" contribution, your site and shop are rather vulnerable to spambots so I thought of modifying the "Anti Robot Registration 2.3 MS2"-code for use in the review writing.
add the spanish version whit the archive sql in spanish too
A quick message to explain the insall dodument is incomplete. If you follow the instructions they fall over.
The SQL file that comes with v2.3 is in german. This is a translation into english.
One quirk noticed in the program is that the anti-robot registration may not work the first time until you edit and then update for activate the robot registration. This happens even if the value is initally set to true.
Very useful program.
-Security code now inserted in account_password.php
-Bugfix
-Update install.txt
-german SQL and german account_validation.php File inserted
And:
Excuse John Parker, but I made and not the adjustment on 2.2 MS2 you. Anthony Chai aka chaicka made fixed . Thus do not do in such a way as if you would have made and mention that also in install.txt. And there is also German speaking user. Not only English speaking. Thus one can high-load the German SQL file and language file also. Thanks
Fixes from v2.1:
1. Original install.txt from v2.0 is incomplete, whereby the final portion of the code for account_edit.php is missing, thus will not display the validation portion when user edit account.
2. Reduce redundant codes for both create_account.php and account_edit.php changes which starts with the following line:
<!-- BOF ANTI ROBOT REG-->
For details on the changes, please refer to:
http://forums.oscommerce.com/index.php?showtopic=44205&st=80&#entry422370
Ajout des traductions françaises.
-Minor spelling correction, format layout correction,
-created and move account_validation.php in catalogincludes directory into catalogincludesfunctions as it is a function module.
-added and updated all .php files with the appropriate heading, and the current version and date.
-remove ? mark in the sql script
Ich habe die Version 1.0.1a so umgebaut, dass sie jetzt unter 2.2 MS2 läuft.
Über den Admin läßt sich die Validation für create_account & edit_account "EIN" und "AUS" schalten.
Fragen unter: http://forums.oscommerce.de/viewtopic.php?p=85415#85415
I converted the version 1.0.1a in such a way that she runs now under 2.2 MS2. Over the Admin the validation for create_account leaves itself & edit_account "ON" and "OFF" switch.
Questions under:
http://forums.oscommerce.de/viewtopic.php?p=85415#85415
QUESTIONS PLEASE IN GERMAN... :-)
This is the translation of the account-validation file in dutch
Changelog 1.0.1 to 1.0.1a
- changed data from file catalog/includes/database_tables.php *thanks Benjamin
- changed data from file catalog/includes/languages/english/account_validation.php *thanks Benjamin
- added an install option for user without files:
catalog/includes/database_tables.php
catalog/includes/filenames.php
* bugfix in sql (thanks Snowman)
updated multiple files,
use a file compare programm to see the changes if you installed the previous version.
Changed:
ADMIN INCLUDED: goto ADMIN > Configuration > Anti Robot Reg
options:
- activate/disable this contribution,
- activate/disable for Create Account
- activate/disable for Edit Account
- Length for the Validation Code (amount of validation images)
( DEFAULT = 5 )
Created on version:
tep_snapshot-20030508
2.2 MS2 CVS
Transformed from phpBB2 hack to OsCommerce by
Robert Hellemans (Druide)
Screenshot included
Description:
This will add a Random-graphical-text Validation field in Registration form to protect your osC Shopping Cart from being flooded of robotic-member-registration (like many free webhost signup form...)
ADMIN INCLUDED:
goto ADMIN > Configuration > Anti Robot Reg
to activate/disable this contribution, also you can adjust the amount of validation images ( I would suggest to keep it at 5 )
NOTE:
i have included the CVS versions of all files that has to be changed (just to make it easier for the osC CORE) :)
Maybe this is a nice contribution to include in the official 2.2 MS2 release
