verification message will not go away

Please post any ChronoForms bugs you found here

verification message will not go away

Postby mnymkr » Fri Dec 05, 2008 11:20 pm

when I use the form in a module position , if i do not enter the correct verification code the error message will carry over to all other forms

let me give you an example

i have a form in a module position for a diamond quotes page

if i enter the incorrect SPAM letters I will get an error message

when I reenter the verification and it redirects to my front page

the message will appear for my front page form even though it is not anti spam

see here

http://www.bostondiamondexchange.com/be ... ond-quotes
mnymkr
Fresh Boarder
 
Posts: 10
Joined: Thu Aug 07, 2008 5:19 pm

Re: verification message will not go away

Postby admin » Sat Dec 06, 2008 2:53 pm

Hi mnymkr,

this is a known bug yes, I have posted a fix here some where few days ago, if you can't find it then let me know and I will post it again!

Regards
Max
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby guitoun » Sun Dec 07, 2008 4:20 pm

Hi Max,

I don't manage to find the file: can u post the link plz ?

Thanks a lot

Guillaume
guitoun
Fresh Boarder
 
Posts: 10
Joined: Sun Dec 07, 2008 4:17 pm

Re: verification message will not go away

Postby mnymkr » Mon Dec 08, 2008 12:32 am

i cannot find the fix either

i see where you discuss it but do not see a clear fix
mnymkr
Fresh Boarder
 
Posts: 10
Joined: Thu Aug 07, 2008 5:19 pm

Re: verification message will not go away

Postby admin » Mon Dec 08, 2008 6:54 am

ok guys, here we go!

open components/com_chronocontact/chronocontact.php and find:

