Entering CAPTCHA code wrongly and page reload in content

skyshing 08 Mar, 2009
I have purchased the Chronoforms already. I am using the latest Chronoforms V3.1 RC2 on Joomla 1.5.9. Generally it works fine. However, I have found few posts in the forum relating to this but it seems like there is no real solution yet or either people did not reply to it clearly. I would like to address this and as a reminder to ask if there is fix or an update on this issue.
I have a form with CAPTCHA embed into the Joomla content using mambot, this works very well. So another word, the form is part of the site template design.

The issue is that whenever you enter a wrong CAPTCHA code, the page reloads itself and direct to: ‘index.php?option=com_chronocontact&task=send&chronoformname=your_form_name’

Why is that when the page reload itself (after entering the wrong CAPTCHA code), it goes to a blank page with just the embedded form, and leaving the site template design. It looks like as if it is not part of the design anymore??? See below screenshot (Screenshot_CAPTCHA_Reloads.jpg).

I remembered using the earlier version of Chronoforms from before and when user enter the wrong CAPTCHA code, all it does is pop-up with the JavaScript message, something like ‘You have entered a wrong verification code’. At least with this method, it does not leave the site template design (after user after entered the wrong CAPTCHA code) and it still does the job very well!

Any fix for this issue. If not, please anyone let me know how to get the old JavaScript pop-up like earlier the version of Chronoforms??? Please reply, your help would be most appreciated.
Entering CAPTCHA code wrongly and page reload in content image 1
GreyHead 08 Mar, 2009
Hi skyshing,

I don't think that ChronoForms Captcha has ever been JavaScript - it has always been checked on submission. And there has been this problem with both the module and PlugIn on server-side checking :-(

I think that Max is working on it but it's not proving simple to reliably re-load a page from a different component.

That said, you should not see a page without a template - that suggests something odd with your setup.

You could try the ReCapthca approach that verifies in the page. There is a post here about using it.

Bob
skyshing 08 Mar, 2009
Hi GreyHead. I think you misunderstand my point. I might be wrong with the CAPTCHA being JavaScript. I am not a programmer and that is probably why I would not know what method was used with the earlier version. OK, now please take a look at Screenshot 1 below, which is the form I created long time ago using ChronoForms V2.3.9 in Joomla 1.0. What you see in this screenshot is that the form is embedded in Joomla content using mambot. When a user enter all the required details in the form but failed to enter the CAPTCHA code correctly let say, we get server-side checking and then the pop-up message appear as 'Sorry, You have entered a wrong verification code’. Everything works perfectly fine here including the set-up. When you see the pop-up message, it reloads the page for server-side checking, but it never leaves the actual site template design. That was the earlier version of ChronoForms V2.3.9 in Joomla 1.0. That is what I am talking about previously. I hope this is clear so far...
Entering CAPTCHA code wrongly and page reload in content image 2
Now I am in the process of building another site as I am upgrading my site to Joomla 1.5, so I installed the latest Chronoforms V3.1 RC2 in Joomla 1.5.9. It is exactly the same set-up, with the form embedded in joomla content using mambot ({chronocontact}Online_Quote_Form{/chronocontact} where 'Online_Quote_Form' is the name of my form). Everything works fine here, I can see that the form is nicely embedded into Joomla content, see next Screenshot 2 below:

Entering CAPTCHA code wrongly and page reload in content image 3
You can see the form is nicely embedded in the Joomla content on the left. So basically, after the form is submitted, it reloads the page for server-side checking, but it goes to a blank page with just the form on its own, leaving the actual template design site as I explained before. I don't think the set-up which I did with this one and the older version is any different, it is exactly the same set-up in both. I hope you understand from these illustrations.
However, I did another search through the forum and it seems like these people experienced the same problem so after all I am not the only one. I believe there is nothing wrong with the set-up since the actual function of the form is working fine.
Here are the links from the forum with similar issue:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=4&t=7095
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=8287&p=8392&hilit=captcha+reload#p8392
When do you think there is a fix for Chronoforms V3.1 RC2. As I said from above with the earlier version, the form never leaves the site template even though it reloads for server-side checking. If there is no immediate fix for this version, how can I get the method working as before, remember this is a newest version and the codes are slightly different and I can see it in /public_html/plugins/content/chronocontact.php. Many Thanks.
GreyHead 08 Mar, 2009
Hi skyshing,

