XmasB Quotes

August 4th, 2010

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!


(Klikk her for å få den norske versjonen.)

  1. iconico
    May 20th, 2009 at 19:51 | #1

    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?

  2. May 25th, 2009 at 14:57 | #2

    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.

  3. Mare
    June 1st, 2009 at 22:49 | #3

    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!

  4. Mare
    June 1st, 2009 at 22:54 | #4

    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!

  5. Vince
    July 29th, 2009 at 22:39 | #5

    How do i get rid of the quotation marks that appear with the quotes ?

  6. July 29th, 2009 at 23:22 | #6

    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.

  7. August 8th, 2009 at 12:09 | #7

    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)

  8. August 12th, 2009 at 12:53 | #8

    Works great, thank you

  9. August 25th, 2009 at 08:57 | #9

    New version (1.3.2) is out. Thanks to Fat Cow for the translation to Belorussian.

  10. September 8th, 2009 at 15:20 | #10

    How to add this plugin to the sidebar??

    Is it ? Appearance >> Widgets
    Or does it have any php code?

  11. September 15th, 2009 at 08:59 | #11

    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.

  12. M Zachary
    November 9th, 2009 at 18:11 | #12

    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!

  13. November 9th, 2009 at 23:09 | #13

    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. :)

  14. HGU
    November 11th, 2009 at 23:23 | #14

    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.

  15. November 28th, 2009 at 16:05 | #15

    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!

  16. November 29th, 2009 at 12:56 | #16

    @Davin
    This was fixed a while ago. I use the automatic upgrade on this blog for every new version I put out.

  17. November 29th, 2009 at 12:56 | #17

    @Davin
    No – not if you keep a copy of your old plugins/xmasb-quotes/images folder.
    :o ) Kjetil

  18. January 28th, 2010 at 15:31 | #18

    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??

  19. January 28th, 2010 at 16:07 | #19

    @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.

  20. Peter
    March 3rd, 2010 at 09:09 | #20

    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 ?

  21. March 3rd, 2010 at 09:29 | #21

    @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.

  22. Peter
    March 3rd, 2010 at 10:11 | #22

    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 ?

  23. March 3rd, 2010 at 10:31 | #23

    @Peter
    “xmasb-quotes/images” is the right folder. At this time the images must be manually uploaded, yes.

  24. Patrick
    May 26th, 2010 at 22:28 | #24

    I downloaded the plug in for one site and it works great, but for another it puts */* before quotation marks and apostrophes.

    Any ideas?

  25. May 27th, 2010 at 10:04 | #25

    @Patrick
    I would guess you have different settings under “options – XmasB Quotes”. Try looking there first.

  26. June 6th, 2010 at 06:39 | #26

    Now the second site is doing the thing with */* in quotes.

    What do you mean by “settings under options-XmasB Quotes”? I didn’t change anything from the way it was before, but could I be missing something.

    I have XmasB under Tools and Settings in the dashboard sidebar. Should I be looking somewhere else?

    Thanks for all your help!

  27. June 6th, 2010 at 08:46 | #27

    @Patrick
    The page to edit quotes is found under “Tools and settings” in the dashboard sidebar, as you have seen. But the options for the widget is found under “Options” in the dashboard sidebar. There you should find options for showing pictures as well as HTML to be user before and after certain elements.

    The standard url for this page is http://yoursite.com/wp-admin/options-general.php?page=xmasbquotes.php, just replace yoursite.com with, well, your site. :)

    Good luck, and thanks for using my plugin/widget.

  28. June 6th, 2010 at 20:31 | #28

    Actually, I’m getting *\* before quotation marks and apostrophes and not a forward slash like I wrote before (not sure if this makes a difference).

    I also don’t have a dashboard category tab called Options. All the settings in Tools and Settings for XmasB have been unchanged (the html and picture options are accessed through the Settings tab).

    Maybe I need to uninstall and re-install?

  29. June 7th, 2010 at 09:34 | #29

    @Patrick
    What version of WordPress are you using?

    There should be two seperate pages in your dashboard for the XmasB Quotes plugin; One for adding and editing quotes (found under tools) and one for setting options such as custom html around elements (found under options/settings). I’m not sure if it is “options” or “settings” as I have a norwegian dashboard. :(

  30. June 7th, 2010 at 21:17 | #30

    Yes, I have Settings, sorry.

    The only change is No image is selected. Other than that all the settings remain the same.

    For now, I’m just italicizing the quote text to make it stand out.

  31. June 8th, 2010 at 20:30 | #31

    labatterie,

    What’s your point? I’ve tried the default settings and multiple configurations.

    Perhaps it’s a conflict with another plugin or with the CSS?

  32. June 9th, 2010 at 09:00 | #32

    @Patrick
    Sorry about that. Was obviously some sort of spam. I approved it from my mobile. Guess I was to fast.

    Can you provide the url for the second site?

  33. Tom Martin
    June 18th, 2010 at 22:31 | #33

    Is there anyway to display the quotes on a page. My client would like to have a viewable archive of all the quotes

  34. June 18th, 2010 at 23:38 | #34

    Sorry, no. The only page showing all the quotes are found in the dashboard for the moment. I might add this though, as it is fairly simple to implement.

  35. Tom Martin
    June 27th, 2010 at 20:17 | #35

    The quote shows up on all of my page sidebars. Is there a way to limit it to the the main blog page. I have a plugin for doing that but it doesn’t seem to have a setting for your plugin.

  36. June 28th, 2010 at 10:21 | #36

    @Tom Martin
    Currently this is not possible. At least not from plugin itself. It is however not hard to implement either. I will try to include this (and a few other features) in the next update.

    This might be an easy fix: Widget Context

  37. bingjie
    July 13th, 2010 at 17:51 | #37

    cool plugin

  38. Skully
    July 18th, 2010 at 10:45 | #38

    Hi. Great plug in! I tried several and this is the only one which doesn’t give js error messages upon activation. Thanks. Sorry I probably didn’t fill in the form right, I only speak English and what you want is written in Norwegian. :-(

    Using WP 3.0 and your latest, 1.3.4.

    When I have to use an apostrophe in a quote it adds a back slash like this: couldn\’t

    Any idea how to stop that? My boss writes the quotes so it’s not like I can avoid apostrophes, LOL.

    Also, are you available for hire to tweak your code to do what we’d like it to with images?

    Thanks!

  39. July 19th, 2010 at 23:05 | #39

    No problem with English here, I have a separate page for the Norwegians. :)

    The problem with the apostrophe should be an easy fix. I have located the problem, but I don’t have access to the code before next week (I’m on holiday). I will fix this when I can, hopefully within a week or so.

    See my mail regarding hired work.

    Thanks for using my plugin!

  40. Skully
    July 26th, 2010 at 03:44 | #40

    Thanks for fixing your terrific plug in so fast! I’m glad you confirmed that I was right when I thought it was a server side issue and not your very clean code. :-)

    I’ve installed your new version 1.3.5 and it works PERFECTLY with the version of PHP that our hosting company is running on the server.

    Thank you! You ROCK!

  41. August 2nd, 2010 at 08:38 | #41

    No problem, Skully. I will look into your other questions soon. Just got back to work, so I need to prioritize, but think I can give you something soon. And I will probably make it a public change, so you don’t need to tweak your example of the code every time there’s an update.

Comment pages
  1. May 14th, 2008 at 21:29 | #1
  2. May 26th, 2008 at 18:07 | #2
  3. June 1st, 2008 at 19:00 | #3
  4. July 2nd, 2008 at 11:54 | #4
  5. July 11th, 2008 at 03:34 | #5
  6. July 13th, 2008 at 03:44 | #6
  7. July 14th, 2008 at 13:48 | #7
  8. July 16th, 2008 at 12:57 | #8
  9. August 12th, 2008 at 04:15 | #9
  10. August 12th, 2008 at 09:50 | #10
  11. August 16th, 2008 at 01:21 | #11
  12. September 1st, 2008 at 14:56 | #12
  13. September 19th, 2008 at 19:51 | #13
  14. September 25th, 2008 at 05:48 | #14
  15. December 31st, 2008 at 08:53 | #15
  16. February 14th, 2009 at 13:55 | #16
  17. March 1st, 2009 at 19:55 | #17
  18. March 20th, 2010 at 02:28 | #18
  19. March 31st, 2010 at 02:07 | #19