‘Quotes Collection’ plugin with a ‘Random Quote’ sidebar widget

Quotes Collection plugin for WordPress does just what the name implies, helps you collect and manage your favourite quotations and display a random quote on your sidebar. The Random Quote widget has a cool Ajax powered refresh feature, this means you can get another quote on the same space without refreshing the whole web page. You can also display all quotes, or a set of quotes on a page using a [quote] tag. Have a look at my quotes collection to see this plugin in action. The plugin is similar to wp quotes plugin by Dustin Barnes.

Find more information, and download version 0.9 of the plugin from the Quotes Collection plugin page and show off your attitude on the sidebar of your blog 😉 . Note that the plugin has still not been extensively tested across different WordPress versions, so please report any defects you might find with this plugin.

34 thoughts on “‘Quotes Collection’ plugin with a ‘Random Quote’ sidebar widget”

  1. Love the plugin. I was able to make some changes to suit my needs. First, I added a filter so that if the user was not logged in it would not display the quote by adding to the function quotescollection_widget.

    get_currentuserinfo() ;
    global $user_level;
    if (!$user_level > 0)
    return;

    I am sure there is a better way to do that, but I am not sure what it is. If you have any suggestions, that would be great.

    Also, I had a problem because I imported a large number of quotes. The quotes management page took forever to load. Finally, I added too many quotes and it just exceeded the max memory allowed. Therefore I added the following to the end of the $sql statement:

    $sql .= ” LIMIT 100″;

    Then I decided, If I limited the number of returned quotes, I would not be able to find them unless I search the db for them. So I added
    if(isset($_REQUEST[‘findq’])) {
    $sql .= ” Where quote LIKE ‘%”. $_REQUEST[‘findq’] . “%’ “;
    }

    and also a search form:
    $display .= “Find Quote: “;
    $display .= “”;
    $display .= “”;

    Love the plugin. Not sure if you would be interested in adding to the next version some of the mods, but thought you might be interested.

  2. Tom, thank you very much for sharing your ideas. I will implement the paging feature and an option to search/filter quotes in the quotes managment page. The next version will have these things.

    And, I don’t see anything wrong with the way you check user login do display the quotes if the method works for you. Will let you know if I can come up with a better method.

  3. Hi Jim,

    Copy and paste the following code in your template file wherever you want the random quote to appear.


    <?php if(function_exists(quotescollection_display_randomquote)) quotescollection_display_randomquote() ?>

  4. Working good, but I’ve one problem.
    I’ve collection of quotes, that written in russian. Everything is fine, but when I want to edit a quote, russian letters change to scrumble (????????).
    Pleas fix it!

    And thank you for great plugin!

  5. Alex, I will check it up and try and fix the problem if any. But make sure you download and use the latest version of the theme. There have been some problems with the utf characters in some of the previous versions, but I have hence fixed this in 0.9.4.

  6. It works fine for me Srini. The only addition I’d like would be another date field so that the option is there to have a set quotation for each day of the year, thus when the user visits they see a single quotation for their visit. Then maybe there could be a little check box say for the user to set off random posts in the current fashion.
    It’s just an idea. Keep up the good work!

Comments are closed.