Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

NEW: Anti Robot Registration Validation


Druide

Recommended Posts

tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">'

 

 

 

That line is invalid, if thats the sort of thing you have then no wonder you have trouble!!!

 

 

If you want rc2a http://www.oscommerce.com/solutions/downloads

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

forum bug!!!

Edited by spooks

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

forum bug!!!

Edited by spooks

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Then stop being lazy and add it!!!

 

PS 1st rule of manners, I want = never gets

 

http://www.oscommerce.com/forums/lofiversion/i...hp?t209264.html

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

It works for most, do it more carefully, make sure you do exactly as detailed & it will work.

 

Why do u think others should do your work for you?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

i have a problem so:

 

Generation Error:

Missing SID

Please Refresh your browser

 

my Anti Robot Registration Validation V3.1 version.

my system osCommerce Online Merchant v2.2 RC2

PHP Versiyon: 5.2.6

MySQL 5.0.51

 

if anyone else gets this message, i followed other suggestions changing code in validation_png.php ie

// Do we have an id? No, then just exit

$rsid = $_GET['rsid'];

if (($rsid == '') || (strtolower($rsid) == 'null') || (strlen(trim($rsid)) == 0))

 

still no image so i looked in error log

PHP Notice: Undefined variable: HTTP_GET_VARS in D:\\Program Files\\EasyPHP 3.0\\www\\store\\validation_png.php on line 59

 

so i replaced

require_once('includes/configure.php');

with

require_once('includes/application_top.php');

 