I understand what you are saying, I'd forgotten that ChronoForms had use an alertbox message.

But equally that doesn't change what I am saying - AFAIK ChronoForms should still return to a templated page; not to the untemplated page you are showing here.

I have more idea tha you do when Max might have a fix for this, sorry.

Bob

PS Checked the links you posted, I don't think that either of them have the untemplated page problem. They do have the problem that the form returns to the com_chronocontact page rather than the com_content page.
skyshing 08 Mar, 2009
Hi GreyHead,

To be honest with you, I don't understand what went wrong if you say that ChronoForms should return to a templated page.
This is a fresh installation of Joomla 1.5.9 and from this point, I installed the latest Chronoforms V3.1 RC2 on it, that is all!
During Joomla installation, no errors is found, and when I installed Chronoforms V3.1 RC2, no erros either. It seems that it is running smoothly.
The posts that I have mentioned about those people who have experienced similar issue, it sounds like it is close to this one. There is no follow up in one of them. Actually, this is not my first time installing Chronoforms and I am trying to eliminate the problems.

Just to say that, don't forget that Chronoforms V3.1 RC2 is a fairly new release and this bug could be overlooked. Other people may be using the older versions. In fact, I did not experience this issue when I was using the earlier versions either.

By the way, anyone who are using the latest Chronoforms V3.1 RC2 on Joomla 1.5.9 with CAPTCHA enabled, please post it here. I would like to see the working demo where it does not leave the templated site when the page reload, (after entered the wrong CAPTCHA code and hitting the submit button).

Well I am scratching my head right now, any ideas anyone PLEASE PLEASE PLEASE!
skyshing 09 Mar, 2009
I have sorted it out already. Thanks for the reply in my previous posts.😀
GreyHead 09 Mar, 2009
Hi skyshing,

Good news - well done ! :-)

What was the fix please - it may help other people (including me)?

Bob
skyshing 09 Mar, 2009
The Chronoforms component is working fine. Nothing so special about the fix really, it is one of these days where you find yourself doing something which probably should not be there in the first place.
I have entered the code wrongly in the HTML part of the form code. It appear that I have something like <input type="hidden" name="format" value="h" /> as part of the form construction (I built the form in Dreamweaver) and it was causing this problem. Interestingly, the same HTML codes were used in my other form with ChronoForms V2.3.9 in Joomla 1.0 and it works fine even after the page reload.

It seems that the HTML part of the form code in Chronoforms V3.1 RC2 is very sensitive, something to watch out for when entering the codes here for complex form. Slight mistake can cause big problem. Anyway, I have learnt something new!
GreyHead 09 Mar, 2009
Hi skyshing,

No obvious reason why that would casue a problem . . . useful to know though, thanks.

Bob
Max_admin 09 Mar, 2009
Hi skyshing,

By the way, anyone who are using the latest Chronoforms V3.1 RC2 on Joomla 1.5.9 with CAPTCHA enabled, please post it here. I would like to see the working demo where it does not leave the templated site when the page reload, (after entered the wrong CAPTCHA code and hitting the submit button).



you mean side modules disappear or so ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 09 Mar, 2009
Hi Max,

No, the whole template disappeared - like using index2.php - except the URL was unchanged.

Bob
Max_admin 11 Mar, 2009
Hi Bob,

Then this is probably a fatal error, may be a problem in some field name if the DB connection is enabled or error in any PHP code piece in the onsubmit or validation code!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.