Forum Replies Created

Viewing 15 replies - 46 through 60 (of 255 total)
  • Plugin Author Kreg Wallace

    (@kreg)

    I believe the problem is that in carlitoscapote’s code sample, the petition class was included, but never instantiated.

    I’ve added the necessary code with slight modification to the top of the emailpetition.php. This update is currently available only in the dev (or master) version of the plugin, which is now available on GitHub: https://github.com/kregwallace/speakup-email-petitions

    Plugin Author Kreg Wallace

    (@kreg)

    I’m not sure what is happening there, but your site does throw several JavaScript errors that may be blocking normal page function. Chrome points out that Object #<Object> has no method 'swing' and in Firefox, when you click the petition widget button, it complains that v.easing[this.easing] is not a function.

    The petition plugin doesn’t make use of any of the easing or swing methods of jQuery or jQuery UI. The image/story carousel at the top of your page does appear to use these methods. You might try disabling that carousel for a moment to see if the problems with the petition clear up.

    Plugin Author Kreg Wallace

    (@kreg)

    New petitions can only be created from the back-end. To create a petition, a user needs ‘publish_posts’ permission, which in WordPress user roles translates to needing to have an ‘Author’ role or higher.

    Plugin Author Kreg Wallace

    (@kreg)

    Hi vintager,

    That option doesn’t yet exist in the plugin, but I’ll put it on the list of features to add..

    Plugin Author Kreg Wallace

    (@kreg)

    You should get a copy of PoEdit to make the changes.

    Basically, the file you edited is not directly read by WordPress. WordPress is reading from dk_speakup-de_DE.mo. Files with the extension .po can be edited to change the translations, but then they have to be compiled. The compiled file will have a .mo extension.

    Using PoEdit, you can edit the .po file and when you click save, a new .mo file will be created. You may then place both the .mo and .po files back on your server in the languages folder and things should work as expected.

    If you have improvements to the translations, please send them to me so that I can include them in the plugin for others to use. I can be reached at kreg [at] designkode.com

    Plugin Author Kreg Wallace

    (@kreg)

    I don’t really have an answer for that question. The plugin uses the wp_mail() function to send email. This doesn’t produce properly formatted SMTP mails.

    I’ve suggested using WP Mail SMTP plugin in some cases, as this plugin produces the proper SMTP headers and gets around the problem of a few email hosts, like hotmail rejecting the confirmation emails.

    I’ve only used WP Mail SMTP with the default settings, but maybe if you dig in there it will have some options for doing what you want with gmail. Not really sure how to set that up though or what the results would be.

    Plugin Author Kreg Wallace

    (@kreg)

    The greeting was taken out when the ability to directly edit the petition message within the form was added.

    You can put it back in by editing includes/emailpetition.php, line 130 from this:

    <div class="dk-speakup-message" ' . $height . '>' . stripslashes( wpautop( $petition->petition_message ) ) . '</div>

    to this:

    <div class="dk-speakup-message" ' . $height . '>' . stripslashes( wpautop( $petition->greeting ) ) . stripslashes( wpautop( $petition->petition_message ) ) . '</div>

    Plugin Author Kreg Wallace

    (@kreg)

    There’s not an automated way to do this, but you could turn off the email sending by selecting “Do not send email (only collect signatures)” when you create the petition. Then when you are done collecting signatures, you could manually add the signatures to an email and send that using your regular email client.

    Plugin Author Kreg Wallace

    (@kreg)

    To use a dropdown for countries on the shortcode form, edit includes/emailpetition.php, changing lines 107-108 which look like this:

    <label for="dk-speakup-country-' . $petition->id . '">' . __( 'Country', 'dk_speakup' ) . '</label>
    <input name="dk-speakup-country" id="dk-speakup-country-' . $petition->id . '" maxlength="200" type="text" />

    to something like this:

    <select id="dk-speakup-country-' . $petition->id . '">
    	<option value="Australia">Australia</option>
    	<option value="New Zealand">New Zealand</option>
    </select>

    Just keep adding more option tags to the list for each country you want to include.

    For the cities, you probably don’t really want to do this because there are an awful lot of cities in each country and providing options for each one would take forever. But if you wanted to try, I’d suggest searching Google for something like ‘javascript poppulate select box’. You’ll find lots of tutorials on how to do this.

    Plugin Author Kreg Wallace

    (@kreg)

    The idea of petition.css is to provide a way to use a custom CSS theme for your petitions that will remain in place after updating the plugin to a newer version.

    When you want to use a custom theme, the procedure is to go to the plugin’s Settings page and select “None (use petition.css)” for the Petition Theme option. You can then copy the CSS theme from the plugin’s CSS folder (using either theme-default.css or theme-basic.css as your starting point). Copy the file to your theme folder and rename it petition.css. Now you can edit the styles in this file as you wish.

    It appears that what you did is select “None (use petition.css)” and then placed your CSS style for the petition in your theme’s styles.css file. This is fine, but you need to be sure to copy all of the styles from the source theme CSS as some of these control the fuctionality of the petition.

    For instance, styles like .dk-speakup-focus and .dk-speakup-blur are used to hide and show different parts of the theme form based on user interaction.

    Plugin Author Kreg Wallace

    (@kreg)

    This isn’t really possible with this plugin as it currently stands. You’d have to rewrite a lot of the way the plugin works to make this happen. Hopefully I’ll be able to provide an option for something like this on a future release.

    Plugin Author Kreg Wallace

    (@kreg)

    Have a look at this thread.

    Plugin Author Kreg Wallace

    (@kreg)

    Looks like the shortcode form has a maxlength="200" set on the custom field. You can change this to a higher number in includes/emailpetition.php on line 116.

    Plugin Author Kreg Wallace

    (@kreg)

    Try installing the WP Mail SMTP plugin. There’s a little more info on the FAQ page.

    Plugin Author Kreg Wallace

    (@kreg)

    It may be that the site is still sending the emails but your mail host is not receiving them. Try installing the WP Mail SMTP plugin, which can help with getting email to hosts that like to reject email sent by WordPress (like AOL and Hotmail). You could also try having your copy of the email sent to a second email address (on a different host) and see if they start showing up.

Viewing 15 replies - 46 through 60 (of 255 total)