works fine except images arent that easy to read :( how can i can make them easy to read maybe clean backgroun up ?

Link to comment
Share on other sites

if anyone else gets this message, i followed other suggestions changing code in validation_png.php ie

// Do we have an id? No, then just exit

$rsid = $_GET['rsid'];

if (($rsid == '') || (strtolower($rsid) == 'null') || (strlen(trim($rsid)) == 0))

 

still no image so i looked in error log

PHP Notice: Undefined variable: HTTP_GET_VARS in D:\\Program Files\\EasyPHP 3.0\\www\\store\\validation_png.php on line 59

 

so i replaced

require_once('includes/configure.php');

with

require_once('includes/application_top.php');

 

works fine except images arent that easy to read :( how can i can make them easy to read maybe clean backgroun up ?

 

nvm i fixed it via admin font size, and setting these to false

Apply noise filter? false

Apply scatter filter? false

Link to comment
Share on other sites

Interesting, if I make this change on MS2 or rc1 sites it causes a failure, I suspect though its just your server failing to set the HTTP_GET_VARS,

 

adding this should fix that:

 

if (PHP_VERSION >= 4.1) $HTTP_GET_VARS =& $_GET;

 

 

You'll probably find the text better if you change the font colour, try #666666

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Assume u want add to another page.

 

Fairly easy, ust add each section.

 

Init:

 

// BOF Anti Robot Registration v3.1
 if (ACCOUNT_VALIDATION == 'true' ) {
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT_VALIDATION);
include_once('includes/functions/' . FILENAME_ACCOUNT_VALIDATION);
 }
// EOF Anti Robot Registration v3.1

 

Check Code: (after a return check (action=process etc), this assumes use of $error for check (most do)

 

// BOF Anti Robotic Registration v3.1
if (ACCOUNT_VALIDATION == 'true' ) {
 include(DIR_WS_MODULES . FILENAME_CHECK_VALIDATION);
  if ($entry_antirobotreg_error == true) $messageStack->add('contact', $text_antirobotreg_error);
}
// EOF Anti Robotic Registration v3.1

 

Just before the breadcrumb:

 

// BOF Anti Robotic Registration v3.1
 header('cache-control: no-store, no-cache, must-revalidate');
 header("Pragma: no-cache");
// EOF Anti Robotic Registration v3.1

 

Then where you want code image to appear:

 

<!-- // BOF Anti Robot Registration v3.1-->
<?php
if (ACCOUNT_VALIDATION == 'true') include(DIR_WS_MODULES . FILENAME_DISPLAY_VALIDATION); ?>
<!-- // EOF Anti Robot Registration v3.1-->

 

All individual page on/off checks are removed for this

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Assume u want add to another page.

 

Fairly easy, ust add each section.

 

Init:

 

// BOF Anti Robot Registration v3.1
 if (ACCOUNT_VALIDATION == 'true' ) {
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT_VALIDATION);
include_once('includes/functions/' . FILENAME_ACCOUNT_VALIDATION);
 }
// EOF Anti Robot Registration v3.1

 

Check Code: (after a return check (action=process etc), this assumes use of $error for check (most do)

 

// BOF Anti Robotic Registration v3.1
if (ACCOUNT_VALIDATION == 'true' ) {
 include(DIR_WS_MODULES . FILENAME_CHECK_VALIDATION);
  if ($entry_antirobotreg_error == true) $messageStack->add('contact', $text_antirobotreg_error);
}
// EOF Anti Robotic Registration v3.1

 

Just before the breadcrumb:

 

// BOF Anti Robotic Registration v3.1
 header('cache-control: no-store, no-cache, must-revalidate');
 header("Pragma: no-cache");
// EOF Anti Robotic Registration v3.1

 

Then where you want code image to appear:

 

<!-- // BOF Anti Robot Registration v3.1-->
<?php
if (ACCOUNT_VALIDATION == 'true') include(DIR_WS_MODULES . FILENAME_DISPLAY_VALIDATION); ?>
<!-- // EOF Anti Robot Registration v3.1-->

 

All individual page on/off checks are removed for this

Thanks Sam :D love this contribution

Link to comment
Share on other sites

I have now got the same problem. Contact Us page displays "Invalid Validation Code".

 

As I said before when it seemed to have been fixed, I just re installed the correct sql update files.

 

Any help would be appreciated as I don't want to leave the Contact us page open to bots.

 

Thanks.

Edited by jakedavi
Link to comment
Share on other sites

Have you installed the latest version (3.1) wich resolved a bug that may effect some sites.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

But you havent!!! I've taken a look, your not using the latest, upgade all changed files, then come back!!

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hey everyone,

 

Great idea for a contribution and I can't wait to get it working! I am having a few problems, however.

The pages load fine but no image is displayed; not even a broken image! When I do the post install test I get the following error:

 

The image "http://www.yourdomain.com/catalog/validation_png.php?rsid=bfto0mcgd719" cannot be displayed because it contains errors.

 

I cut the ID number a bit short, but that is the bulk of it. I have looked at post #451 at the following URL:

http://www.oscommerce.com/forums/index.php?s=&...t&p=1266557

And tried that solution with no success =(

Also, I have installed oscThumbs on it so far, and tried looking for any tep_image functions to switch them back to the original tep_image_original() and couldn't find any. I'm not sure if that's causing the error or if it something else, but have been searching the forums for about an hour without any results. Anyone else have a similar problem?

 

Also, I have tried using the validation_png_2.5.php as well without any luck (however, now that i think of it, i didn't try that after using the advice in post #451 so will need to give that a shot.) I am currently using Anti-robot validation v2.9.1

 

Thanks for any help,

 

J

Link to comment
Share on other sites

There are errors in that version, why not use the latest (3.1) where all known issues are fixed??

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

There are errors in that version, why not use the latest (3.1) where all known issues are fixed??

 

 

Thanks for the advice spooks didn't even know that there was a new version. Any idea if the same SQL script can be run or not? already ran it through and I don't know if i could undo and redo. were there any changes between versions?

 

thanks,

 

J

Link to comment
Share on other sites

running Update_from 2.8 to 3.0_english.sql should be sufficient

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

running Update_from 2.8 to 3.0_english.sql should be sufficient

 

 

Thanks for the advice Sam, I appreciate it ^_^

 

I updated everything and it seems to be working fine, accept the image being generated still contains errors. I'm guessing that this is because the osC Thumbs contribution has tampered with the tep_image() function. Is that function called for in the validation_png.php file? The original tep_image() function has been renamed to tep_image_original() on my site because of the contribution, so should be all set once i adjust the name of the function in the appropriate file. If its not there, any idea where it might be?

 

Thanks for the advice an all your help so far,

 

J

Link to comment
Share on other sites

Because of the mod problems with tep_image, catalog\includes\functions\account_validation.php now contains tep_image_captcha thats used in its place which then avoids the issue, make sure u have the latest.

 

What precise error do u get?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Because of the mod problems with tep_image, catalog\includes\functions\account_validation.php now contains tep_image_captcha thats used in its place which then avoids the issue, make sure u have the latest.

 

What precise error do u get?

 

 

I'm still getting the "Image cannot be displayed because it contains errors" message. However, the image sort of shows up before. Here's a screen shot:

http://img16.imageshack.us/my.php?image=pr...g&via=yfrog

 

Before, there wouldn't even be that little piece of an image, it would just not show up. Now, that small piece of an image shows up, but the characters are not displayed =( Any ideas?

 

Thanks again by the way, you've been awesome through all of this Sam =)

 

J

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...