Code: Select all
if ( md5($chrono_verification ) != $sessionvar ) {


add below it :
Code: Select all
JRequest::setVar('cf_wrong_security_code', 1);


save and close!

now open chronocontact.html.php at the same directory and find:
Code: Select all
<?php if($session->get('chrono_verification_msg', '', md5('chrono'))){ ?>


make it :
Code: Select all
<?php if(($session->get('chrono_verification_msg', '', md5('chrono')))&&(JRequest::getVar('cf_wrong_security_code') == 1)){ ?>


regards
Max
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby guitoun » Mon Dec 08, 2008 10:54 am

Hi Max and thanks for your time ...

I have made the modifications and it does not work for me.

If the captcha is wrong the message "You have entered an incorrect verification code at the bottom of the form" is submitted (that's correct). If the captcha is good i am redirected and the email is sent. But if click to my contact link 5 seconds later then i still have the "You have entered an incorrect verification code at the bottom of the form". That's weird because the form is empty at that moment...

Another problem: when the captcha is wrong i am not redirected to the same URL. My contact form is at index.php?option=com_content&view=article&id=16&Itemid=19 and i am redirected to index.php?option=com_chronocontact&task=send&chronoformname=Contact
Any way to correct that ?

Tested under IE 7.0 and Firefox 2.0 under Windows Vista.

Thanks again for your help
Guillaume
guitoun
Fresh Boarder
 
Posts: 10
Joined: Sun Dec 07, 2008 4:17 pm

Re: verification message will not go away

Postby admin » Mon Dec 08, 2008 7:59 pm

Hi Guillaume,

the 2nd issue has no solution at the moment!

regarding the first one, are you testing the "component" page or the form in an article ? please test the pure form page because the fix was for this one, then we can fix the other the same way!

Regards
Max
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby guitoun » Mon Dec 08, 2008 9:16 pm

Hi Max,

Your are right. I was using the form in an article. When i use the component i no longer have the problem.

But now i have a display problem like the one mnymkr explained here:
viewtopic.php?f=3&t=11844&p=18722&hilit=%3Cdiv%3E#p18722

See my attached file for a screenshot.

Any way to correct the captcha problem (form in an article) or to correct my template problem ? (i use the rockettheme "Metamorph v2" template) ?

For the link problem i saw that you posted a solution some time ago for the 2.5 version. Any way to get the same fix for the 3.0 ver ?

Thanks again for your time and your advices.
Guillaume
Attachments
bad.jpg
bad.jpg (19.75 KiB) Viewed 4277 times
guitoun
Fresh Boarder
 
Posts: 10
Joined: Sun Dec 07, 2008 4:17 pm

Re: verification message will not go away

Postby admin » Mon Dec 08, 2008 9:49 pm

Hi Guillaume,

for the layout issue, this will need some interaction with the CSS in the form or the css in your template, I think you need to remove the height:auto of the field or something, I'm really not sure, it depends on your template css too, you can try to disable the "load chronoforms files" setting at the general tab ?

the fix I mentioned for the verification code can be remade at plugins/content/chronocontact.php the only difference is that the 2 changes will be at the same file here!

where is the solution for the link problem ?

Max
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby guitoun » Tue Dec 09, 2008 9:29 am

Hi Max,

You were right for the layout issue. I fixed the height value in the css file and the error goes away. Thanks !

I can't manage to find the
Code: Select all
if ( md5($chrono_verification ) != $sessionvar ) {
entry in the /plugins/content/chronocontact.php file. It seems easier (to me) to use the plugin/article way to make my contact page looks like ay other page. And under ie6 i have big problems cause the page is totaly messed-up.If that's not too time-consumming can u post the corrections to make to the /plugins/content/chronocontact.php file to correct the issue ? Thanks

For the link problem i am not able to find the forum post anymore. Looks like it was a dream :)

Thanks again for your time
Guillaume
guitoun
Fresh Boarder
 
Posts: 10
Joined: Sun Dec 07, 2008 4:17 pm

Re: verification message will not go away

Postby admin » Tue Dec 09, 2008 10:32 am

Hi, I checked it, you need only the 2nd fix for that file, the first fix is already done at the component files!

let me know!

Max
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby guitoun » Tue Dec 09, 2008 3:14 pm

You are the one Max ! It works great now with the article/plugin way ! Thanks

Only one problem left (the redirect link when the captcha is wrong) but i am sure that you are working on it :D
As a workaround is it possible to redirect to a static link ? I mean "hardcoding" in some file the path to my contact form so i am redirected to the good path ?

Thanks again
Guillaume
guitoun
Fresh Boarder
 
Posts: 10
Joined: Sun Dec 07, 2008 4:17 pm

Re: verification message will not go away

Postby admin » Tue Dec 09, 2008 9:03 pm

Very good idea!! :) but you will lose the submitted data :|

lets try this, at the same place you added the first fix and after the line you added, paste this code:

Code: Select all
function curPageURL() {
$pageURL = 'http';
//if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}


after 2 lines you can find this line:
Code: Select all
showform($posted);


add just before it :
Code: Select all
$mainframe->redirect(curPageURL());


let me know!

Regards
Max
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby guitoun » Wed Dec 10, 2008 8:28 am

Hi Max,

No success on this one. If a mistype the captcha i have the following message in IE 7:

Message

* Votre session a expiré, veuillez vous réidentifier

There is no form with this name or may be the form is unpublished, Please check the form and the url and the form management)


(in English the first line will be: your session has expired, please identify yourself)

I have the same message with Firefox 2.0

I post my 2 files (components/com_chronocontact/chronocontact.php and /plugins/content/chronocontact.php) with my reply so you can take a look. I have renamed /plugins/content/chronocontact.php to plugin_chronocontact.php for the upload

Thanks again
Guillaume
Attachments
files.zip
(10.22 KiB) Downloaded 146 times
guitoun
Fresh Boarder
 
Posts: 10
Joined: Sun Dec 07, 2008 4:17 pm

Re: verification message will not go away

Postby admin » Wed Dec 10, 2008 10:26 am

show me the URL of the article page and the URL you are at when you get this error!

Regards
Max
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Next

Return to ChronoForms Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

 

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 15 minutes)
Most users ever online was 441 on Sat Jul 14, 2012 10:55 am

Users browsing this forum: No registered users and 1 guest

Current time

It is currently Sun May 26, 2013 2:34 am