Quotes Collection
Latest version: 1.2.3 (Updated on 8 November 2008)
Download | Screenshots | Installation | Localization | Changelog | Comments
Quotes Collection plugin with Ajax powered Random Quote sidebar widget helps you collect, manage and display your favourite quotations on your WordPress blog. All quotes or a set of quotes can also be displayed on a page using a [quote] tag. The plugin is similar, and uses ideas from (though not based on) the wp quotes plugin by Dustin Barnes. Visit my quotes collection to see this plugin in action.
Main features
- Random Quote sidebar widget with Ajax refresh feature — you will be able to get another random quote on the same space without refreshing the web page. You can check it right here on the sidebar. This refresh feature can be optionally turned off in the widget control panel. The widget also comes with few other options in the widget control panel.
- A nice admin interface to add, edit and manage quotes.
- Additional information that can be provided along with the quote: quote author, source (e.g., a book, or a website URL), tags (keywords) and visibility.
- Quotes can be displayed in a page using one of the code (quick tags) below.
- The tag
[quote|all]displays all quotes. [quote|author=Somebody]displays quotes authored by Somebody.[quote|source=Something]displays quotes with source as ‘Something’[quote|tags=sometag]displays quotes tagged sometag (new with 1.1)[quote|tags=tag1,tag2,tag3]displays quotes tagged tag1 or tag2 or tag3, one or more or all of these (new with 1.1)[quote|id=3]displays quote with ID 3[quote|random]displays a random quote
- The tag
- The PHP code
<?php quotescollection_display_randomquote() ?>can be used to display a random quote in places other than sidebar. - Support for localization. (new with 1.1)
Screenshots
1. Admin interface (in WordPress 2.5)
![]()
Click on the image for a larger version
2. ‘Random Quote’ widget options

3. Random quote as can be seen in the sidebar of my website

Download
Latest version: 1.2.3
Requires atleast WordPress version 2.1. Tested upto WordPress 2.7.
Downloaded a total of 2641 times
Released for free under the GPL.
If you like the plug in, please consider making a donation to support development. Any amount will be thankfully accepted. Click on the button below to donate.
Installation
- Unzip and upload the `quotes-collection` directory to the `/wp-content/plugins/` directory
- Go to `WP Admin » Plugins` and activate the ‘Quotes Collection’ plugin
- To add and manage the quotes go to `WP Admin » Manage » Quotes Collection` (or `WP Admin » Tools » Quotes Collection` depending on the WP version you are using).
- To display a random quote in the sidebar, go to `WP Admin » Presentation » Widgets` (or `WP Admin » Appearance » Widgets`), drag ‘Random Quote’ widget into the sidebar
Localization
Versions 1.1 and greater support localization. As of 1.2.3, localization is available in the following languages.
| Code | Language | Translator |
|---|---|---|
| ar | Arabic | Ahmed Alharfi |
| de_DE | German | Tobias Koch |
| es_ES | Spanish | Germán L. Martínez (Gershu) |
| fr_FR | French | psykotik |
| it_IT | Italian | Gianni Diurno (aka gidibao) |
| pl_PL | Polish | Marcin Gucia |
| ru_RU | Russian | Andrew Malarchuk |
| ta_IN | Tamil | Srini |
| tr_TR | Turkish | Gürkan Gür |
| uk_UA | Ukrainian | Stas |
If you can translate the plugin in your language, please do, and please send me the localized file so that I can add to the next version of the plugin. The localization template file (quotes-collection.pot) can be found in the ‘languages’ folder of the plugin. If you want to translate the plugin in your language, but are not sure how to go about doing it, contact me, I’ll help you out.
Feedback
Please report any defects you may find with this plugin using the contact form or as a comment here. All feedback and suggestions welcome.
Change Log
2008-11-08: Version 1.2.3
- Added Ukrainian translation (thanks to Stas for the translation)
- Tested the plugin for the new admin interface that comes with WordPress 2.7 and a few tweaks. The plugin will work just fine in older WP versions
2008-10-06: Version 1.2.2
- Security fix, HTML tidy fix, other fixes
- Updated Turkish trasnlation
2008-09-24: Version 1.2.1
- Arabic translation added
- Minor fix (quotes-collection.js: errotext -> errortext)
2008-09-22: Version 1.2
- All javascript code moved to quotes-collection.js. This makes the code neater.
- Translations for French, Polish and Turkish languages added.
- Italian and Russian translations updated.
- A few minor fixes and small improvements.
2008-07-02: Version 1.1.4
- Bug fixes. The plugin was not handling properly apostrophes in author and source fields. This is fixed now.
- Other small fixes.
2008-06-05: Version 1.1.3.1
- Added Spanish translation.
- Updated Italian translation.
2008-06-01: Version 1.1.3
- Improvements
- Updated German translation
- Added Russian translation
2008-05-28: Version 1.1.2.1
- VARCHAR(256) -> VARCHAR(255) (VARCHAR(256) doesnt work with MySQL 4.0)
2008-05-28: Version 1.1.2
- Modifications in the automatic database update functionality
- Fixed problem with German translation
- Added Italian translation
2008-05-25: Version 1.1.1
- security fix
2008-05-25: Version 1.1
- Tagging feature
- Internationalization
- Fixes and improvements
2008-03-11: Version 1.0
- Compatible with WordPress 2.5
- Bug fixes and various other improvements
2008-02-06: Version 0.9.5
- Fixed problem with non English characters in author names while using the tag
[quote|author=]
2008-01-16: Version 0.9.4
- Support for utf-8 characters
- Fixed problem with linebreaks
2007-12-19: Version 0.9.3
- Fixed a JavaScript issue
- Removed unnecessary
<h2></h2>tags above random quote when title field is left blank in widget control options.<h2>tags displayed only when there is a title.
2007-12-18: Version 0.9.2
- Provision to add random quote anywhere in the template.
2007-12-16: Version 0.9.1
- Bug fix
2007-12-15: Version 0.9
- Initial release

