Druide Posted May 11, 2003 Share Posted May 11, 2003 Anti Robot Registration Validation 1.0 + images Created on version: tep_snapshot-20030508 2.2 MS2 CVS Transformed from phpBB2 hack to OsCommerce by Robert Hellemans (Druide) Screenshot is included in ZIP file 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 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 (the lines that tell you this at the top of a osC file) 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 ;) Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2003 Share Posted May 11, 2003 i havent installed it yet, but the idea is very very cool! i will test it out tomorrow :wink: Quote Link to comment Share on other sites More sharing options...
Druide Posted May 11, 2003 Author Share Posted May 11, 2003 it IS cool...lol here is a screenshot preview http://www.ruddlesmills.com/tmp/preview Anti Robot Reg.png took me way to long to convert because of a typo that i missed (about 8+ hours) Currently i am implementing a 'on the fly' creating of the graphics, so that people have 2 choices to work with (GDLIB installed or not) Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Druide Posted May 11, 2003 Author Share Posted May 11, 2003 PNG not supported with adding IMG ...lol SCREENSHOT: Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
loxly Posted May 11, 2003 Share Posted May 11, 2003 If it is included in core code, I would love for it to have and on/off option. I have this on other software I use and although it is a GREAT idea, it gets tiresome when *I* forget my password and have to retype the security code and I type that wrong, and on and on.... :) Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2003 Share Posted May 11, 2003 that is very cool i hope is wasnt another one of those go blind sessions :lol: :lol: Quote Link to comment Share on other sites More sharing options...
loxly Posted May 11, 2003 Share Posted May 11, 2003 Oops, I guess I should read better, this is just for signing up, not for each time they log in? Cooler still!!! Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2003 Share Posted May 11, 2003 dont you ever sleep deb :lol: Quote Link to comment Share on other sites More sharing options...
Druide Posted May 11, 2003 Author Share Posted May 11, 2003 This is just for REGISTRATION & EDIT ACCOUNT but that's more then enough i thought so. If you want to edit your account info then the VALIDATION CODE will show up, another way to keep those scriptgeeks busy....lol ** I was also thinking to put a LIMIT TIME on editing ACCOUNT INFO but that is still another thing on the TODO list. Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Waza04 Posted May 11, 2003 Share Posted May 11, 2003 Its easy to get it to show up when opening an account but not when editing account, just use the $read_only tag in OSC. The JavaScript Entry checks will also need to be moddified other wise it will throw a funny.... But nice work Druide!!! Quote Link to comment Share on other sites More sharing options...
Waza04 Posted May 11, 2003 Share Posted May 11, 2003 ** I was also thinking to put a LIMIT TIME on editing ACCOUNT INFO but that is still another thing on the TODO list. What do you mean? Quote Link to comment Share on other sites More sharing options...
Snowman Posted May 11, 2003 Share Posted May 11, 2003 Just a couple of bugs in the sql file... Change: CREATE TABLE anti_robotic_reg (session_id char(32) DEFAULT '' NOT NULL, reg_key char(5) NOT NULL, timestamp int(11) unsigned NOT NULL, PRIMARY KEY (session_id)) to CREATE TABLE anti_robotreg (session_id char(32) DEFAULT '' NOT NULL, reg_key char(5) NOT NULL, timestamp int(11) unsigned NOT NULL, PRIMARY KEY (session_id)) otherwise an excellent contribution ...thanks :) Quote Link to comment Share on other sites More sharing options...
Druide Posted May 11, 2003 Author Share Posted May 11, 2003 The JavaScript Entry checks will also need to be moddified other wise it will throw a funny.... Please be specific, if there's anything not right just tell me what it is before i / we have to answer the same questions over and over again... It's version 1.0 so there should be some bugs in it...:lol: I'll update the original when i get tips / complains what to change. I like the idea of making the EDIT ACCOUNT validation optional Thanks for that one Warren Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Waza04 Posted May 11, 2003 Share Posted May 11, 2003 The JavaScript Entry checks will also need to be moddified other wise it will throw a funny.... Please be specific, if there's anything not right just tell me what it is before i / we have to answer the same questions over and over again... It's version 1.0 so there should be some bugs in it...:lol: I'll update the original when i get tips / complains what to change. I like the idea of making the EDIT ACCOUNT validation optional Thanks for that one Warren The JavaScript Entry checks will also need to be moddified other wise it will throw a funny.... This isnt a bug, What I was saying that if you use the $read_only tag to only use validation upon create account you would need to modify the JavaScript aswell otherwise, when editing the account it will say that you have not typed anything for the validation field. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2003 Share Posted May 11, 2003 Hi Guys, First off, Thanks Druide again for this work. You rock!. However, while doing the insertions for the codes, i could not find some of the codes name the installation guide was asking to open. Such as: open catalog/includes/database_tables.php open catalog/includes/filenames.php Okay, now by looking in the install, i saw this: -----------------------------------------------NOTE: I Have added the CVS versions of the files that i have used, do not complain if yours is not the same (like older versions) ----------------------------------------------- EXAMPLE: /======== BEGIN ==========/ open catalog/includes/database_tables.php $Id: database_tables.php,v 1.1 2003/03/14 02:10:58 hpdl Exp $ Well i am not complaining but isn't it a way to work around this since i am sure if i dont have it there's tons out there that probably dont have have it either. So can you tell me the working around way? Thanks alot... Great contribution Quote Link to comment Share on other sites More sharing options...
Druide Posted May 11, 2003 Author Share Posted May 11, 2003 Just a couple of bugs in the sql file... Change: CREATE TABLE anti_robotic_reg (session_id char(32) DEFAULT '' NOT NULL, reg_key char(5) NOT NULL, timestamp int(11) unsigned NOT NULL, PRIMARY KEY (session_id)) to CREATE TABLE anti_robotreg (session_id char(32) DEFAULT '' NOT NULL, reg_key char(5) NOT NULL, timestamp int(11) unsigned NOT NULL, PRIMARY KEY (session_id)) otherwise an excellent contribution ...thanks :) Thanks for spotting that one (it was a last minute change) I will update it in the next version, that will be uploaded today (No ETA) Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Waza04 Posted May 11, 2003 Share Posted May 11, 2003 Hi Guys, First off, Thanks Druide again for this work. You rock!. However, while doing the insertions for the codes, i could not find some of the codes name the installation guide was asking to open. Such as: open catalog/includes/database_tables.php open catalog/includes/filenames.php Okay, now by looking in the install, i saw this: -----------------------------------------------NOTE: I Have added the CVS versions of the files that i have used, do not complain if yours is not the same (like older versions) ----------------------------------------------- EXAMPLE: /======== BEGIN ==========/ open catalog/includes/database_tables.php $Id: database_tables.php,v 1.1 2003/03/14 02:10:58 hpdl Exp $ Well i am not complaining but isn't it a way to work around this since i am sure if i dont have it there's tons out there that probably dont have have it either. So can you tell me the working around way? Thanks alot... Great contribution Just put them in catalog/includes/application_top.php Warren Quote Link to comment Share on other sites More sharing options...
loxly Posted May 11, 2003 Share Posted May 11, 2003 I'm not sure a time limit on filling out the application is a good idea. Once again, as someone that is easily distracted, I could start filling out a form, the phone will ring, my email program tells me I have new email and when I check it is something important I need to attend to, which reminds me of something else I need to do, I find the page I was filling out and then if it has timed out I am ticked off that I have to retype everything and maybe I just go on to something else................ :roll: But that's just me.... And Jeff, no, I don't generally sleep much :) Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
Druide Posted May 11, 2003 Author Share Posted May 11, 2003 new version posted Anti Robot Registration Validation 1.0.1 Cheetahs wrote: However, while doing the insertions for the codes, i could not find some of the codes name the installation guide was asking to open. Such as: open catalog/includes/database_tables.php open catalog/includes/filenames.php Okay, now by looking in the install, i saw this: Quote: ----------------------------------------------- NOTE: I Have added the CVS versions of the files that i have used, do not complain if yours is not the same (like older versions) ----------------------------------------------- EXAMPLE: /======== BEGIN ==========/ open catalog/includes/database_tables.php $Id: database_tables.php,v 1.1 2003/03/14 02:10:58 hpdl Exp $ Well i am not complaining but isn't it a way to work around this since i am sure if i dont have it there's tons out there that probably dont have have it either. So can you tell me the working around way? The FIX for this is ONLY when you don't have those 2 files you can include the info from those 2 files into catalog/includes/application_top.php replace at the end of catalog/includes/application_top.php ?> with // Anti Robot Registration Validation 1.0.1define('FILENAME_ACCOUNT_VALIDATION', 'account_validation.php'); define('TABLE_ANTI_ROBOT_REGISTRATION', anti_robotreg'); ?> Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Druide Posted May 11, 2003 Author Share Posted May 11, 2003 :oops::oops: you're right deborah I'm not sure a time limit on filling out the application is a good idea. Once again, as someone that is easily distracted, I could start filling out a form, the phone will ring, my email program tells me I have new email and when I check it is something important I need to attend to, which reminds me of something else I need to do, I find the page I was filling out and then if it has timed out I am ticked off that I have to retype everything and maybe I just go on to something else................ :roll: But that's just me.... And Jeff, no, I don't generally sleep much :) Dohh... you see my posting time, it was waiting forever in a window....lol I was doing something else, we are getting ready to move to our just bought house so sorry for the late and double reply :oops: Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2003 Share Posted May 11, 2003 This one is for Robert and Warren. Thanks guys. I appreciate the response. I will try what you good folks to me. Again Tks. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2003 Share Posted May 11, 2003 The FIX for this is ONLY when you don't have those 2 files you can include the info from those 2 files into catalog/includes/application_top.php replace at the end of catalog/includes/application_top.php Code: ?> with Quote: // Anti Robot Registration Validation 1.0.1 define('FILENAME_ACCOUNT_VALIDATION', 'account_validation.php'); define('TABLE_ANTI_ROBOT_REGISTRATION', anti_robotreg'); ?> Thanks Druide for the contribution, however i was having the same problem as cheetahs and added the code you've asked him to insert in his application top. And after insertion of the code, i got an error in my shop. Basically it was a typo mistake. Here's the correct code that should go in the application top.php // Anti Robot Registration Validation 1.0.1 define('FILENAME_ACCOUNT_VALIDATION', 'account_validation.php'); define('TABLE_ANTI_ROBOT_REGISTRATION', 'anti_robotreg'); ?> Notice the change: ' Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2003 Share Posted May 11, 2003 Okay i wanted to make a little change to catalog/includes/languages/english/account_validation.php since i didn't find that line to be too attractive. That is just me, SO PEOPLE DON'T TAKE THIS PERSONAL. So for the ones that feel the same please remove this line out : define('ENTRY_ANTIROBOTREG', 'To make sure that you are not a searchengine robot,<br> please type what letters you see in the image on the right'); and replace with this: define('ENTRY_ANTIROBOTREG', 'Enter the letters as shown above the box.<BR><i>This help prevent automated registrations</i>. '); Much Better! :D Quote Link to comment Share on other sites More sharing options...
Druide Posted May 11, 2003 Author Share Posted May 11, 2003 thanks Benjamin, i will update the core files. I dunno what happend here but that does not matter now, you spotted the 'bug' so thanks for fixing it, i will also include your other change in the next release Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Druide Posted May 11, 2003 Author Share Posted May 11, 2003 discovered another BUG :oops: i am too busy with moving to my new house i guess, my mind gets distracted in catalog/includes/languages/english/account_validation.php REPLACE LAST LINE with this define('JS_VALIDATION', '* The 'Validation Code' entry must have ' . ENTRY_VALIDATION_LENGTH . ' characters.n'); Sorry for that, i guess that's why you are all here, to function as a bugtracker :lol: Anyway i do really appreciate the help from everyone and i hope you all like my contributions to osC I'll wait about 5 hours before i'll update to version 1.0.1a Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.