Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

NEW: Anti Robot Registration Validation


Druide

Recommended Posts

I installed this new version and it seems to be working fine.

 

I see there is a new contribution for Contact Us Anti-spambot. I'm going to try to install this today. I wanted to make sure it would look the same as the other one first though. I think there is a contribution for Tell a Friend too.

 

Thanks for the contributions.....I have a goal to add one too someday.

 

Claire

I'm feeling lucky today......maybe someone will answer my post!

I do try and answer a simple post when I can just to give something back.

------------------------------------------------

PM me? - I'm not for hire

Link to comment
Share on other sites

Dear Alex,

I've looked at Anti spambot for Contact Us. But it works/looks a bit different to your Anti Robot Reg Validation. I'd like to keep these things uniform across my site so am a bit hesitant to use a different style.

I'd really like to use your type of contribution for:

 

Contact Us (most importantly)

Password Forgotten

Tell A Friend

 

as well as being able to control them from Admin panel.

 

Do you plan to develop this contribution? I would try myself but have not graduated from php masters yet ;) .

 

I must complement your installation procedure which looks great and is easy to follow.

 

Thanks

Claire

I'm feeling lucky today......maybe someone will answer my post!

I do try and answer a simple post when I can just to give something back.

------------------------------------------------

PM me? - I'm not for hire

Link to comment
Share on other sites

Claire, I knew nothing about php a year ago, though I did know some about C/C++ programming in DOS. Please by all means make it better if you can.

Super Download Shop, PayPal Express Checkout IPN, Selling Downloads, Visual Validation (preventing robotic flood), phpBB2 Integration

 

Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.

Link to comment
Share on other sites

Hi Alex,

Thanks for replying.

I might try, but I might not be able to fix problems if they arise. Might take some time though. And I'd have no idea how to make the contribution look pretty like yours!

 

I had another question. I'd like to use E-Mail Address Confirmation Field contribution which alters account_edit.php and create_account.php (and I'd add to Contact Us). Do you think these two contributions will work together? Will I need to add some extra code?

 

Hope you can help.

Claire

I'm feeling lucky today......maybe someone will answer my post!

I do try and answer a simple post when I can just to give something back.

------------------------------------------------

PM me? - I'm not for hire

Link to comment
Share on other sites

Tigergirl,

 

Thank you for joining in achieving the contact us page. I did try messing around to see if I could see anything with the page but for some reason, the pictures wouldn't show up and gave me an error icon like not being able to display the image. As like the image was not there. I don't know exactly what the problem was, but I decided I couldn't do it. I will be here trying to give some input on whatever I can.

 

Thanks again,

 

Dark

Link to comment
Share on other sites

I have no images!!!

 

In firefox I get nothing, just the text requesting the user to enter the code shown above the box, and in IE I get a red cross where the image should be.

 

I have other anti spam images within my website, so all the gd stuff etc is ok, so anyone got any ideas?

Edited by comclusive
Link to comment
Share on other sites

v2.4 has been tested in firefox. The png image does showup in it. If you modified the original tep_image() function, please search for a 'fix' in this thread a couple of pages back.

Super Download Shop, PayPal Express Checkout IPN, Selling Downloads, Visual Validation (preventing robotic flood), phpBB2 Integration

 

Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.

Link to comment
Share on other sites

v2.4 has been tested in firefox. The png image does showup in it. If you modified the original tep_image() function, please search for a 'fix' in this thread a couple of pages back.

 

 

Ok, weird issue now! It works fine in Firefox, and in http mode in IE. But in https mode in IE, it shows just a red cross still!

Link to comment
Share on other sites

Actually, it does not show the letters/numbers in https mode in firefox either...

 

Hi Comclusive,

Without sounding patronising, did you upload all the required files such as the catalog\validation_png.php file??? That file would generate the image I think.

 

Hope that helps

Claire

I'm feeling lucky today......maybe someone will answer my post!

I do try and answer a simple post when I can just to give something back.