Someone mentioned a “Quote of the Day”, but what I’d like to see is a “Today in History” plug-in…or maybe a way to adapt this plug-in?
Thanks.
Hi, I’m using Random Quote and I’m having an issue using to display on my sidebar. It seems if I use this method, my first quote comes up and it doesn’t show the quote source. If I hit “next” it refreshes and then displays the quote and source properly.
I’m using conditional statements to display Quotes everywhere on my site EXCEPT the homepage, so I don’t want to use the widget.
By the way, the widget works fine! Is there any way to prevent the “next” link using the php line instead of the widget?
david, thanks mate!!!
Barb, I have no idea why this occurs
. But looks like it has something to do with the way MySQL database is configured in your server / hosting account.
Derek, “Today in History” plugin is a nice idea… may be, such a plugin exists already. But I’ll think about it and see if I can develop this idea. Thanks.
shamefulcinema, there could be a problem with the plugin. I will check it up and get back. Thanks for the feedback.
Srini, there’s no problem with the plug-in really. I went in and edited it so that is produced my desired display when using to display the quotes.
I just adjusted the code here in quotes-collection.php:
function quotescollection_display_randomquote($show_author = 0, $show_source = 1, $ajax_refresh = 0, $random_quote = array())
… that prevents the Next display and defaults to showing source, no author.
I didn’t see anything in the docs regarding this configuration option, so I apologize if it was there and I missed it. The plug-in really works great now. It’s just perfect really.
-Andy
Hi Srini,
I am not using sidebar widgets in my blog. I inserted “quotescollection_display_randomquote” function call in my sidebar. Though the quote was displayed, the “next quote” link was not working. I found that the javascript link was added to the header only when the widget is used. I had to insert the code “add_action(’wp_head’, ‘quotescollection_js_head’ );” next to “if($ajax_refresh == 1) {” and then alone the link started functioning.
Please fix this bug.
Also please try and gettext the strings of the code and give a .pot file, so that I could localize it.
Right now I have hard-coded a couple of strings that appear on the viewer interface in Tamil.
You can view it here:
http://kichu.cyberbrahma.com/
Thanks for the plugin.
S.K
I’m having the same problem as Barb. Whenever I click to add a quote I’m directed to a blank Manage page with nothing saved. I’ve checked all through my database, everything seems great, no other plugins are giving me beef. Thanks
-JakJak
S.K, thank you very much for the suggestions. I will soon fix the bug you mentioned. Thanks again!
Srini,
Very nice of you!
S.K
How about using…
$cleansource = stripslashes($source);
so we can put HTML into the source field and later edit the field without having it get messed up.
I want to use to only display random quotes from a particular source. I’ve tried several variations on and it doesn’t work. I’m new to PHP, so I’m probably doing something wrong. Any suggestions? I’d also like to second Tommy’s request for using tags. Thanks.