Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

NEW: Anti Robot Registration Validation


Druide

Recommended Posts

The GD library is eneable on my server, so it not there the error are

 

I had this same problem and this post http://www.oscommerce.com/forums/index.php?sho...4205&st=288 fixed everything oh, and I also had to change this line in create_account.php:

$validation_images = tep_image('validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id']);

to this:

//$validation_images = tep_image('validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id']);
$validation_images = '<img src="validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id'] . '">';

This solved all of my problems with 2.6.

 

Don't forget when your including the path to your own fonts dir that you include the full absolute path and not the relative path

 

Also the other important thing is in your administration control panel where you modify the options of this contrib, you nee to make sure that you specify the exact filename of the TTF font that you uploaded for example if you uploaded 'arial.ttf' to your fonts directory, you would enter 'arial.ttf' (this is case sensitive and is not the same as 'ARIAL.TTF').

 

Hope this helps,

ciao

Link to comment
Share on other sites

The GD library is eneable on my server, so it not there the error are

Which version the GD lib it is?

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

Which version the GD lib it is?

gd

GD Support enabled

GD Version bundled (2.0.28 compatible)

FreeType Support enabled

FreeType Linkage with freetype

T1Lib Support enabled

GIF Read Support enabled

GIF Create Support enabled

JPG Support enabled

PNG Support enabled

WBMP Support enabled

XBM Support enabled

Link to comment
Share on other sites

Then it should work. I can't see why v2.6 with my add-on code didn't work for you.

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

Ok, I'll see what I can do with it these days.

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

Here's my problem:

 

I have installed the following code in application_top.php just before the last ?> as part of a Private site contribution.

 

	  if (!tep_session_is_registered('customer_id')) {
	$navigation->set_snapshot();
	tep_redirect(FILENAME_LOGIN);
	// tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }

 

This causes the Anti Robot registration graphic not to display. Specifically the tep_redirect function is causing it (when it is commented out, everything displays fine).

 

Any suggestions on how to fix this would greatly be appreciated.

 

Thanx,

 

Ed

Link to comment
Share on other sites

Here's my problem:

 

I have installed the following code in application_top.php just before the last ?> as part of a Private site contribution.

 

	  if (!tep_session_is_registered('customer_id')) {
	$navigation->set_snapshot();
	tep_redirect(FILENAME_LOGIN);
	// tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }

 

This causes the Anti Robot registration graphic not to display. Specifically the tep_redirect function is causing it (when it is commented out, everything displays fine).

 

Any suggestions on how to fix this would greatly be appreciated.

 

Thanx,

 

Ed

Link to comment
Share on other sites

Regarding my previous posts, my problem is solved and for the record:

 

With help from husgom who created the contribution: Private Shop he suggested that the image processor file had to be included in the list of approved files to have the Anti Robot image displayed:

 

	 if (strpos($PHP_SELF, "login.php") == 0 && strpos($PHP_SELF, "privacy.php") == 0 && strpos($PHP_SELF, "conditions.php") == 0 && strpos($PHP_SELF, "contact_us.php") == 0 && strpos($PHP_SELF, "create_account.php") == 0 && strpos($PHP_SELF, "validation_png.php") == 0) {
   if (!tep_session_is_registered('customer_id')) {
	$navigation->set_snapshot();
	tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'NONSSL'));
  }
}

 

and he was right! :thumbsup:

 

Just for the record,

 

Ed

Link to comment
Share on other sites

I have installed version 2.6 of this great contribution and everything looks fine but it seems like any validation code I put in the input-field is accepted. Any ideas of what I have done wrong?

 

excuse my poor english :blush:

Link to comment
Share on other sites

I have installed version 2.6 of this great contribution and everything looks fine but it seems like any validation code I put in the input-field is accepted. Any ideas of what I have done wrong?

 

excuse my poor english :blush:

Link to comment
Share on other sites

The problem is limited to contact_us.php, the other pages with validation is working fine. I have one other contribution installed, valid XHTML Catalog Side 2.7, maybe the problem is related to this?

Link to comment
Share on other sites

When I enter wrong validation code and refresh the page, the code is still in the text field.

How the wrong validation code can disappear every time when I refresh the page?

I want the field be empty. Maybe it is very easy, but I can not do it.

Edited by EndGy
Link to comment
Share on other sites

It's your browser which fills the field automatically.

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

Upgraded from 2.4 to 2.6. After a few changes suggested on this thread, all is working with the image.

 

However, now, if I for example change account info, enter the characters and press Submit, I go to a blank page. The only way to fix it is to close the browser and restart.

 

Thoughts?

Link to comment
Share on other sites

  • 2 weeks later...

okay.. I've installed this mod.. the admin part works fine, but if I go to a page with the validation in it doesn't display the numbers.. instead it's just black with white fuzz.

This is only when set to use truetype fonts.. if I use bitmap it works fine. I'm wanting to use trutype though... any ideas?

Link to comment
Share on other sites

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 guys!

i have a problem with this contribution, i've installed the mod and it doen't break a thing (pheww.. thank you god :-") but no validation image appears. What have i done wrong?.. Can anyone help? :thumbsup: :lol:

"I am not a Newbie but I am not an Expert either..."
"Lets learn about osCommerce together!..."
Link to comment
Share on other sites

Hi guys!

i have a problem with this contribution, i've installed the mod and it doen't break a thing (pheww.. thank you god :-") but no validation image appears. What have i done wrong?.. Can anyone help? :thumbsup: :lol:

"I am not a Newbie but I am not an Expert either..."
"Lets learn about osCommerce together!..."
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...