Jump to content
Sign in to follow this  
Druide

NEW: Anti Robot Registration Validation

Recommended Posts

It may be that you have no GD library support on your PHP server.

 

Tone.

 

 

just check my server my system does support GD library.

 

gd

GD Support enabled

GD Version bundled (2.0.28 compatible)

FreeType Support enabled

FreeType Linkage with freetype

GIF Read Support enabled

GIF Create Support enabled

JPG Support enabled

PNG Support enabled

WBMP Support enabled

XBM Support enabled

Share this post


Link to post
Share on other sites

Hey, I just installed the mod but I didnt get a new selection in the admin file.. I uploaded the files and if I check the db I can see the files...

 

aha I need to upload both the 2.5 and 2.6? :huh:

Edited by Dennis_gull

Share this post


Link to post
Share on other sites
Hi Tracy

 

It will be a client or server caching issue. Try the following:

 

Example in create_account.php change

 

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

 

to

 

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

 

This forces a change to the url on each refresh by appending a parameter based on the current time.

 

Good luck!

 

Thanks Tone!! This solved the only slight glitch I had - everything's working great! :thumbsup:


~Tracy
 

Share this post


Link to post
Share on other sites
just check my server my system does support GD library.

Ok thanks for that. Can you try the following piece of code and let me know if it produces the text 'Simple Text' in a rectangle please.

 

<?php
header ("Content-type: image/png");
$im = @imagecreatetruecolor(120, 20)
    or die("Cannot Initialize new GD image stream");
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 5, 5, 5,  "Simple Text", $text_color);
imagepng($im);
imagedestroy($im);
?> 

 

Thanks, Tone.

Share this post


Link to post
Share on other sites
me again, just wanna say that it works now when I turned "Use TrueType fonts?" off.

Hi Dennis

 

As long as GD is installed on your PHP server you could try uploading a truetype font to your server and providing the full server path to the uploaded font for the 'TrueType font used' in Admin. eg as a test if you uploaded arial.ttf from your windows/fonts folder to ..somepath.../images/fonts/arial.ttf you would enter ...somepath.../image/fonts/arial.ttf in Admin. You could then try turning TrueType back on.

 

Tone.

Share this post


Link to post
Share on other sites
Ok thanks for that. Can you try the following piece of code and let me know if it produces the text 'Simple Text' in a rectangle please.

 

<?php
header ("Content-type: image/png");
$im = @imagecreatetruecolor(120, 20)
    or die("Cannot Initialize new GD image stream");
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 5, 5, 5,  "Simple Text", $text_color);
imagepng($im);
imagedestroy($im);
?> 

 

Thanks, Tone.

 

 

nope that did not work got the error "message Cannot Initialize new GD image stream", so what I did was to use an alternative server (I used my freinds web server) and it wokrs a treat!! so so I upload the newer version validation_png.php and that works aswell plus all the other stuff aswell but the text was rather small. so I have logged the GD issue with my web server hosting company to resolve thanks for the Help!!!!!! :) I hope they sort it out soon

Share this post


Link to post
Share on other sites
.......

If you want to use your own truetype fonts you can set this variable to point to a directory of your own using PHP for example something like:

 

<?php
// Set the enviroment variable for GD fonts
putenv('GDFONTPATH=' . 'images/fonts/'));
?>

 

Good luck, Tone.

 

my host do not have any opentype fonts instaled so i wanted to add the arial for my self.

when added these lines to validation_png.php, i got no image at all.

where exactly do i add these lines? and do i usethe full path /hsphere/local/bla/bla/domain.com/images/fonts or just images/fonts/ ?

 

at th moment t is working fine with the php bitmap font, but it looks shabby, truetype will look so much better.

 

thanks in advance to any help you can give


currently using OSC2.2MS2 051113 with the following contributions:

 

AJAX Attributemanager 2.1 - All_products 4.4 - Banner manager 1.5b - banner hack picture in manager * description in product listing hack ms2 v2.4 * drop shadow boxes v.1.1 * Easy populater 2.76d-ms2 by surfalot * FCKEditor * header tag controller v2.5.9 * jcssmenu * LoginBox 5.6 * option type feature v1.71 * OSC-Cach-v1.1 * popup_imagecleaned_stilized_2 * Remove from cart button hack * scrolling bestsellers * Article manager1.4 * Links Manager v1.14. * proffessional invoice&packingslip 6.1 * Ultimate SEO URLs

