tigergirl Posted October 11, 2006 Posted October 11, 2006 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 Quote 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
tigergirl Posted October 11, 2006 Posted October 11, 2006 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 Quote 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
AlexStudio Posted October 11, 2006 Posted October 11, 2006 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. Quote 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.
tigergirl Posted October 11, 2006 Posted October 11, 2006 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 Quote 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
darkangel Posted October 11, 2006 Posted October 11, 2006 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 Quote
comclusive Posted October 13, 2006 Posted October 13, 2006 (edited) 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 October 13, 2006 by comclusive Quote
AlexStudio Posted October 13, 2006 Posted October 13, 2006 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. Quote 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.
comclusive Posted October 14, 2006 Posted October 14, 2006 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! Quote
comclusive Posted October 14, 2006 Posted October 14, 2006 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! Actually, it does not show the letters/numbers in https mode in firefox either... Quote
tigergirl Posted October 16, 2006 Posted October 16, 2006 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 Quote 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
comclusive Posted October 16, 2006 Posted October 16, 2006 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. Quote
AlexStudio Posted October 16, 2006 Posted October 16, 2006 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. Quote 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.
comclusive Posted October 17, 2006 Posted October 17, 2006 All is fine. I have checked everything many many times, but if I enable SSL, it goes wrong. Quote
ust-tuning Posted October 20, 2006 Posted October 20, 2006 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 Quote Contribs I postet something in *g*
ust-tuning Posted October 20, 2006 Posted October 20, 2006 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... Quote Contribs I postet something in *g*
hobbieone59 Posted October 24, 2006 Posted October 24, 2006 SOLVED PROBLEM .... a file was missing... which file please ? I got the same problem, thanks for your answer PS: it was working a few days ago.... ?! :/ Quote
dksi Posted November 4, 2006 Posted November 4, 2006 Hello, If I want use this contrib in other files like contact_us.php, which code I should change? Sorry for my bad english. Greetz Quote
dksi Posted November 4, 2006 Posted November 4, 2006 Hello, If I want use this contrib in other files like contact_us.php, which code I should change? Sorry for my bad english. Greetz Quote
romulianx Posted November 5, 2006 Posted November 5, 2006 I have a problem. The image does not show, I believe is by the STS simple template system. To somebody this combination works to him STS+Antirobot. Please Help!!!. Sorry for my bad english. Quote
AlexStudio Posted November 5, 2006 Posted November 5, 2006 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. Quote 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.
hobbieone59 Posted November 5, 2006 Posted November 5, 2006 I did not understood how to do it... :/ I understood we have to add a new function (the genuine one) unmodified, but I did not found it :/ in the old package :( could you try to write a fix to correct the tep_image function problem please? Quote
AlexStudio Posted November 5, 2006 Posted November 5, 2006 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 Quote 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.
DragnSoul Posted November 5, 2006 Posted November 5, 2006 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. Quote
hobbieone59 Posted November 5, 2006 Posted November 5, 2006 It did not work :/ the prob is when I try the validation_png.php with the rsid, there is no image...I think there's a problem coming from somewhere here... Quote
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.