| Post |
|
Admin
| Oliver Munich, Germany posts 6237 5:25 pm July 17, 2011
| |
|
|
good catch. after-all that's what a great user group is for ;-)
it'll be added in cforms v12.0. released later today.
|
|
|
|
|
Guest
| andré 9:26 am July 21, 2011
| |
|
|
hello,
problem not yet solved by the updates.
the code sets prematurely the status to "success" although the message has not yet been sent.
the code in cforms.php from line 243 must be like:
if ( isset($_GET['cfemail']) && $isWPcommentForm ){
if ( $_GET['cfemail']=='sent' ) {
$usermessage_class = ' success';
$success=true;
$usermessage_text = preg_replace ( '|\r\n|', '<br />', stripslashes($cformsSettings['form'.$no]['cforms'.$no.'_success']) );
}
elseif ( $_GET['cfemail']=='posted' ) {
$usermessage_class = ' success';
$success=true;
$usermessage_text = preg_replace ( '|\r\n|', '<br />', stripslashes($cformsSettings['global']['cforms_commentsuccess']) );
}
}
you should test the functionality before giving out an update that shall fix a problem which is not really fixed afterwards.
best regards
andré
—————————————–
Firma xitroMEDIA.com – WebDesign- und WerbeAgentur
|
|
|
Admin
| Oliver Munich, Germany posts 6237 12:30 pm July 21, 2011
| |
|
|
right. I shouldn't have just used your code to begin with….thanks for the update and correction.
edit: i currently don't have to check this. but it's added and re-uploaded.
|
|
|
|
|
Guest
| André 10:03 am July 27, 2011
| |
|
|
hello oliver,
after testing your update …. it does not yet work right.
you should use the following code and only set these parameters that have changed:
### fix for WP Comment (loading after redirect)
if ( isset($_GET['cfemail']) && $isWPcommentForm ){
if ( $_GET['cfemail']=='sent' ){
$usermessage_class = ' success';
$success=true;
$usermessage_text = preg_replace ( '|\r\n|', '<br />', stripslashes($cformsSettings['form'.$no]['cforms'.$no.'_success']) );
} elseif ( $_GET['cfemail']=='posted' ){
$usermessage_class = ' success';
$success=true;
$usermessage_text = preg_replace ( '|\r\n|', '<br />', stripslashes($cformsSettings['global']['cforms_commentsuccess']) );
}
best regards
andré
——————————————————
Firma xitroMEDIA.com – WebDesign- und WerbeAgentur
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:01 pm July 27, 2011
| |
|
|
below the code that's currently in cforms.php , perhaps I'm dense, but I don't see how it's different (I used this approach to avoid duplicating code). can you double check that the below code is what your cforms.php has, too:
### fix for WP Comment (loading after redirect)
if ( isset($_GET['cfemail']) && $isWPcommentForm ){
$usermessage_class = ' success';
$success=true;
if ( $_GET['cfemail']=='sent' ){
$usermessage_text = preg_replace ( '|rn|', '', stripslashes($cformsSettings['form'.$no]['cforms'.$no.'_success']) );
} elseif ( $_GET['cfemail']=='posted' ){
$usermessage_text = preg_replace ( '|rn|', '', stripslashes($cformsSettings['global']['cforms_commentsuccess']) );
} else {
$usermessage_class = ' failure';
$success=false;
}
}
|
|
|
|
|
Guest
| André 9:25 am August 2, 2011
| |
|
|
it´s different because my part of code only sets these parameters whose statuses have really changed – independent of any other events/conditions coming afterwards. i do not know the the all the rest of your code that runs after this part has been run.
if have tested your version too, but it does not work. it creates nevertheless a success message.
|
|
|
Moderator
| Paul Amsterdam, NL posts 421 7:54 am August 6, 2011
| |
|
|
not sure i agree. the above code does the same thing, just reverse:
the initial state is:
$usermessage_class = ' success';
$success=true;
and if it's neither 'sent' nor 'posted' sets it to:
$usermessage_class = ' failure';
$success=false;
yours does it reverse:
it starts with the default:
$usermessage_class = ' failure';
$success=false;
and only if 'sent' or 'posted' is met to:
$usermessage_class = ' success';
$success=true;
|
|
|
|
|
Guest
| Ömür Ertanış 1:01 am October 2, 2011
| |
|
|
İ can find any easy solution for this problem and at last i found this solution and it works for me.
İn cfforms.php file at line 1064 before "return $content;" or near this line add this code.
//sendbutton3 means sendbutton form number 3
if(isset($_POST['sendbutton3'])){
$content .= "<div>Your success message</div>";
}
|
|
|
Guest
| J's logical 7:13 pm October 15, 2011
| |
|
|
Thanks,
This forum help..
I just Turn off admin email, as I am still working on my localhost.
This really guide me along my way..
|
|
|
Guest
| gray 8:50 am January 3, 2012
| |
|
|
I have also been experiencing this problem with my site AthenaAuraNova.com. I believe that the problem I'm having is inherent to the theme we are using for this project, Amplus v2.0.3. when I tried activating the Twenty Eleven theme, all of my forms correctly display a success or error message. Otherwise the div.cf_info success isn't spitting out any information even though the div still gets inserted. in fact, when using a previous version of the theme, Amplus v1.6, it works just fine.
any ideas why there would be a theme incompatibility?
|
|
|
Guest
| Valeri 2:35 pm January 11, 2012
| |
|
|
Hi Paul,
I am reading the thread and I can recognize with many of the problems that the people are encountering.
My forms were all working fine previously, but I recently moved server and then it stopped working.
It freezes at One Moment Please… and after reading the thread, I unchecked AJAX and it magically worked!
Thing is, I hate how the whole page reloads and it's very hard to see success msg. I still do hope that AJAX can work as it used to be since it didn't have problems in the past in the exact same theme and format.
Pls help take a look?
http://mylittlebow.com
Mailing List Form
Enquiries (in each product Page)
Contact Us Form
All with Ajax unchecked right now.
|
|
|
Moderator
| Paul Amsterdam, NL posts 421 5:34 pm January 11, 2012
| |
|
|
…but have you also checked the FAQs re: "stalling / one moment please" ??
you're suffering from the very issue that 99.8% of the users have when they run into the "one moment" stalling error.
Paul.
PS: hint: (check the sajax_uri var that you hardcoded)
PPS: not sure why you're posting this here…totally different topic.
|
|
|
|
|
Guest
| Roy 1:13 am January 19, 2012
| |
|
|
Olala!
I resolve the problem with missing success message.
Well… You should fill the "Admin email adres(es)" in "Core Form Admin / Email Options" in "Form Settings" and it works.
Good luck.
I have WP 3.3.1
and cformsII 11.9
|
|
|
Guest
| knysha 8:05 pm February 8, 2012
| |
|
|
Couldn't find the solution…
Finally I've used jQuery to enter text into succes div…
var $j = jQuery.noConflict();
$j(document).ready(function(){
$j('#id_of_success_div').html('Thanks for submiting! We'll contact with you shortly!');
});
|
|