Personaly i think all these features NEED to be in the main core as they are quite basic features that are missing. but then again what do i know?

Share this post


Link to post
Share on other sites

I have installed this contrib on my test site. Took a little effort but may well be worth it.

 

I had to do the following to make it work tho

 

Change

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

 

to

 

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

 

I also had to use the 2.5 version of catalog\validation_png.php

as the 2.6 version just leaves me with a black box.

 

Is there a fix so I can use the 2.6version of validation_png.php

 

Regards

Shaun

Share this post


Link to post
Share on other sites
I have installed this contrib on my test site. Took a little effort but may well be worth it.

 

I had to do the following to make it work tho

 

Change

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

 

to

 

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

 

I also had to use the 2.5 version of catalog\validation_png.php

as the 2.6 version just leaves me with a black box.

 

Is there a fix so I can use the 2.6version of validation_png.php

 

Regards

Shaun

 

Turning true type fonts off in admin would have fixed the Black box and the png issue

Share this post


Link to post
Share on other sites
my host do not have any opentype fonts instaled so i wanted to add the arial for my self.

when added these lines to validation_png.php, i got no image at all.

where exactly do i add these lines? and do i usethe full path /hsphere/local/bla/bla/domain.com/images/fonts or just images/fonts/ ?

 

at th moment t is working fine with the php bitmap font, but it looks shabby, truetype will look so much better.

 

thanks in advance to any help you can give

can some one help with this please ? :'(


currently using OSC2.2MS2 051113 with the following contributions:

 

AJAX Attributemanager 2.1 - All_products 4.4 - Banner manager 1.5b - banner hack picture in manager * description in product listing hack ms2 v2.4 * drop shadow boxes v.1.1 * Easy populater 2.76d-ms2 by surfalot * FCKEditor * header tag controller v2.5.9 * jcssmenu * LoginBox 5.6 * option type feature v1.71 * OSC-Cach-v1.1 * popup_imagecleaned_stilized_2 * Remove from cart button hack * scrolling bestsellers * Article manager1.4 * Links Manager v1.14. * proffessional invoice&packingslip 6.1 * Ultimate SEO URLs

Personaly i think all these features NEED to be in the main core as they are quite basic features that are missing. but then again what do i know?

Share this post


Link to post
Share on other sites
can some one help with this please ? :'(

Find in the v2.6 validation_png.php around line 72:

