Shantz WordPress QOTD

My Sites: My Blog | My Tech Blog | Follow me on Twitter
—-

download

Download: shantz-wp-qotd
Version: 1.2.2
Updated: April 23, 2008
Size: 8.06 KB
Hits: 394

Shantz WP QOTD is a plugin to add quotes to your wordpress blog in a few easy clicks. It adds quotes to your posts and your sidebars with a multitude of options for sources and customization.

== Description ==

There are many quotes plugins out there. This one has been started with a view to have the best of features and options, ease of use and multiple sources to get the quotes from.

Features:

  • Add quotes to all your posts automatically.
  • Widget support - Can also have a widget in the sidebar for quotes.
  • Customize and style your quotes with your own text and tags.
  • Multiple sources for quotes (paste in admin page, get from file implemented, fetch from web/rss soon to come)
  • Multiple patterns for quotes - Random Quote, Quote of the day (all posts display quote of the day), Quote of that day (all posts display quote for their own days)
  • Pattern for widget can be different
  • Customization for widget can be different
  • Add quotes to top or bottom of posts
  • Custom template tag to add quote anywhere you want
  • Custom quote boundary decalarator tags/Multiline quote support
  • Enable/Disable the quotes without deactivating the plugin
  • Option to exclude pages from displaying quotes

Coming Soon:

  • Fetch from web/RSS support
  • Quotes Categories
  • Pics support for quotes
  • Anything else you want
  • File selection

And more…

== Installation ==

The Shantz-WP-QOTD plugin can be installed in following easy steps:

1. Unzip “shantz-wp-qotd” archive and put all files into your “plugins” folder (/wp-content/plugins/). It is advisable to create a sub directory into the plugins folder, like /wp-content/plugins/shantz-wp-qotd/

2. Activate the plugin

3. Go to Options > Shantz WP Quotes, adjust your settings and save them.

4. For adding and configuring widget to sidebar, go to Presentation > Widgets.

== Frequently Asked Questions ==

= How to add quotes anywhere in the posts/pages? =
Use the tag “<!– shantz-wp-qotd {option} –>” anywhere in your post (without the quotes).
Note:
1. {option} (including the braces) has to be replaced by the quote pattern that you want: qotd, qottd or r. qotd is quote of the day, qottd is quote of that day and r is random.
2. The tag has to be added using the code editor and not the visual editor, otherwise it will replace the <, > with their HTML equivalents.

= How to use the custom separator/multi-line quotes? =
By default, if you leave the custom separator box blank, the plugin uses a newline character as the separator. However, if you have quotes that have multiple lines, you can change this to a tag of your choice, say [quote]. Now, in your quotes file (or quotes pasted in admin panel options) add this tag at the end of each quote and you are done.

= What is the format for saving quotes? =
In text box in admin page, as well as in the file, the quotes have to be saved as one on each line. Each quote is separate by newline.

= Where is the file with quotes located =

For the get from file option, a file “quotes.txt” has to be present in the same directory where shantz-wp-qotd.php is residing. A sample quotes.txt has been given with this plugin (with some quotes from southpark, simpsons, matrix and deus ex)

= I checked the option “exclude pages” but my pages are still displaying quotes =
Check your WordPress version. This option is effective only for Version 2.1 and above

= How to upgrade to a new version =
Simply overwrite the old files with the new ones.

== Screenshots ==

Config Screens and plugin in action:

Screenshot-1 Screenshot-2 Screenshot-3

You can also see the plugin in action right here on my site (check bottom of posts and the right sidebar topmost widget)

== Version History ==

  • Version 1.2.2
    • Fixed a bug because of which quotes were blank some times. Thanks to Thom for reporting it.
  • Version 1.2.1
    • Option to exclude pages from displaying quotes is also compatible with wordpress version < 2.1
  • Version 1.2.0
    • Added option to exclude pages from displaying quotes
    • Fixed a bug that quotes source selection checkboxes always remain checked after updating settings.
    • Cosmetic: Fixed a few spelling mistakes :)
  • Version 1.1.0.1
    • Cosmetic: Changed readme.txt according to wp-extend standards
  • Version 1.1.0
    • Added Custom tag support for adding quotes anywhere in your posts/pages
    • Added Custom quote separator support and multi-line quotes support
  • Version 1.0.1
    • Fixed some styling related issues in text added before/after quote displayed in widget (especially links related issues)
  • Version 1.0.0
    • Initial version

