Simple Select All Text Box – WordPress Plugin

Here’s another simple WordPress plugin I came up with.  I was trying to figure out an easy way to create a text box for some song lyrics which, once clicked, selected everything inside so anyone could easily copy and past the contents.  Well, once I figured out how to make it I figured I would make it easier for others who want to do the same thing.  Hence, Simple Select All Text box was born.

Basically with a simple shortcode in a post or a page you can have your very own one click, select all text box.  Here’s how it works:

  • To create a text box in a post or a page use this shortcode: [textbox rows="3"]Contents of text box[/textbox] You can obviously change the amount of rows to your liking. If rows aren’t specified it will default to 5 rows.
  • To create a text box in the sidebar, header, footer, etc. use this template tag:
<?php simple_select_textbox('# OF ROWS','WIDTH IN PX','BOX CONTENT') ?>

Installation:

  1. Upload the whole simple-select-all-textbox folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to the options page to adjust the width of all text boxes made using this shortcode.

Screenshots:

Options menu

Download

Changelog:

Version 1: It Begins

Version 2 (3/8/11): Fixed bug which wouldn’t allow multiple instances of the textbox on one page.

Version 2.1 (3/9/11): Fixed bug which showed default HTML markup in the textbox.  Expressly writing HTML in the visual editor will still show in the textbox however.

Version 2.2 (7/22/11): Added support for nested shortcodes and added class to textboxes for styling. Also renamed some variables to more unique names to avoid conflicts with other plugins.

25 Comments on “Simple Select All Text Box – WordPress Plugin” Comments RSS Feed

  1. thanks dude! I just looking for this plugin, thanks

  2. Jeff Hester says:

    This is great!

    I’m having one small problem with this. I’m trying to create a snippet of BBcode in one of the boxes, but instead of blank lines, I’m getting and codes added (not valid BBcode).

    You can see this in action on this page: http://socalhiker.net/2010/04/hiking-the-roller-coast-ridge/

    The html tags are not in my editor, but when I save the page, WordPress is adding them. Any suggestions?

  3. Hi.. thx for the sharingg..
    i will use it for sure
    -chandra ekajaya

  4. mark says:

    I have problems with this plug-in
    it will display wrong (“)
    so if you would like to post
    “http://pinoyfestival.com/”
    it will show
    ”http://pinoyfestival.com/”

    and codes you display won’t work like this

  5. Natalie says:

    Is it possible to use multiple times on one page. I am trying to put a lot of seperate code on one page and it gives me an error code if I put in more than one box. Tips? Thanks for the plugin!

  6. Matt Williams says:

    Hi,

    Very nice plugin. Perfect for what I need.

    I have a form that generates HTML for users. This HTML page needs a nice text box like yours where users may click quickly and copy the code. I am trying to place it in the page template so that the HTML displays inside your textbox.

    I need this somehow to be in the ‘CONTENT’

    1))); ?>

    How would I do that?

    Thanks for your help.

  7. Hey, I really love this plugin but its not allowing me to post more than one box on a single page… I have read that this was an issue before but I have the latest version of this plugin and its still not working for me… maybe I’m missing something. Any tips would be great!

    Thanks,
    Ashley

Trackbacks/Pingbacks

  1. [...] Eklenti Ana Sayfası Etiketler: All, Box, Select, Simple, Simple Select All Text Box, Text  [...]

Leave a Reply