| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Random WittyText

This version was saved 18 years ago View current version     Page history
Saved by PBworks
on March 22, 2006 at 12:03:31 pm
 

General

 

*Note!* This page is about Witty Text, however WP Quotes is a more sophisticated plugin that uses stores the quotes in your SQL database, has a sexy interface for adding quotes and can do more overall.

 

This is probably the simplest WordPress plugin there is in existence. I could be wrong, of course. This simple plugin will fetch a random quote from a text file and display it pretty much anywhere on your WordPress site.

 

Installation Instructions

 

  1. Download and extract.
  2. Upload witty.php to /wp-content/plugins/ directory.
  3. Edit/insert your own quotes into witty.txt and upload it to /wp-content/. Every new line in witty.txt is a new quote … check the included file to see what it should look like. FYI, if you chmod 666 witty.txt after uploading it you will be able to edit it from within WP interface later. You can put witty.txt anywhere on your site, but you will have to edit plugin code accordingly.
  4. Enable the plugin.
  5. The plugin is called using:

 

Multiple Instances

 

Although the plugin doesn't support multiple quote files, this limitation is very easy to get around although it will require you to manually edit the plugin.

 

  1. Create a copy of the plugin w/ a slightly different name. For example, witty2.txt.
  2. Change the function name to witty2 or similar, so that it makes sense.
  3. Change the name of the text file it calls, witty2.txt seems like a good idea ...
  4. Voila, you now have a second text file of witty quotes you can call using a separate funtion. Activate the plugin, populate the file with infinite wizdom and you should be all set.

 

Adding multiple file support would be easy, but that would be overkill for this plugin in that case it would be better to use a SQL database, which was already done.

 

Download

 

WP WittyText

 

Older Versions

 

WP WittyText 1.0

Comments (0)

You don't have permission to comment on this page.