Quick Tag Manager is a revolutionary plugin that add many "quick tags" to your blog, used to enhance your posts or pages. Or to add special functions to them.

Click here download Quick Tag Manager from Wordpress site.

Quick tags are things like this: [x:tagname parameters] which are intercepted by the manager. The manager then calls the tag function which can produce someting simple or complex. For example a tag like [x:video type="youtube" id="736472"] embed the video identified by "736472" from YouTube. But may be you need to specify a width for the video different from the original, it's simple: [x:video type="youtube" id="736472" width="250"].

The Quick Tag Manager intercept the "t:" prefix, so to use the examples change "x:" to "t:".

Available quick tags

Download tag (new)

Still experimental, this tag display a link to a file to be downloaded and count the number of downloads. It doesn't use the database to store the download counts, but a file.

Files have to stored in the "downloads" folder under the "wp-content" folder. Make the folder and upload the files with FTP or a file manager.

Syntax

[x:download file="filename.pdf" title="a tag the link text" text="the link text"]

The 2008 foot calendar (293)

Form tag (new!)

This tag and the subtags text, textarea and submit, lets you to write a generic contact form. It is very trivial and basicbut it works. Remeber to configure in the options page the send for email generated by the form.

When the user submit the form, an email will be sent to the address configured in the option page.

Syntax

[x:form to="satollo@gmail.com" subject="Contact from Working with Toes" thanks="Thank you..."]

Your name: [x:form_text name="name"]

Your email: [x:form_text name="email"]

Your message:
[x:form_textarea name="message"]

[x:form_submit label="Send"]

[/x:form]

Email tag

Email tag is used to collect email address. When you have a tutorial and would the users to download it not directly but via a secret link emailed to them, how can you do it? It's simple with an email quick tag.

Set up a page "to sell" your work and at end ask for the user email address followin this example:

[x:email subject="Here my tutorial" message="Thank you for this request, \n\nfollow the link http://... to download the tutorial.\nBye." label="Your email address" button="Send" from="info@satollo.com" thanks="Thank you, check your mail box!" file="noteasytoguessname"]

Your email address

In the message text, \n and \r are converted in real line feed and carrige return. The file name is a file where the collected email addresses will be stored. The file is created in the email tag directory.

Include tag

Include quick tag includes an external file, even a PHP script, in the current page or post. I use this tag to build special features for my blog, inserting them in the "blog template".

[x:include file="file name"]

The file is loaded from the "includes" subdirectory of the include tag directory.

Video tag

Video quick tag let you to insert a video from YouTube, Meta Cafe and Google Video. Using the tag is very simple: go to the video page and copy the url of the page in the "url" attribute. Remeber to remove the http and www prefix, because, with Interbet Explorer, the text will be transformed in a link and the tag gets wrong.

[x:video url="metacafe.com/watch/887351/crazy_experiment/"]

or

[x:video url="youtube.com/watch?v=GvG1i1RmWhs"]

or

[x:video url="video.google.com/videoplay?docid=1241268726832843530"]

Gallery tag

The gallery quick tag takes all the images (jpg) it find in a folder, resize them to generate some thumbnail (with PHPThumb), and make the original pictures visible to the Lightbox javascript library.

Example:

[x:gallery folder="wp-content/galleries/anime"]

The folder is "relative" to the blog root. See the blog for examples (they are nice too :-)

How to write a quick tag

Firstly a look to the plugin files structure

quick-tag-manager
-- common (some javascript and PHP libraries)
-- tags
---- video
---- email
---- include
---- gallery
---- other tag
  1. create a new directory in the tags directory of the plugin, naming the dir with the same name of you new tag (letters and underscores allowed)
  2. create a tag.php file in that directory with a function called qtm_tag_[tagname](&$attrs, &$body, &$options)
  3. write the body function that has to return a string: the tag in the post will be replaced with this string

The $attrs associative array contains all the tag attribute. The $options associative array contains all the options (see next paragraph). The bosy is a text with the body of the tag, when used in his full format:

[x:tag] ...body... [/x:tag]

Options management

Some tags need options to be specified in the administrative panel. If so, in the tag directory, add an options.php file. See an existing options.php file to make yours. There are some function to create input field which help the developer.

To avoid options conflict, is better to add to option names the tag name, as "video_". The complete option name must be: "options[tagname_optionname]". For example, the video default width is called: options[video_width].

The options array passed to the tag function contains ALL the options. Why? Because there are correlated tags which need the option of each other.

4 Responses to “Quick Tag Manager”

  • getting error message

    some now the functions are not regitering

    Fatal error: Call to undefined function qtm_tag_video() in C:\wamp\www\wordpress\wp-content\plugins\quick-tag-manager\plugin.php(128) : eval()’d code on line 1

    harry on
  • i’m working on a new version, something is getting wrong. But, to who downloaded the versione linked here, plese get the version on the wordpress extend area!

    Thank you!

    admin on
  • find this plugin not long ago, very usefull for my blog. great thanks for developers!))

    Dmitry on
  • find this plugin not long ago, its very usefull for my blog)) thanks 4 developers=)

    Dmitry on

Leave a Reply