WordPress.org

Support

Support » Plugins and Hacks » SpeakUp! Email Petitions » [Resolved] Different succes message

[Resolved] Different succes message

Viewing 1 replies (of 1 total)
  • Plugin Author Kreg

    @kreg

    The settings for those messages are global, but you could hard-code your values with PHP. This is untested, but for the success message, change includes/ajax.php line 62 which reads echo $success_message; to something like:

    if ( $the_petition->id == 1 ) {
    	echo "My success message";
    }
    else if ( $the_petition->id == 2 ) {
    	echo "My other success message";
    }
    else {
    	echo $success_message;
    }

    and for the confirmation mails, change class.mail.php, line 21 which reads $message = stripslashes( $options['confirm_message'] ); to something like:

    if ( $petition->id == 1 ) {
    	echo "My confrimation message";
    }
    else if ( $petition->id == 2 ) {
    	echo "My other confrimation message";
    }
    else {
    	$message = stripslashes( $options['confirm_message'] );
    }

    The numbers 1 and 2 should be changed to whatever the ids of your petitions are. And the “quoted” text should be changed to whatever you want your new messages to be.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Different succes message’ is closed to new replies.
Skip to toolbar