Forums

Upload images & Captcha not working - Joomla 1.6 - 4.0 RC1.9

prebuilt79 16 Sep, 2011
I have joomla 1.6 with Chronoforms 4.0 RC1.9. Ive setup a form here <!-- w --><a class="postlink" href="http://www.veterinaryproducts.net/directory/pro-listing.html">www.veterinaryproducts.net/directory/pro-listing.html</a><!-- w --> and need help with getting the following to work.

1. The Captcha doesnt work
2. When submitted I receive the email with everything except for the images.

I have tried the following but cant seem to get it to function http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=5&t=22469

Thanks
Rob
GreyHead 16 Sep, 2011
Hi Rob,

Do you have the Check Captcha action in the On Submit event? It needs to have an Event Loop action dragged into the pink OnFail event box.

Have you put the attachment input names into the 'Attachments fields name' box in the Email Configuration?

Bob
prebuilt79 16 Sep, 2011
Hi GreyHead

I have Load Captcha On load & Check Captcha OnSuccess / OnFail under On Submit.

This is the email template with the image names included:

Name: {first_name}<br>
Last Name: {last_name}<br>
Company Name: {company_name}<br>
Category 1: {category_1}<br>
Category 2: {category_2}<br>
Category 3: {category_3}<br>
Address: {address}<br>
City: {city}<br>
State: {state}<br>
Country: {country}<br>
Postcode: {postcode}<br>
Phone: {phone}<br>
FAX: {fax}<br>
Email: {email}<br>
Website: {website}<br>
Company Logo: {logo}<br>
Business Profile: <br><br>{business_profile}<br><br>
Keywords: {keywords}<br>
Image 1: {image_1}<br>
Image 2: {image_2}<br>
Image 3: {image_3}<br>
Image 4: {image_4}<br>
Image 5: {image_5}<br>
Found Us: {found_us}<br>
GreyHead 16 Sep, 2011
Hi prebuilt97,

Do you have the Event Loop action?

Do you have the input names in the Attachment Fields names box?

Bob
prebuilt79 16 Sep, 2011
I have named the Field Names exactly the same as in the template.

Here is the actions I have:
GreyHead 16 Sep, 2011
Hi prebuilt79,

I don't see a Check Capthca action there at all??

And the Upload Files action is after the Email action so there are no files to attach when the email is sent.

Bob
prebuilt79 16 Sep, 2011
Starting to work. Looks like the image is showing for Company Logo but the other 5 image upload don't work. I have set the file config string to:

logo:jpg-png-gif, image_1:jpg-png-gif, image_2:jpg-png-gif, image_3:jpg-png-gif, image_4:jpg-png-gif, image_5:jpg-png-gif

I have set Max Size in KB to 200kb and if I upload bigger it doesn't show the error msg and nothing appears in email.

I have added the Captcha action but still not working

GreyHead 16 Sep, 2011
Hi prebuilt79,

Please try removing the spaces after the commas - shouldn't make a difference but it might:
logo:jpg-png-gif,image_1:jpg-png-gif,image_2:jpg-png-gif,image_3:jpg-png-gif,image_4:jpg-png-gif,image_5:jpg-png-gif


And please drag an Event Loop action into the pink OnFail event for the Check Captcha action.

Bob
prebuilt79 17 Sep, 2011
GreyHead your a legend!

Ive got them both working!! The spaces before the comma fixed the image uploads on all and event loop brings up the error msg for the Captcha.😀

There are only 2 probs:

1. When the Captcha is incorrect the email feild gets replaced with the following:

<script type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy53454 = 'admi' + '@'; addy53454 = addy53454 + 'h' + '.' + 'com'; document.write('<a ' + path + '\'' + prefix + ':' + addy53454 + '\'>'); document.write(addy53454); document.write('<\/a>'); //-->\n </script><script type='text/javascript'> <!-- document.write('<span style=\'display: none;\'>'); //--> </script>This e-mail address is being protected from spambots. You need JavaScript enabled to view it. <script type='text/javascript'> <!-- document.write('</'); document.write('span>'); //--> </script>

2. When you upload a file larger than 200kb which is set no error comes up and nothing appears in the email for that upload and any uploads after.

Thanks
Rob
GreyHead 17 Sep, 2011
Hi prebuilt79,

You have the Joomla! Email Cloaking Plug-in enabled and it is trying to cloak the sample e-mail in the ChronoForms validation message. Disable the plug-in temporarily to check this is the problem. If you need the plug-in change the plug-ins order so that Email Cloaking runs before ChronoForms.

NB These are Joomla! plug-ins that you manage from Site Admin | Extensions | Plug-in Manager

Check that you have just 200 in the Maximum size box and not 200kb. Also temporarily add a Debugger action and see if that gives you any helpful info.

Bob
prebuilt79 17 Sep, 2011
Hi GreyHead,

Changing the order of the email cloaking worked!! woohoo

The debugger just said > File : image_4 size is over the max limit. Thats fine, I can live with that.

Thanks so much Greyhead

Cheers
Rob
This topic is locked and no more replies can be posted.