------------------------------------------------

PM me? - I'm not for hire

Link to comment
Share on other sites

Hi Comclusive,

Without sounding patronising, did you upload all the required files such as the catalog\validation_png.php file??? That file would generate the image I think.

 

Hope that helps

Claire

 

 

Yes, the images show if I go to http...... but If I enable SSL in configure.php and then go to https...... the images do not show.

Link to comment
Share on other sites

It does show up both by http and https in my store. I don't think there is any code in this contrib that can cause such problem. Please compare your tep_image and html_output functions with the original oscommerce code.

Super Download Shop, PayPal Express Checkout IPN, Selling Downloads, Visual Validation (preventing robotic flood), phpBB2 Integration

 

Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.

Link to comment
Share on other sites

I've installed the Anti Robot Registration Validation and have got the following problem.

 

The field to enter the code is there, but there is no code shown.

 

Look @ my site to see the error: error

 

hope u can help me

 

SOLVED PROBLEM .... a file was missing...

Link to comment
Share on other sites

  • 2 weeks later...

I posted a work around back a couple of pages, if you modified the tep_image() function in html_output.php for other contribs. Please search and try it.

Super Download Shop, PayPal Express Checkout IPN, Selling Downloads, Visual Validation (preventing robotic flood), phpBB2 Integration

 

Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.

Link to comment
Share on other sites

this is the genuine tep_image() function came with 060817 release, in catalog/includes/functions/html_output.php:

  function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
  return false;
}

// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
$image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

if (tep_not_null($alt)) {
  $image .= ' title=" ' . tep_output_string($alt) . ' "';
}

if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {
  if ($image_size = @getimagesize($src)) {
	if (empty($width) && tep_not_null($height)) {
	  $ratio = $height / $image_size[1];
	  $width = intval($image_size[0] * $ratio);
	} elseif (tep_not_null($width) && empty($height)) {
	  $ratio = $width / $image_size[0];
	  $height = intval($image_size[1] * $ratio);
	} elseif (empty($width) && empty($height)) {
	  $width = $image_size[0];
	  $height = $image_size[1];
	}
  } elseif (IMAGE_REQUIRED == 'false') {
	return false;
  }
}

if (tep_not_null($width) && tep_not_null($height)) {
  $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';
}

if (tep_not_null($parameters)) $image .= ' ' . $parameters;

$image .= '>';

return $image;
 }

and the work around suggested that you change the function name to tep_image_original(), like this:

  function tep_image_original($src, $alt = '', $width = '', $height = '', $parameters = '') {
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
  return false;
}

// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
$image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

if (tep_not_null($alt)) {
  $image .= ' title=" ' . tep_output_string($alt) . ' "';
}

if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {
  if ($image_size = @getimagesize($src)) {
	if (empty($width) && tep_not_null($height)) {
	  $ratio = $height / $image_size[1];
	  $width = intval($image_size[0] * $ratio);
	} elseif (tep_not_null($width) && empty($height)) {
	  $ratio = $width / $image_size[0];
	  $height = intval($image_size[1] * $ratio);
	} elseif (empty($width) && empty($height)) {
	  $width = $image_size[0];
	  $height = $image_size[1];
	}
  } elseif (IMAGE_REQUIRED == 'false') {
	return false;
  }
}

if (tep_not_null($width) && tep_not_null($height)) {
  $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';
}

if (tep_not_null($parameters)) $image .= ' ' . $parameters;

$image .= '>';

return $image;
 }

and put it in your html_output.php, then modify the code in this contrib where this function is called in 3 places, from tep_image to tep_image_original

 

That's it

Super Download Shop, PayPal Express Checkout IPN, Selling Downloads, Visual Validation (preventing robotic flood), phpBB2 Integration

 

Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.

Link to comment
Share on other sites

Great Contribution and support for it. I installed this contrib, had a few problems, but I got to say, all the answers we're here and once I incorporated some of the changes required, it worked like a charm! Thanks for everyones hard work.

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...