if (ANTI_ROBOT_IMAGE_USE_TTF=='true') {

 

Add after:

putenv('GDFONTPATH=' . DIR_FS_CATALOG . 'images/fonts/');

 

And then upload your fonts to catalog/images/fonts/ folder.

 

In the admin settings, you need to put in the font filename with extension. e.g. arial.ttf (case sensitive).


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.

Share this post


Link to post
Share on other sites
Find in the v2.6 validation_png.php around line 72:
if (ANTI_ROBOT_IMAGE_USE_TTF=='true') {

 

Add after:

putenv('GDFONTPATH=' . DIR_FS_CATALOG . 'images/fonts/');

 

And then upload your fonts to catalog/images/fonts/ folder.

 

In the admin settings, you need to put in the font filename with extension. e.g. arial.ttf (case sensitive).

FUNPLASTIC - worked like a charm !

many thanks


currently using OSC2.2MS2 051113 with the following contributions:

 

AJAX Attributemanager 2.1 - All_products 4.4 - Banner manager 1.5b - banner hack picture in manager * description in product listing hack ms2 v2.4 * drop shadow boxes v.1.1 * Easy populater 2.76d-ms2 by surfalot * FCKEditor * header tag controller v2.5.9 * jcssmenu * LoginBox 5.6 * option type feature v1.71 * OSC-Cach-v1.1 * popup_imagecleaned_stilized_2 * Remove from cart button hack * scrolling bestsellers * Article manager1.4 * Links Manager v1.14. * proffessional invoice&packingslip 6.1 * Ultimate SEO URLs

Personaly i think all these features NEED to be in the main core as they are quite basic features that are missing. but then again what do i know?

Share this post


Link to post
Share on other sites
Find in the v2.6 validation_png.php around line 72:
if (ANTI_ROBOT_IMAGE_USE_TTF=='true') {

 

Add after:

putenv('GDFONTPATH=' . DIR_FS_CATALOG . 'images/fonts/');

 

And then upload your fonts to catalog/images/fonts/ folder.

 

In the admin settings, you need to put in the font filename with extension. e.g. arial.ttf (case sensitive).

FUNPLASTIC - worked like a charm !

many thanks


currently using OSC2.2MS2 051113 with the following contributions:

 

AJAX Attributemanager 2.1 - All_products 4.4 - Banner manager 1.5b - banner hack picture in manager * description in product listing hack ms2 v2.4 * drop shadow boxes v.1.1 * Easy populater 2.76d-ms2 by surfalot * FCKEditor * header tag controller v2.5.9 * jcssmenu * LoginBox 5.6 * option type feature v1.71 * OSC-Cach-v1.1 * popup_imagecleaned_stilized_2 * Remove from cart button hack * scrolling bestsellers * Article manager1.4 * Links Manager v1.14. * proffessional invoice&packingslip 6.1 * Ultimate SEO URLs

Personaly i think all these features NEED to be in the main core as they are quite basic features that are missing. but then again what do i know?

Share this post


Link to post
Share on other sites

Hi Alex,

I'm running Anti Robot Registration Validation 2.4.01 which was previously working fine on both my live site and my test site.

But now - I can't see the images on my live site. :(

 

I've been doing a lot of changes this week:

1) just installed update 060817, minus the country fix (which introduces a new bug in general.php) - I'm quite sure the images were on both sites after that.

2) I just reinstalled OS Commerce under a new database, I uploaded all my files, and restored my old database.

3) I had a problem changing my admin password - turns out that the htaccess file was pointing to /shop instead of / - my host found this for me and changed it - had to give them my access details for them to solve. But have now changed my log-in details. (strangely I later today found I could write to the configure file (was fine earlier) so I changed permissions)

 

I tried to test:

1) Live site - using http://mysite.co.uk/validation_png.php?rsi...xxxxxxxxxxxxxxx and the image shows there

2) test site - there is no session_id shown in phpmyadmin

 

Have I missed something out in my re-install?? strange how there are problems with both sites - is it the 060817 update to blame?

 

I don't know where to start - I have tried to read through the thread to no avail.

 

Please help

Tiger


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

Share this post


Link to post
Share on other sites
Hi Alex,

I'm running Anti Robot Registration Validation 2.4.01 which was previously working fine on both my live site and my test site.

But now - I can't see the images on my live site. :(

 

I've been doing a lot of changes this week:

1) just installed update 060817, minus the country fix (which introduces a new bug in general.php) - I'm quite sure the images were on both sites after that.

2) I just reinstalled OS Commerce under a new database, I uploaded all my files, and restored my old database.

3) I had a problem changing my admin password - turns out that the htaccess file was pointing to /shop instead of / - my host found this for me and changed it - had to give them my access details for them to solve. But have now changed my log-in details. (strangely I later today found I could write to the configure file (was fine earlier) so I changed permissions)

 

I tried to test:

1) Live site - using http://mysite.co.uk/validation_png.php?rsi...xxxxxxxxxxxxxxx and the image shows there

2) test site - there is no session_id shown in phpmyadmin

 

Have I missed something out in my re-install?? strange how there are problems with both sites - is it the 060817 update to blame?

 

I don't know where to start - I have tried to read through the thread to no avail.

 

Please help

Tiger

Although 060817 is buggy and suspicious, I did test v2.4-v2.6 of this contribution with 060817 release and all worked. Since you have done so many things to your site, it's pretty difficult to tell what went wrong.

 

The post-installation test you did with your live site showed the image, but you don't see it in the pages like create_account.php or contatc_us.php. This can be fixed easily with the <img src=""> tag (search in this thread a few pages back).

 

