XmasB Quotes
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.
Stumble it!
Thanks for this great plugin: I see the random quotes and the authors, but not the images… I guess I do something wrong: I do put the complete HTML IMG tag, am I right?
Only the name of the picture file should go in the field for picture. if you have picture for Homer Simpson called “homer.jpg”, than “homer.jpg” is what you should type in the field. The image must off course be in the images folder.
Hello! I do not want the quote to pull into the sidebar, but rather, into a special place in the footer. Therefore, I do not want to add the widget but want to pull the quote in manually. Can you please tell me what the code snippet is for me to place in my footer? Thank you! I love this app!
Oops, never mind! I forgot I already asked you this and I looked back through the comments and you’ve answered. Thank you, I just tried it and it works perfectly. You’re the best!
How do i get rid of the quotation marks that appear with the quotes ?
I’ll have to look into it, Vince. If I remember correctly they are hard coded, so you must probably edit the code.
I’ll look into it, but won’t be able to respond before next week I’m afraid.
It’s nice to have IMAGE with Quote .
Thanks for your great idea .
I wonder if I could quote in Chinese , in the future .
(I issued the Chinese in the image)
Works great, thank you
New version (1.3.2) is out. Thanks to Fat Cow for the translation to Belorussian.
How to add this plugin to the sidebar??
Is it ? Appearance >> Widgets
Or does it have any php code?
Sorry for the late respond. you should find a widget named XmasB Quotes under Appearance >> Widgets. You can also edit the title for your quotes there.
I love this plugin but since I’ve updated it, I”m getting the little quotation marks around the text and I would like to remove those, as I”m not using it for “quotes.” I’ve looked in the code but I’m not finding the proper area to remove them. Can someone help? Thank you!
Take a look at the options under “Tools” and “XmasB Quotes”. There you should find fields for setting what should be printed before and after image, author and quote. Default is to use quotes around, well, the quote.
My blog uses url rewriting. http://www.blog.com/wordpress published as http://www.blog.com.
Plugin doesn’t work.
I added wordpress at start of $plugin_path and replace get_option(“siteurl”) by get_option(“home”). A very bad way … think you can do better. Thanks.
Hi – I haven’t been upgrading the plugin because it used to wipe out all of my quotes that I added. Does it still do this? Thanks for the info!
@Davin
This was fixed a while ago. I use the automatic upgrade on this blog for every new version I put out.
@Davin
) Kjetil
No – not if you keep a copy of your old plugins/xmasb-quotes/images folder.
So based on this advice, I went ahead and upgraded to the latest version. My quotes weren’t deleted. But my pictures were!! Any way to recover those??
@Davin
Except from a backup? I’m sorry to say no. I was sure the folders wasn’t overwritten, but this obviously isn’t the case. I will look into it and update as soon as I find a solution.
I have several thousand quotes on this page, with very few pictures, so I haven’t noticed that the image folder was indeed overwritten. My fault for not checking properly.
Hello
Tried your plugin. Could be really nice but problem with images. I usually use an external image bank (flickr) but your plugin would not accept an url.
So I tried as you mention it to upload the images inside my blog. Tough luck ! The plugin doesn’t find the image either. I tried with the name of the picture alone, the url, everything I could think of.
I know I should be editing your code, but javascript is too difficult for me.
Is there a simple way to have your plugin simply pick a URL for the image ?
@Peter
The plugin searches for images in the “images” folder. If noe image is specified for a quote, the plugin searches for an image with the same name as the author. If this is not found, the default image is used.
If you specify an image, the image must reside in the “images” folder, and the image specified must include file extension. I hope this helps.
I’ve been meaning to update the plugin for easier management. Hopefully I will find time soon. Thanks for using my plugin.
Thanks for answering.
I guess the right folder is the xmasb-quotes/images folder ?
(and not the main Wordpress folder)
Must the image be manually uploaded into this folder then ?
@Peter
“xmasb-quotes/images” is the right folder. At this time the images must be manually uploaded, yes.