—-
If you liked this post, then you can Subscribe to my feed
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • blogmarks
  • IndianPad
  • StumbleUpon
  • Technorati
  • Facebook
  • Live
  • Reddit
  • Slashdot
  • YahooMyWeb
  • e-mail

Related posts

65 Responses to “Shantz WordPress QOTD”

  1. My First WordPress Plugin: Please Welcome shantz-wp-qotd | My Technophilic Musings Says:

    [...] more details and downloads, go to shantz-wp-qotd. You can also see it in action at the bottom of this post and at the topmost widget in the right [...]

  2. Project: “shantz-wp-qotd “, My Wordpress Plugin, Update to 1.1.0 | My Technophilic Musings Says:

    [...] Shantz WordPress QOTD [...]

  3. Project: shantz-wp-qotd Updated and shantz-wp-prefix-suffix released | My Technophilic Musings Says:

    [...] Shantz WordPress QOTD [...]

  4. Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 2/28 Says:

    [...] Release Page | Download (No Ratings Yet)  Loading … Sphere: Related Content [...]

  5. Bigrio Says:

    Hi sir! Great plug-in.. I want to add this to an ajax tab plugin.. what is the call function of this plugin? thanks alot..

  6. Vaibhav Dugar Says:

    hi, nice plugin but i am waiting for the release which will have RSS support.
    Kindly let me know on the given email id once u release that plugin.

    thanks

  7. Shantanu Goel Says:

    vaibhav, rss support will soon be added..i hope i get some time next weekend to do it…

  8. Project: shantz-wp-wotd and shantz-wp-prefix-suffix updated | My Technophilic Musings Says:

    [...] Shantz WordPress QOTD [...]

  9. Dustin Thacker Says:

    howdy. love the plugin! can’t wait for the categories and web/rss features. i’m a WP noob and the answer is probably obvious, but how/where do I go to style the text associated with the QOTD text differently than my posts? thank-you.

  10. Shantanu Goel Says:

    Dustin, all you need to do for that is use the “text before” and “text after” options. You can insert your html, inline css code there, or wrap it all round in a css class…

  11. Dustin Thacker Says:

    Great!!! Thanks Shantanu.

  12. To install quote of the day Says:

    [...] Shantz WordPress QOTD | My Technophilic Musings Uncategorized [...]

  13. 제가 지금 사용하는 플러그인 목록입니다. » 쟈스민(JASMIN) Says:

    [...] Shantz Wordpress QOTD 1.2.1 [...]

  14. Ben Dash Says:

    Hello there,

    I’m writing because in my blog, when I activate the shants quotd plugin, in Opera, all hell breaks loose, I mean it messes up the whole site, like this:

    http://img266.imageshack.us/img266/256/errorod1.png

    As you can see, it’s pretty much all messed up when it’s turned on, when off, it looks normal.

    I’m using Windows Vista Business with Opera v9.25 installed. However, your site looks fine in Opera with the plugin, so it can be something on my side that’s wrong. Maybe it’s fighting with another plugin. I will try to figure out what it is, but any help would be appreciated.

    Thanks in advance,
    Ben

  15. Shantanu Goel Says:

    Hey Ben
    The immediate cause of the problem is that the text in the box is not “wrapping” around and is continuing in a straight line, not just for qotd plugin but for all others as well. This causes all the windows to “shift” down. But this is just an effect of something else causing this. Can you tell me the settings that you are using for the quotes plugin. And what all other plugins are u using?

  16. Ben Dash Says:

    I’m using the default settings, meaning:

    - plugin enabled
    - quotes are from text area and from file (I didn’t modify quotes.txt yet)
    - no separator tag
    - Quote of the Day pattern
    - Add quotes to post enabled, and to the bottom of the posts
    - And the usual QUOTD text before the quote, using italic and bold tags

    I’m using several other plugins with the Quotd plugin, but right now all of them are disabled, and just the quotd plugin is running. The plugins are:

    - Advanced-Admin-Menus
    - Advanced TinyMCE Editor
    - AJAX Calendar
    - AJAXed Wordpress
    - Akismet
    - Global Post Password
    - Highlight Author Comments
    - Login LockDown
    - Now Reading
    - Paged Comments
    - Plugin Updater
    - podPress
    - Samsarin PHP Widget
    - Secure and Accessible PHP Contact Form
    - Slimbox Plugin
    - WP-Bookwormr
    - wp-cache
    - WP-DBManager

    None of these are enabled right now, just the quoted plugin, and the problem still occurs. I changed my theme to i3Theme Midnight Blue (Center Edition) v1.6, in case there’s something wrong with the theme, but the problem is still the same. I left the plugin enabled for now, you can see the result, if you have Opera. Also, in Firefox, it seems that everything is fine, but the moving of the boxes are too slow, and in IE7, you can only drag the box, not drop it, it won’t come off your cursor.

  17. Shantanu Goel Says:

    Ben, I just opened your site in Opera 9.26 on Windows XP. It worked fine for me.See the screenshot of what I got here: http://img2.freeimagehosting.net/uploads/3c8b26c9b1.jpg

    What version of opera are you using? and what OS?

  18. Ben Dash Says:

    I’m using Windows Vista Business Version, and Opera 9.25, but the screenshot you gave is not exactly fine, you can see that the quotd box’s button is up in the right corner, god knows why. Also, if you start refreshing the site, soon it will collapse, I guess it all depends on how long the quote is, but I don’t know that for sure.

  19. Shantanu Goel Says:

    hmm, yeah, you are right about the button. Can you try one thing? In the widget’s setting (under presentation->widgets), remove all the text “before” and “after” settings, and try again.

  20. Ben Dash Says:

    Well, in the widget, there is no after or before text set, but I removed the settings from the plugin’s options, if it’s any help. So, it should have no formatting, just the basic text.

  21. Ben Dash Says:

    Also, the site collapses into one big vertical “site” when you try to move the quotd’s box around, you’ll see that it will break the layout of the site badly.

  22. Ben Dash Says:

    All right, I switched the plugin off until I find out what it is, I’m now 80 percent sure that it’s not the plugin’s fault. I will keep you updated in case I solve the mistery. Thanks anyway, and nice plugin, keep working on it :)

    Ben

  23. Ben Dash Says:

    Well, I disabled the plugin for now, until I find out what causes this one. I wanted to know if the problem was with my site, so I installed XAMPP on my computer, and started a localhost with a fresh wordpress v2.3.3 installed, and just loaded in the theme and the plugin, and it still messes up the site. What version of Wordpress and i3Theme are you using? Because it’s the only difference I can think of right now…

  24. Shantanu Goel Says:

    I am using i3theme 1.6 classic.
    Don’t know what to suggest to you right now. I even tried loading my local wordpress installations with my plugin (both 2.3.3 and 2.5RC1) in opera but couldn’t see the issue. Will let you know if I find something.
    BTW, can it be due to the localization? Do you do anything special for a hungarian language website?

  25. Ben Dash Says:

    Well, last test I did was an original Wordpress v2.3.3 fresh from the net, untouched. The same with the i3theme classic theme, I thought maybe the theme does it, but I don’t know.

    It can be due to the localization, although I don’t know what causes this, maybe the php.ini setup is the key, or something I can’t see. Anyway, I’ll try to reach my local wordpress forum, see if they can say something regarding this issue.

  26. Shantanu Goel Says:

    @Ben: I did some digging around and it seems that this is a known problem with opera (see http://wordpress.org/support/topic/155952 ). Don’t know why its not happening with me. I’ve a workaround in mind. I’ll try to send you a “fixed” build this weekend. Try that out.

  27. R. E. L. Says:

    Love the plugin… but have a few questions and a problem.

    First the questions:

    Is it possible to have it display anything other than “Random Quote” in the title bar?

    Is it possible to have it displayed in reglular font (as opposed to bold)?

    Is is possible to have the name of the source appear on a different line?

    Now the problem:

    It appears as though there is a slight problem n that when the widget is activated, averything on the page after the widget is bolded… almost as if there is an open tag.

    Thanks a bunch.

  28. Shantanu Goel Says:

    @REL:
    Answers:
    1) Yes, you can change the title by going to widget properties
    2) yes, you can change the font by editing the before text and after text options in widget properties
    3) For the source to appear on a different line, you have to change the way your quotes are stored. In the plugin properties (options->shantz wp quotes), change the quotes separator to something like [quote] instead of “\n”, then for each quote you can put the source in a new line, and it’ll be displayed like that.

    About the “bold” issue, I think either there is a problem with the theme, or you could properly check the widget settings to see if there is some open tag in before text or after text options.

  29. kozlov Says:

    Thanks for great piece of code and help with it. I will try to stay tuned, because waiting for RSS support and… hm, adding a quote by guests could be nice, but it should support WP forms (I mean it should use the same protection methods - like CAPTCHA - as entire script). And maybe possible another *instantions* of widget? In one I could put positive phrases and in second - bash-like fortunes. :)

  30. Shantanu Goel Says:

    Glad you liked it kozlov.
    Good suggestions by the way. I’ll try to keep them in mind. especially about the guest submissions, I’ll see if I can hook up something by using another form plugin (like cforms etc)

  31. kozlov Says:

    One more question. Does this plugin add quote text onto my newly-written post (so when I try to edit it, I’ll see my quote), or does it only include text or something else? I wonder what if I disable plugin and try to view my posts.

  32. Shantanu Goel Says:

    kozlov, the plugin will not modify ur posts. It only adds the quote to it dynamically while it is being retrieved to display..

  33. Varun Mahajan Says:

    hi, can u give the exact tag for adding random quotes in page, mine’s not working…..

    in white, I tried….

    Thx

  34. Varun Mahajan Says:

    hi, can u give the exact tag for adding random quotes in page, mine’s not working…..

    //

    in white, I tried….

    Thx

  35. Shantanu Goel Says:

    Varun, there are two ways to do it.
    1. Either you can select the type of quotes as “random” in the settings (Settings->Shantz WP Qotd), and also select “add quotes to posts automatically”
    2. If you want to add random quotes just on some selected posts or pages, you can write < !– shantz-wp-qotd r – > in the post/page. But:
    a. You have to add this code in html mode and not in visual editing mode.
    b. Make sure that u remove the extra space between “< " and "!" and also between "-" and ">” in the above example.

  36. kozlov Says:

    Is there any way to force quote changing? Third day I have the same text. Yes, I’ve changed quotes list in QOTD options, but didn’t think this could cause cites repeating.

  37. Shantanu Goel Says:

    kozlov,
    Can you send me a screenshot of ur settings? Also, pls give me the links where you are seeing this issue.
    Moreover, the quotes can repeat only if you use random mode. but then it would change on page refresh anyways (unless you are using caching)

  38. Varun Mahajan Says:

    Hi Shantz

    Thx for the reply, but I’m using the same thing in the header of my template file. Still not working

  39. Shantanu Goel Says:

    Varun, this has to be put in your post/page content, not the header file. If you want to put the quotes into the header etc, you’ll have to call the function directly. e.g., you will have to use

    CODE:
    1. < ?php
    2. global $shantzWpQotdInstance;
    3. $shantzWpQotdInstance->addQuote(’option’);
    4. ?>

    where replace “option” by your choice of quotes pattern (qotd, qottd, r). You can take a look at the readme file to see what these options mean.

  40. Varun Mahajan Says:

    Same prob Shantanu,
    I'm getting this output -->

    addQuote(’r’); ?>

    on my header...

  41. Varun Mahajan Says:

    // "addQuote(’r’); ? >"

  42. Varun Mahajan Says:

    ---> addQuote(’r’); ?>

  43. Shantanu Goel Says:

    Varun, hmm, It might have to do something with the changed behaviour of how code in plugins is treated on a global scale in WP 2.5. Will try it out myself tonight and will let you know..

  44. Shantanu Goel Says:

    Hey Varun, I just tested it. Sorry I made a small mistake in giving out the last code to you. Forgot to "echo" it to actually display something.
    Here it is

    CODE:
    1. < ?php
    2.       global $shantzWpQotdInstance;
    3.       echo $shantzWpQotdInstance->addQuote(’option’);
    4.       ?>

    I've tested it on my home server and it is working perfectly.

  45. Mr. Ljenjivac Says:

    Hi,
    I just installed your plugin and I like it a lot. It was easy to install and to add quotes. I have one problem - when I added it to my sidebar, I didn't get the uniform styling that comes with my template. Could you take a look?

    http://www.lijencina.com

  46. Shantanu Goel Says:

    Ljenjivac, Thanks for the bug report.
    I took a look at your page and have found the issue. Its because of a different type of markup used by your theme. I'll try to put in a fix tonight or tomorrow. You can check back then.

  47. Shantanu Goel Says:

    Ljenjivac,I just did some digging and found that the problem is with the theme you are using and not the plugin. So, you'd either need to fix the theme (or ask the theme creator to fix it) or look for a new one. (You can try any widget, that is not built into the theme, and it will show up like that only). The problem is a missing pair of ul tags, because of which the appropriate style is not applied to the body of the widget.

  48. Thom Byxbe Says:

    When I use the "Select the quotes pattern" and i select "Quote of that day" posts for the current day contain no quote. The do contain the text I put in the "Add the following text before the quote" box.

    This can be seen here:

    http://www.mikomurk.com

    Look at the top posting which I posted today.

  49. Thom Byxbe Says:

    I thought that you could insert HTML code in the "Add the following text before the quote" box. It took the tag but ignored the tag. Is this a problem with the plug-in or a CSS issue?

  50. Thom Byxbe Says:

    I thought that you could insert HTML code in the "Add the following text before the quote box. It took the BOLD tag but ignored the FONT tag. Is this a problem with the plug-in or a CSS issue?

    Example Below:
    <FONT COLOR="RED"><B>Warrior Quote To Live By:</B></FONT>

  51. Thom Byxbe Says:

    I have discovered that when i select "Quote of that day" randomly posts for SOME days contain no quote.

    I have checked my quotes.txt file and it does NOT have any blank lines in it. Any idea why this is happening?

    You can view this here:

    http://www.mikomurk.com

  52. Shantanu Goel Says:

    Thom,
    1. About the tag issue, this is about your browser. If you check the source of the page, the tags will be there, but "font" is a deprecated tag, so browsers may or may not support it. ("b" is also deprecated, use "strong" to be more compatible, however "b" seems to be supported by most browsers as of now but this could break any time)
    2. I'll look into the blank quotes issue this weekend most probably. Thanks for reporting it.

  53. Cynthia Armistead Says:

    Neat plugin! I was looking for one that woud accept the author and source separately from the text of the quote. I'd be interested to see how you implement the categories. I have to hope that they're tag-style, so that each quote can be in multiple categoresi

  54. Shantanu Goel Says:

    Thanks Cynthia
    I'll add the author/source request to my todo list. However, the plugin would be updated after a couple of weeks atleast..Am busy with some other projects right now. Stay tuned :) ..

  55. Shantanu Goel Says:

    Thom, I've fixed the "blank quote" problem. You can download the new version from the above link.

  56. Project: My WordPress Plugin shantz-wp-qotd updated to version 1.2.2 | My Technophilic Musings Says:

    [...] Shantz WordPress QOTD [...]

  57. Gary Says:

    Tried to download your plugin today but seems to be broken.....

  58. Shantanu Goel Says:

    Gary,
    Thanks for letting me know. Seems to be some problem with my download manager while clicking directly. Meanwhile, you can just right click on the link and choose "save as".

  59. Pooja Gupta Says:

    Great job Shantanu..Will try this sometime!

  60. Shantanu Goel Says:

    Thnx Pooja.. But you’ll have to migrate to a self-hosted wordpress installation to try it ;)

  61. Thom Says:

    Great plugin.. Thnx alot.. Still having an issue with the plugin showing blank quotes.. I'm using the hard code:

    addQuote(’r’);
    ?>

    Thanks again..

  62. Shantanu Goel Says:

    @Thom: That's strange. I am quite sure that the blank quotes problem is fixed. Can you send me your quotes file. And the link where you are seeing the issue.
    And I hope you are using the code correctly as I mentioned in comment no. 44 above cuz ur code didn't get displayed fully here. Can you use [ code ] [ /code ] tags (without the spaces within the brackets) to post the code u r using here.

  63. Thom Says:

    I have got the php code:

    CODE:
    1. addQuote(’r’);
    2.    ?>

    In my header.php file.. I am not using a text file..

  64. Thom Says:

    Hmmm.. Weird.. I used the [ code ] [ /code ] without spaces but it still wont display the full php code..

  65. Shantanu Goel Says:

    Thom: Sent you an e-mail. Please send your code as reply to that.

Leave a Reply