WordPress.org

Ready to get started?Download WordPress

Forums

Simple Select All Text Box
Multiple textbox in same post (4 posts)

  1. American2020
    Member
    Posted 2 years ago #

    How can I add more than one textbox in same post, and autoselect working for each of them.

    Thanks.

    http://wordpress.org/extend/plugins/simple-select-all-text-box/

  2. American2020
    Member
    Posted 2 years ago #

    Well, I came out with a solution. Till I thinking in something better, this will work ok.

    I changed this line in simple-select-all-textbox.php (Wich wasn't really unique, bc having more than 1 textbox in same post, would give them all the same number... so)

    //generate unique ids for each textbox
    $post_id = get_the_ID();

    I changed for:

    //generate unique ids for each textbox
    $post_id = rand(0,999999);

    Only few in millions the chance of getting twice the same numbers.

  3. grimmdude
    Member
    Plugin Author

    Posted 2 years ago #

    Hi there,

    This is fixed with the new version; 2.3

    -G

  4. American2020
    Member
    Posted 2 years ago #

    Thanks Grimmdude :) The Plugin is getting better :) Hope you also add some "Copy to clipboard" functionality, and a "Select All" option above the Textbox. Those 2 functions will also be very useful.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic