FormBuilder and Captcha? Not working.

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
User avatar
loukote
Forum Members
Forum Members
Posts: 58
Joined: Thu Mar 29, 2007 10:12 am

FormBuilder and Captcha? Not working.

Post by loukote »

Hi,

since few days I'm wondering around FormBuilder and playing with. It's a very nice module. Thank you programmers! Everything works well, except:

I'm using the latest versions of FB (0.3) and Captcha (0.3) on CMSMS 1.0.7. Captcha was installed before FB.

I want to use Captcha for a form, so I check the "use captcha" button, the permissions are set, I tried both -- the HN and the PHP captchas. The captcha/images/captchas folder is made 777.


ADDED (dis I forget the essential?): The thing is that no Captcha image appears in the form (tried one or multipage, looked in the source code). After the form submitted, the form page appears with the default error message saying the captcha was incorrect.


The thing should be pretty simple but I simply cannot figure it out. I guess because I do not see *anyone* complaining in the forum.

Any ideas?
Last edited by loukote on Sat Jul 07, 2007 11:18 am, edited 1 time in total.
Mesmer

Re: FormBuilder and Captcha? Not working.

Post by Mesmer »

same problem here.

I upgraded formbuilder to the latest version, clicked on Captcha Settings and checked the 'Use Captcha to protect form submissions?:'box

When I view my form I don't see the Captcha. When I try to submit it gives an 'wrong captcha' errror.

What do I need to do to activate captcha on my forms?

I have the Captcha module installed and it;s working on my guestbook so that's not the problem.
Last edited by Mesmer on Sat Jul 07, 2007 5:34 pm, edited 1 time in total.
Mesmer

Re: FormBuilder and Captcha? Not working.

Post by Mesmer »

anyone?
User avatar
loukote
Forum Members
Forum Members
Posts: 58
Joined: Thu Mar 29, 2007 10:12 am

Re: FormBuilder and Captcha? Not working.

Post by loukote »

One more time, FormBuilder and Captcha?
Mesmer

Re: FormBuilder and Captcha? Not working.

Post by Mesmer »

I've found the solution. Will post it when I get home from work.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: FormBuilder and Captcha? Not working.

Post by RonnyK »

Works over here....

http://test.krijt.eu/index.php?page=cap

CMSMS 1.0.8
Captcha 0.3
FormBuilder 0.3

Make sure that:
File Creation Mask (umask):
in global settings is set to "002", to be able to show the created images.

Ronny
Mesmer

Re: FormBuilder and Captcha? Not working.

Post by Mesmer »

The problem is in the template. When you upgrade to the new version of forumbuilder the template does not get updated so there is no place for captcha.

I installed the new version on an other site (so no upgrade) and copy / pasted that template to my upgraded version of formbuilder. That did the trick.

Maybe someone can post there template so you can use it. I still have to work some hours.
User avatar
loukote
Forum Members
Forum Members
Posts: 58
Joined: Thu Mar 29, 2007 10:12 am

Re: FormBuilder and Captcha? Not working. [SOLVED]

Post by loukote »

Thank you RonnyK and Mesmer.
Mesmer wrote: Maybe someone can post there template so you can use it. I still have to work some hours.
The template actually doesn't upgrade only in the existing forms (otherwise it would destroy your previous work). Once the FBuilder upgraded just create a new form and use the template. Or put the code bellow:

Code: Select all

{if $has_captcha == 1}
<div class="captcha">{$graphic_captcha}{$title_captcha}<br />{$input_captcha}</div>
{/if}
somewhere in the template.
Last edited by loukote on Wed Aug 01, 2007 1:36 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: FormBuilder and Captcha? Not working.

Post by Dr.CSS »

Don't you have to install the captcha module?...
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: FormBuilder and Captcha? Not working.

Post by RonnyK »

Correct Mark,

Captcha has to be installed, but the case is that when upgrading, the "Captcha"-lines aren't being inserted in the template, so the old template, without the captcha-logic inside is what you'll endup with. In a clean install are the lines present, as shown in the topic just above yours.

Ronny
gk

Re: FormBuilder and Captcha? Not working.

Post by gk »

Hi there,
I'm new here, and I had this same problem dealing with captcha & Formbuilder. I can't see no img though I've checked inside images/captchas that there were some good image captcha generated. I can only read the Alt while I'm sure the img exists in its folder. Can someone tell me about the trick!? I really need it working.
User avatar
loukote
Forum Members
Forum Members
Posts: 58
Joined: Thu Mar 29, 2007 10:12 am

Re: FormBuilder and Captcha? Not working.

Post by loukote »

gk wrote: Hi there,
I'm new here, and I had this same problem dealing with captcha & Formbuilder. I can't see no img though I've checked inside images/captchas that there were some good image captcha generated. I can only read the Alt while I'm sure the img exists in its folder. Can someone tell me about the trick!? I really need it working.
Hi gk,

Is it "the template problem" solved lower in this post or sth else? If different, could you post the HTML code of the form generated? + the versions of the CMS, FBuiler, Captcha.

Regards, Ondra
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: FormBuilder and Captcha? Not working.

Post by calguy1000 »

If you are using a stock 0.3 formbuilder template but have upgraded to 0.4.1, then what I suggest you do is:

a) Create a new form and add a field to iit (any field) and save it.
b) in the form template tab, select the template you want (make sure it has the captcha stuff in the template) and
    copy that template to your clipboard
c) go back into your previous form (the one with the 0.3 template) and paste overtop of your current form template.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
gk

Re: FormBuilder and Captcha? Not working.

Post by gk »

kotecky wrote:
gk wrote: Hi there,
I'm new here, and I had this same problem dealing with captcha & Formbuilder. I can't see no img though I've checked inside images/captchas that there were some good image captcha generated. I can only read the Alt while I'm sure the img exists in its folder. Can someone tell me about the trick!? I really need it working.
Hi gk,

Is it "the template problem" solved lower in this post or sth else? If different, could you post the HTML code of the form generated? + the versions of the CMS, FBuiler, Captcha.

Regards, Ondra
hi all,
thanx for your help and advices, I could solve the issue. Sorry for being that slow in answering, I was far from my laptop for a long time. Thank you all again!
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm

Re: FormBuilder and Captcha? Not working.

Post by sjg »

A user submitted a fix, so the newest release of FormBuilder (0.4.3) has the correct templates.

For existing forms, however, you'll still need to the code kotecky posted to your template.

Sorry about that!

SjG
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
Locked

Return to “CMSMS Core”