SpeakUp! Email Petitions
[resolved] Different succes message (2 posts)

  1. neuroine
    Posted 2 years ago #

    Is it posible to add two pettitions with different Success Message and Confirmation Emails on one site?
    I suppose duplicate plugin might works, but i'm looking for the best way to solve this problem.


  2. Kreg
    Plugin Author

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SpeakUp! Email Petitions
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.