No session_id shown in phpmyadmin in your test site. Please check your sessions table and see if any sessions logged in there. Also check the database user/password and db access right of your test site. And check your cookie domain and cookie path settings. Either your sessions/cookies were not setup correctly, or your database is not accessable.


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.

Share this post


Link to post
Share on other sites
Find in the v2.6 validation_png.php around line 72:
if (ANTI_ROBOT_IMAGE_USE_TTF=='true') {

 

Add after:

putenv('GDFONTPATH=' . DIR_FS_CATALOG . 'images/fonts/');

 

And then upload your fonts to catalog/images/fonts/ folder.

 

In the admin settings, you need to put in the font filename with extension. e.g. arial.ttf (case sensitive).

 

 

Excellent. Thanks for all your help here.

For those that are using imagemagic just point the code to your existing fonts folder:

putenv('GDFONTPATH=' . DIR_FS_CATALOG . 'includes/imagemagic/fonts/');

 

Works like a champ.


Follow the community build:

BS3 to osCommerce Responsive from the Get Go!

Check out the new construction:

Admin Gone to Total BS!

Share this post


Link to post
Share on other sites

Need help again :(

 

Got the Anti Robot Validation system installed got one small problem. when makeing a change to the account details, for example changeing the telephone number i get an error message when submiting the details saying

 

Error:

Invalid Validation Code even though the Validation code I typed in was correct. Help!!!!

 

Also when users register and use the contact Us button with Validation enabled all works well!!!!!

Share this post


Link to post
Share on other sites

i noticed that when i turn on 'force use of session cookies' in ADMIN ---> Sessions . the validation image does not show up.

how do i fix this? and how does this even affect it?

i wanted to force use of cookies so i can get rid of the OSCid in the URL .

any ideas any one ?


currently using OSC2.2MS2 051113 with the following contributions:

 

AJAX Attributemanager 2.1 - All_products 4.4 - Banner manager 1.5b - banner hack picture in manager * description in product listing hack ms2 v2.4 * drop shadow boxes v.1.1 * Easy populater 2.76d-ms2 by surfalot * FCKEditor * header tag controller v2.5.9 * jcssmenu * LoginBox 5.6 * option type feature v1.71 * OSC-Cach-v1.1 * popup_imagecleaned_stilized_2 * Remove from cart button hack * scrolling bestsellers * Article manager1.4 * Links Manager v1.14. * proffessional invoice&packingslip 6.1 * Ultimate SEO URLs

Personaly i think all these features NEED to be in the main core as they are quite basic features that are missing. but then again what do i know?

Share this post


Link to post
Share on other sites
i noticed that when i turn on 'force use of session cookies' in ADMIN ---> Sessions . the validation image does not show up.

how do i fix this? and how does this even affect it?

i wanted to force use of cookies so i can get rid of the OSCid in the URL .

any ideas any one ?

Does your store have a dedicated SSL certificate? You can't set 'force use of cookies' to true if you're using shared SSL.


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.

Share this post


Link to post
Share on other sites
Although 060817 is buggy and suspicious, I did test v2.4-v2.6 of this contribution with 060817 release and all worked. Since you have done so many things to your site, it's pretty difficult to tell what went wrong.

 

The post-installation test you did with your live site showed the image, but you don't see it in the pages like create_account.php or contatc_us.php. This can be fixed easily with the <img src=""> tag (search in this thread a few pages back).

 

No session_id shown in phpmyadmin in your test site. Please check your sessions table and see if any sessions logged in there. Also check the database user/password and db access right of your test site. And check your cookie domain and cookie path settings. Either your sessions/cookies were not setup correctly, or your database is not accessable.

 

 

Hi Alex, thanks for a speedy reply. I did look for the posts but it's not entirely clear - not everyone says the exact file to change.

I'm going to concentrate on the live site to begin with -

 

today I tried to run the test and I get the gray speckled background but no characters (version 2.4.01 ).

 

Really don't know where to start. Damn, I'm normally so careful - learned my lesson this time - make changes and test test test before making more changes! :'(


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

Share this post


Link to post
Share on other sites

Alex, if I updated to V 2.5 or 2.6 would that fix it?

Cheers

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

Share this post


Link to post
Share on other sites

Alex, if I updated to V 2.5 or 2.6 would that fix it?

Cheers

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×