WordPress.org

Ready to get started?Download WordPress

Forums

SpeakUp! Email Petitions
[resolved] Increasing Number of Target Emails (8 posts)

  1. AndrewHartwell
    Member
    Posted 2 years ago #

    There seems to be a character limit of around 300 when putting in target emails, which is preventing my petition from reaching everyone I want it to. Is there an easy way to change this in the code by adjusting some number somewhere? Or is the problem more complicated than that? Any help is appreciated!

    http://wordpress.org/extend/plugins/speakup-email-petitions/

  2. Kreg Wallace
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, the character limit is 300.

    To change this, you'll need to use PHPMyAdmin to edit the data type of the 'petition_email' field in your *dk_speakup_petitions database table. It's set to varchar(300) by default. Change that number to whatever you want.

    Then you'll need to open up /includes/admin-edit-view.php. Look at line 154, where a maxlength for this input field has been set to 300. Match this number with the new length of the field in the database, or simply remove the maxlength attribute entirely.

  3. AndrewHartwell
    Member
    Posted 2 years ago #

    That worked like a charm, thank you!

  4. mastrigt
    Member
    Posted 1 year ago #

    I can't find /includes/admin-edit-view.php :-(
    Somebody able to tell me where to find it?

  5. mastrigt
    Member
    Posted 1 year ago #

    Resolved!

  6. Kreg Wallace
    Member
    Plugin Author

    Posted 1 year ago #

    admin-edit-view.php has been renamed to addnew.view.php and the maxlength value you need to change is now on line 80.

  7. beewinter
    Member
    Posted 1 year ago #

    Can you walk me through updating the right table? In my PHPMyAdmin, I only see tables prefixed with wp_...

    wp_commentmeta
    wp_comments
    wp_links
    wp_options
    wp_postmeta
    wp_posts
    wp_terms
    wp_term_relationships
    wp_term_taxonomy
    wp_usermeta
    wp_users

    Where can i find the *dk_speakup_petitions table?

  8. Kreg Wallace
    Member
    Plugin Author

    Posted 1 year ago #

    @beewinter,

    The asterisk in the table name is just a placeholder for whatever your database table prefix is set to. In your case, the table you are looking for would be called wp_dk_speakup_petitions.

    This table should be created when you install and activate the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic