This plugin/widget lets you add and show random quotes to your WordPress blog with ease. The plugin uses MySQL to store quotes.
You can specify an image for each quote, default image for quotes, and the option to disable images altogether.
Installation
This section describes how to install the plugin and get it working.
1. Upload directory «xmasb_quotes» to the `/wp-content/plugins/` directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Add the widget to your sidebar
4. That’s it!
By default the plugin looks for an image in the folder named «images» with a name that matches the author and extension «.gif», eg. if the author is «Bart», the plugin will look for the file named «bart.gif». If an image is found it is used, else the quotes is shown without an image or default image if specified.
You can add, edit and delete quotes under Edit – XmasB Quotes.
The options for each quote:
Quote – The actual quote.
Author – The author of the quote. This is optional.
Image – The image to be used. If left blank, the name of the author will be used to search for an image. If not found, and default image is specified, the default image will be used.
Visible – Set this to «No» if you want to hide a quote without deleting it.
Set more general options under «Options – XmasB Quotes».
Options available:
Show Images – Uncheck this to disable images shown with quotes.
Default Image – If specified this image will be used if no image is found for author or specified image for quote. If left blank, quotes without images will not show an image.
Show link to author – Shows a link to xmasb.com and my plugin in the widget. Turn off if you want to.
The title for the Widget is set directly in the Widget under «Presentation – Widgets».
Title – The title to show with the Widget. Default is XmasB Quotes.
For easier management of version and statistics the plugin is hosted at WordPress.org.
This blog is using the Widget as you can see to the right.
You can also take a look at at the readme file for the plugin (XHTML formatted).

Hi!
I am wondering if this has been mentioned before, I had this working and then I changed so now I have a child theme of thematic that I am developing on a subdomain, the images don’t seem to be working now, well, none of my quotes currently have images but I kind of expected the default.png to show in every quote, yes? I have not changed any settings from your default installation. Do I have to set paths or something?
Sorry for the late reply on this. I will test this as soon as I can. I use a child theme of Arras myself, but have turned images off, so it could be that I forgot to test this.
I will look more into this, and update accordingly. I have some other things to add as well.
I found a bug in my code. Should be fixed in version 1.5.4.
Thanks Yngve, works like a charm now!
Hello,
Love this widget! I don’t know if its possible, but is there any way to change the font color to white?
Any help would be greatly appreciated
The easiest way to achieve this is by editing the xmasbquotes.css file that comes with the plugin/widget.
Just add add «color: white;» like this:
.xmasb_quotes_quote {padding-top: 0px;
padding-bottom: 0px;
padding-left: 10px;
padding-right: 10px;
color: white;
}
I see that this could be done better. If I find time I will update the plugin with an option for editing this in the settings. As of now it should just whatever settings your WordPress installation uses.
I am also going to add an option for using the same widget multiple times on a single blog, something you might have interest of?
Could you please add a feature to this that allows you to add the rotating quote in a post via a short code or include? It’d be appreciated!
Thanx,
Dee
I’m pretty sure this is possible already. I’m on a vacation now, so I’m unable to investigate, but will check when I get home.
Hi Yngve!
I just translated the plugin to Swedish if you would like to add it to the language folder
Email me back and I´ll send them in an email to you!
Cheers Scott
Thank you, Scott! I have sent you an email you can reply to.
Hi, I love the plugin, but I was wondering, are only people with administrator rights able to add quotes? I wouldn’t want to give the authors admin rights just for that…
Thanks!
Julia
Glad you asked. I’ve just released version 1.6 that should sovle this for you by adding an option for setting which roles have permissions. Default is administrator, but you can now choose between Administrator, Editor Author and Contributor.
Hello, I’ve been using your lovely plugin for some time, and I know when you upgrade you have to reload the images back into the images directory. But this time, when I added the images back in, they are not visible. I’ve tried added a default image but that doesn’t work and also tried creating completely new quotes.
Can you help?
The site is http://www.h2index.com and the quotes appear in the right hand column as Clients Comments on every page except the home page.
Hi Sophie,
are you specifying the url for each quote, or using the default behaviour for finding images by their «author»?