cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Success message not showing
July 17, 2011
5:25 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

good catch. after-all that's what a great user group is for ;-)

 

it'll be added in cforms v12.0. released later today.

July 21, 2011
9:26 am
andré
Guest

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

July 21, 2011
12:30 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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.

July 27, 2011
10:03 am
André
Guest

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

July 27, 2011
7:01 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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;      
   }
}

August 2, 2011
9:25 am
André
Guest

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.

August 6, 2011
7:54 am
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

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;


* Paul Silter
October 2, 2011
1:01 am
Ömür Ertanış
Guest

İ 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>";
 }

October 15, 2011
7:13 pm
J's logical
Guest

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..

January 3, 2012
8:50 am
gray
Guest

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?

January 11, 2012
2:35 pm
Valeri
Guest

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.

January 11, 2012
5:34 pm
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

…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.

frown 

Paul.

 

PS: hint: (check the sajax_uri var that you hardcoded)  

PPS: not sure why you're posting this here…totally different topic. 

* Paul Silter
January 19, 2012
1:13 am
Roy
Guest

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

February 8, 2012
8:05 pm
knysha
Guest

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!');

});

November 24, 2012
11:43 am
Mehdi Hakimi
Guest

Hi,

The "missing Success message" and "Not sending email" errors got me Crazy! and i Uninstall all my Cforms II

then clean the databases. and restart to make first form.

it worked correctly. (without any customization)

step by step i checked. and found that when i change the "Sender" email box to {_field3} (the field number that user writes his/her email address) the success message GONE!

so i changed {_field3} to {EMAIL} (the email box name)

(in Form settings > Admin Email Message Options > FROM: email address

and it`s working :))

1-I had doubt may CformsII have conflict by worpress JetPack Plugin too.

2- if you have seem missing success error > and required fields error shown correctly so there is a problem in sending mail. not in whole plugin. try to find why mails not send.

3- dear developers, please add a error log, for administrator. to send me alerts, when form had problems. I use the Plugin in commercial website, and when i lost some message i had lost some bucks :))

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3761

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5358

Posts: 18739

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)