Problems with captcha and file uploads

brocars 14 Jun, 2011
Hi

I have two forms which I copied the code across from V3 and then manually configured the events in the wizard. Forms submitting fine but poeblems with:

1. Adding security captcha. The code I used in V3 was {imageverification} - is this the same in V4? In the vents i have load captcha in the "on load" box and check captcha in the "on submit" box with an event loop set for onfail. Have a i missed anything?

2. File uploads - can't seem to get these to work. I have three file upload fields in the form code (file1,file2 and file3). In the general tab for email i have set file1,file2,file3 under the "Attachments fields name". I have an upload files action in the onsubmit box with the "files" setting as file1:jpg-png-gif,file2:jpg-png-gif,file3:jpg-png-gif and an onfail event loop set. Again have I missed somthing. I want the files to be attached to the emailrather than uploaded to the server if possible.

Any help would be greately appreciated.

Regards

Paul
GreyHead 14 Jun, 2011
Hi Paul,

The code Image Verification appears to have changed in CFv4 - please try {chronocaptcha_img} (or there is a 'Captha Input' element if you use the Form Wizard).

You can't attach files to emails without uploading them to the site :-(

Try adding a DeBugger event and see if that shows you anything useful (debugger messages are a bit patchy in CFv4 so far). Do you have a correct upload folder configured and is it writeable? (The default folder is OK.)

Bob
brocars 16 Jun, 2011
Bob

adding {chronocaptcha_img} does indeed display the captcha image. I have also added "load captcha" and "check captcha" events. I need to also add a text field to enter the captcha code - what would the field name for this be?

Ref the file uploads, the debugger info is as follows:

3.Upload routine started for file upload by : file1
4.JOOMLA_PATH/components/com_chronoforms/uploads/general/20110616103911_banner.png has been uploaded OK.
5.Upload routine started for file upload by : file2
6.JOOMLA_PATH/components/com_chronoforms/uploads/general/20110616103911_banner1.jpg has been uploaded OK.

The files seem to be uploading OK to JOOMLA_PATH/components/com_chronoforms/uploads/general/ but are not being attached to the email. Is this possible??

Thanks again

paul
brocars 17 Jun, 2011
sorry BOb, any update on this one. Then hopefully I can stop bugging you.

Paul
Max_admin 20 Jun, 2011
Hi Paul,

Bob is away for a few days, hopefully back soon🙂

#1- Did you use the captcha element in the wizard to do this ? if so then a text field should be loaded as well.

#2- did you configure the "Email" settings to select which fields files will be attached to that specific email ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
brocars 21 Jun, 2011
Hi Max

#1 I didn't use the wizard to create the form but copied it manually from V3. I need to add the text field manually but just need to know how to tie it in with the captcha.

#2 In the email config in the general tab I have:

file1,file2,file3

and in files in the settings tab I have

file1:jpg-png-gif,file2:jpg-png-gif,file3:jpg-png-gif

Have I missed something?

Thanks

Paul
GreyHead 21 Jun, 2011
Hi Paul,

Back again.

The file attachment entries all look OK to me.

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

Bob
brocars 25 Jul, 2011
Hi Bob

still styruggling to get the captcha to work.

This is what I have done:

1. Adding {chronocaptcha_img} which displays the captcha image.
2. Added "load captcha" and "check captcha" events.

The captcha image shows fine but there is no field for users to enter the security code. I assume I just enter a normal text filed for this but what should the filed name and ID be?

Thanks

Paul
GreyHead 26 Jul, 2011
Hi Paul,

Can you use the Capcha Input element? If you are using custom Form HTML you can create a temporary form with just the element then copy and paste over the key elements of the HTML to create the Catcha.

Bob
brocars 26 Jul, 2011
Thanks for the reply Bob.

Actually on this particular project I am back to where I started with the "mootools upgrade" problem. I have other functionality that won;t work if I switch on the upgrade so I have reluctantly had to go back to chronoforms V3 on thos one.

So frustrating !!

I'll try your suggestion next time I use V4

Thanks

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