Quotes Collection

Latest version: 1.1.4 (Updated on 2 July 2008)
Download | Screenshots | Installation | Localization | Changelog | Comments

Quotes Collection plugin with Ajax powered Random Quote sidebar widget helps you collect, manage and display your favourite quotations on your WordPress blog. All quotes or a set of quotes can also be displayed on a page using a [quote] tag. The plugin is similar, and uses ideas from (though not based on) the wp quotes plugin by Dustin Barnes. Visit my quotes collection to see this plugin in action.

Main features

  • Random Quote sidebar widget with Ajax refresh feature — you will be able to get another random quote on the same space without refreshing the web page. You can check it right here on the sidebar. This refresh feature can be optionally turned off in the widget control panel. The widget also comes with few other options in the widget control panel.
  • A nice admin interface to add, edit and manage quotes.
  • Additional information that can be provided along with the quote: quote author, source (e.g., a book, or a website URL), tags (keywords) and visibility.
  • Quotes can be displayed in a page using one of the code (quick tags) below.
    • The tag [quote|all] displays all quotes.
    • [quote|author=Somebody] displays quotes authored by Somebody.
    • [quote|source=Something] displays quotes with source as ‘Something’
    • [quote|tags=sometag] displays quotes tagged sometag (new with 1.1)
    • [quote|tags=tag1,tag2,tag3] displays quotes tagged tag1 or tag2 or tag3, one or more or all of these (new with 1.1)
    • [quote|id=3] displays quote with ID 3
    • [quote|random] displays a random quote
  • The PHP code <?php quotescollection_display_randomquote() ?> can be used to display a random quote in places other than sidebar.
  • Support for localization. (new with 1.1)

Screenshots

1. Admin interface (in WordPress 2.5)
Quotes Collection plugin — screenshot 1: Admin interface
Click on the image for a larger version

2. ‘Random Quote’ widget options
Quotes Collection plugin — screenshot 2: Random Quote widget options

3. Random quote as can be seen in the sidebar of my website
Quotes Collection plugin — screenshot 3: Random quote

Download

Latest version: 1.1.4

Requires atleast WordPress version 2.1. Tested upto WordPress 2.5.1.

If you are upgrading the plugin from versions prior to 1.1, it’s a good idea to back up the quotescollection database table before performing the plugin upgrade, especially if you have a large number of quotes.
Download Quotes Collection Plugin for WordPress Version 1.1.4

Downloaded a total of 1022 times

Released for free under the GPL.

Installation

  1. Unzip and upload the `quotes-collection` directory to the `/wp-content/plugins/` directory
  2. Go to `WP Admin » Plugins` and activate the ‘Quotes Collection’ plugin
  3. To add and manage the quotes go to `WP Admin » Manage » Quotes Collection`
  4. To display a random quote in the sidebar, go to `WP Admin » Presentation » Widgets`, drag ‘Random Quote’ widget into the sidebar

Localization

Versions 1.1 and greater support localization. As of 1.1.4, localization is available in German, Italian, Russian, Spanish and Tamil. If you can translate the plugin in your language, please do, and please send me the localized file so that I can add to the next version of the plugin. The localization template file (quotes-collection.pot) can be found in the ‘languages’ folder of the plugin. If you want to translate the plugin in your language, but are not sure how to go about doing it, contact me, I’ll help you out.

Feedback

Please report any defects you may find with this plugin using the contact form or as a comment here. All feedback and suggestions welcome.

Change Log

2008-07-02: Version 1.1.4

  • Bug fixes. The plugin was not handling properly apostrophes in author and source fields. This is fixed now.
  • Other small fixes.

2008-06-05: Version 1.1.3.1

  • Added Spanish translation.
  • Updated Italian translation.

2008-06-01: Version 1.1.3

  • Improvements
  • Updated German translation
  • Added Russian translation

2008-05-28: Version 1.1.2.1

  • VARCHAR(256) -> VARCHAR(255) (VARCHAR(256) doesnt work with MySQL 4.0)

2008-05-28: Version 1.1.2

  • Modifications in the automatic database update functionality
  • Fixed problem with German translation
  • Added Italian translation

2008-05-25: Version 1.1.1

  • security fix

2008-05-25: Version 1.1

  • Tagging feature
  • Internationalization
  • Fixes and improvements

2008-03-11: Version 1.0

  • Compatible with WordPress 2.5
  • Bug fixes and various other improvements

2008-02-06: Version 0.9.5

  • Fixed problem with non English characters in author names while using the tag [quote|author=]

2008-01-16: Version 0.9.4

  • Support for utf-8 characters
  • Fixed problem with linebreaks

2007-12-19: Version 0.9.3

  • Fixed a JavaScript issue
  • Removed unnecessary <h2></h2> tags above random quote when title field is left blank in widget control options. <h2> tags displayed only when there is a title.

2007-12-18: Version 0.9.2

  • Provision to add random quote anywhere in the template.

2007-12-16: Version 0.9.1

  • Bug fix

2007-12-15: Version 0.9

  • Initial release

180 Comments

  1. Amit says:

    Is there a function, which one can integrate directly in the PHP-CODE of the Themes?

    I want display random-quotes in top of index.php

  2. Srini says:

    Amit, upgrade the plugin to the latest version and use <?php quotescollection_display_randomquote() ?> wherever you want to display the random quote.

  3. Brian Angliss says:

    A couple of things - when I don’t put the header into the widget, I still get a small header space. Is there a way to make sure that there is no header at all if the widget doesn’t have one?

    Also, I get “loading…..” when I click on the “next quote” link, but nothing ever loads. Do I need to configure my dynamic sidebar so it can refresh and resize to fit the new quote? Or is there a way I can leave the random quote going but without the “next quote” link?

  4. Srini says:

    Brian, there is an option in the widget control panel to turn off the refresh feature if you wish. I have addressed the other issues in the latest update. Thanks.

  5. Brian Angliss says:

    Thanks!

  6. Brian Angliss says:

    I just started importing quotes and I’m getting this as the Source regardless of what I type into the Source input field:

    source.slice(match.index match[0].length)

    Bug, perhaps?

  7. Srini says:

    That’s a strange error message. Anyway, I’ll look in and find out what’s the problem. Thanks for reporting.

  8. Tommy says:

    Great! It works fine!
    Here is another suggestion: Can you implement a Tag-Feature. It means, you can define one or more Tags for each Quote.
    In Code you can say show me only Quotes with the Tags “Music” and “Movie”

    For Example:

    [quote|tags=music,movie]

  9. Tommy says:

    Another Example for the Tag-Feature Suggestion:

    quotescollection_display_randomquote(tags=”music,movie”)

  10. Srini says:

    That’s an awesome suggestion!!! how did I now think of that. You can expect the plugin to be updated with tagging feature, soon. Thanks.

  11. Patrick says:

    Awesome! I do have one small problem with the widget options . . . I can’t find the options to show Author, Source, and Ajax Refresh. I could live without the Source being displayed but the refresh is pretty crucial. Any ideas?

  12. Srini says:

    You can find those options in the widget control panel. You’ll find something like the screenshot 2 above. Refer WP documentation for widgets for more info (scroll down and read under ‘configuring widgets’).

  13. Patrick says:

    I can find no widget control panel or a widget subpanel. When I login to my admin section I am unable to find anything that even mentions widgets. I did change my theme to the compatible ones mentioned on the page you mentioned and still couldn’t find anything that looked useful. I’m not extremely WordPress savvy and I only know some basic PHP, sorry.

  14. Patrick says:

    Might it be that I’m on an old version of WordPress? v 2.1.3 . . . I’ll upgrade to 2.3.1 later tonight.

  15. Srini says:

    Yes Patrick, sidebar widgets come default with WP only after v2.2. Upgrading to 2.3.1 is a good idea, but you can still have widgets with 2.1.3 by installing the sidebar widgets plugin.

  16. Giofilo says:

    Hi Srini,

    Thanks for this plugin!

    But, maybe, I have a problem:

    1) Installing the plugin, inserting two quotes (just for try), inserting the widget in sidebar = OK!
    2) The plugin shows the first quote. I click on “Next quote” and I get the second quote that I have inserted = OK!
    3) I click a second time on “Next quote” and I don’t get the first quote again = NOT OK!
    4) I click more more and more times and I get always the second quote = NOT OK!

    Can you tell me why?
    How can I solve the problem?

    Sorry for my bad english!

    Thanks,
    Giovanni,
    Italy

  17. Srini says:

    Try clicking the ‘Next quote’ more and more and more times, eventually you will get the first quote :) . Ideally, a different quote should be displayed every time when you click the ‘Next quote’ link. I will make it that way for a future version of the plugin.

    If you still get only the second quote even after plenty of trials, it could be a browser/javascript issue. I will test the plugin with various different browsers with different number of quotes and see if there is problem somewhere.

  18. Giofilo says:

    Hi Srini!

    Now I have added more then only two quotes, and the “next quote” is ok!
    Thanks for the support and sorry for the disturb!

    Giovanni

  19. Giofilo says:

    It’s me, another time! :-D

    With Firebug (a useful “plugin” for Firefox) I can see that, when I click on “Next quote” button, often I get this error:

    missing ; before statement
    createAJAX()tw-sack.js (line 43)
    sack(”/wp-content/plugins/quotes-collection/quotes-collection-ajax.php?refresh”)tw-sack.js (line 192)
    quotescollection_refresh()quotes-collection… (line 5)
    onclick(click clientX=0, clientY=0)

    Bye,
    Giovanni

  20. Patrick says:

    I upgraded WordPress but I still had to install the sidebar widgets plugin anyway. Now when I click Widgets under Presentation all I get is this:

    “No Sidebars Defined

    You are seeing this message because the theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions.”

    I tried several different themes with the same results. Do you know of any specific themes that will work?

  21. Patrick says:

    Nevermind . . . WordPress Classic 1.5 by Dave Shea is widget aware. Thank you for all the help.

  22. Srini says:

    Giovanni, thanks for reporting the issue. I will look in and see what I can do to fix the bug. Thanks.

  23. Alan Barnard says:

    Hi,

    First off, thanks much for great plugin.

    I’m not using sidebar widgets, so I placed my quotes in the sidebar using . This works fine, but I’d like to remove the “next quotes” link from below the quote. In other words, I want a random quote to come up each time the page refreshes, but without the clickable link underneath. Can you please point out what code I need to remove from the PHP file to accomplish this?

    Thanks,
    Alan

  24. Alan Barnard says:

    Hi,

    Thanks anyway - I figured it out.. :-)

    Alan

  25. efrasiyab ayrac says:

    Hello Srini,

    Thanks for the plug-in. I used to this one before (http://www.zombierobot.com/wp-quotes/) Quote Collection.

    I have a problem: My quotes in Turkish but i cannot see some special characters (ş, Ş, Ğ, ğ). Any suggestion to fix this.

  26. Japi says:

    Hi,
    Cool thing…
    Anyway I could remove “” from the displayed quotes? So I could use it to rotate many different
    things, adsense, text, video, pics etc.
    Japi

  27. Srini says:

    efrasiyab ayrac, thanks for using the quotes collection plugin!

    I’m not sure why the problem with special characters, anyway I’ll look into it and get back to you with a solution.

  28. Srini says:

    @Japi: Thanks!

    the quotes are enclosed inside the <q> and </q> tags, that’s what is responsible for the “”. If you are comfortable with the code, you can remove those tags.

    The plugin was intended to collect quotes, I’m not sure how it’d work if used to rotate many different things. Why not create such a plugin yourself and let us know? :)

  29. efrasiyab ayrac says:

    Thanks Srini, I’m waiting for your reply.

    I’m also trying solve the issue but not achieve yet (i’m not good at coding). If i solve this -by chance- I’ll let you know.

  30. Hazel Stone says:

    We have installed this plugin under our site at the top of the sidebar on the right. We do not use the widget sidebar. The “next quote” option is not working for us. We have already corrected the files so they correct look for the actual location of the plugin, under the subfolder wp/ yet the next quote option is still not working. Any help would be appreciated.

  31. Srini says:

    efrasiyab ayrac, I’ve fixed this problem with the utf8 characters in the latest version (0.9.4). Please upgrade. But just replacing the plugin files won’t solve your problem. You’ll have to deactivate and activate again.

  32. Srini says:

    Hazel Stone, when I look at your page source, I see that it looks for the javascript file at http://thelineishere.org/wp/wp/wp-content/plugins/quotes-collection/, while the actual path seems to be http://thelineishere.org/wp/wp-content/plugins/quotes-collection/ . I’m not sure why, but there could be a problem with the way the plugin extracts the url. I’ll look in and try to fix this, but please provide more details with what the actual path of your blog and where you’ve placed the plugin.

  33. Hazel Stone says:

    The path of the blog is http://thelineishere.org/wp/ I had to manually edit the plugin files to reflect the actual installation path.

  34. Hazel Stone says:

    I fixed it. In quotes-collection.php, the STYLESHEET does not properly pull the correct path.

  35. karimun says:

    Thank you. Very useful plugin. One suggestion: is it possible to display a ´quote of the day´, a new quote every 24h ?

  36. Srini says:

    Quote of the day? It’s not possible with this plugin now. If we are to add this, it would be whole new functionality. I will see if I can do something about this. Thanks for the suggestion anyway. :)

  37. S.K says:

    Hi Srini,

    I have been using WP-Quotes plugin and stumbled upon yours today. I like the Ajax stuff and other embellishments in your plugin. I’ll switch to yours soon, especially for my Tamil blog! :)

    I need the following help:

    I have a collection of over 400 quotes. I want to have different pages of quotes each showing 60 quotes. Please tell me how to make it possible.

    Thanks and regards,

    S.K

  38. AJ says:

    I read the correspondence with HazelStone because my “Next Quote” link does not work. I cannot find any problems with the paths. Any other suggestions? Also is it possible not to have the Next Quote link appear?

  39. efrasiyab ayrac says:

    Srini,

    Thanks for the fix. It’s working now with special Turkish characters.:)

  40. Srini says:

    S.K, I’m glad that you are using this plugin, especially for your Tamil blog!

    One solution to have different pages for your 400 quotes is to segregate based on the author. So, if you have a number of quotes from an author Xyz, you can create a page named Xyz and place the code [quote|author=Xyz]. Similarly you can do for other authors. That’s how I do with my collection of quotes. I’m also thinking of including a provision to have paging based on IDs, so keep an eye on this page for an update with that feature.

  41. Srini says:

    AJ, from your page source, I don’t find a link to the javascript file. I guess there is some incompatibility with the template you are using.

    If you want the ‘Next Quote’ link to disappear, turn off the ‘Ajax refresh feature’ in widget options.

  42. Srini says:

    efrasiyab ayrac, you are welcome! I’m thankful to you for reporting the issue so that I could fix it.

  43. Hazel Stone says:

    I realize this is not really your problem, but if you have any ideas why this plugin is breaking my template in IE 7, I would appreciate them. http://thelineishere.org/

  44. Hazel Stone says:

    Nevermind once again, I fixed it.

  45. Vic says:

    Any way of adding the part on my sidebar without destroying the XHTML 1.0 Strict Validation ?
    It seems that i can’t add it the normal way in the Widgets panel (the theme isn’t widget ready by default, but i’ve made a tweak ).
    I know, i know. I’m picky, but it’s a great plugin.

  46. L Haase says:

    The plugin works great and is just what I was wanting to display random quotes and meditations on my sidebar.

    There is only one problem however. I cannot use widgets with my site, it messes my sidebars up for some reason. I hard code the sidebar.php file and by using the string in the sidebar, when I click on the “next quote” link, I get a javascript error and no next quote.

    Do you have a more detailed list of strings/tags for us novice php coders?

  47. Kyle says:

    I was curious how I would go about taking off the “Next” link at the bottom?

  48. Srini says:

    Vic and L Haase, I will look into those issues. Thanks for reporting.

    Kyle, you will find the option to turn off ‘Ajax refresh’ feature in the widget controls. This will take off the ‘Next quote’ link.

  49. Mark says:

    Great little widget which is working like a charm! I have one minor gripe, however… if the page is refreshed or another page is visited, the quote randomly changes just as it should. But if the ‘Next quote »’ link is clicked, although another random quote is displayed, the Next quote link then has ‘»’ next to it. Refreshing the page reverts to the usual ». Is there any way to stop this from happening in the fist place?

  50. EnJ says:

    Great Plug-ins? Anyway, how to change the quote text color?

  51. Srini says:

    Mark, I really have no Idea why this happens :? . Did you modify anything in the plugin file? I suggest that you once again download the plugin and replace your version. Is there anybody else having this issue?

    Enj, you can specify your color at the quotes-collection.css file that comes along with the plugin (#quotescollection_randomquote q)

  52. Mark says:

    Srini - I’ve made no changes to the plugin at all. I’ll try reinstalling to see if that helps

  53. Mark says:

    I have tried de-activating, re-activating, re-downloading and re-installing the plugin, but it’s still happening.

    You can see it in action at http://goddessology.co.uk/

  54. Mark says:

    Another quick update. I’ve now edited the plugin and removed the » character from the ‘Next quote’ link…. this seems to fix the problem. Don’t know if there’s an issue with theme I’m using (The Hobbit) or what, but I’ll experiment further and feed back

  55. Mark says:

    Final update for anyone who may have the same issue:
    Rather than simply removing the » character, I have now replaced it with the code &raquo; so it is still displayed.

    All working fine now

    …. sorry for the multiple posts!

    Thanks again for a great plugin

  56. Srini says:

    Mark, thanks for all the updates. I think I should also replace » with &raquo; in the future versions. Thanks again.

  57. Andrew says:

    Hi Srini,
    I try to use this [quote|author=Name Soname] - working, but if I use cyrilic symbols in author - not working.
    It’s working if only ONE word in cyrilic, but not two or more. :-(

  58. Srini says:

    Andrew, thanks for reporting the issue. Fixed in version 0.9.5. :)

  59. david says:

    mate!!! this is brilliant.

    i just uploaded it and the plugin works perfectly. cheers!!!!

    david :)

    http://www.davidsmeaton.com

  60. Barb says:

    Hi - I’ve installed 0.9.5. I click activate and am told plugin activated. However, if I go to enter a quote, the quote won’t be saved. I click “add quote” and I’m taken back to the dashboard. No error message on the screen. I go into phpmyadmin and see the following message “The additional Features for working with linked Tables have been deactivated. To find out why click here.” I “think” this plugin is suppose to create a table, but I don’t see a table created when I look within phpmyadmin. I’m using WP 2.3.2. I have no other plugins installed. Any pointers would be greatly appreciated.
    Thanks,
    Barb

  61. Derek says:

    Someone mentioned a “Quote of the Day”, but what I’d like to see is a “Today in History” plug-in…or maybe a way to adapt this plug-in?

    Thanks.

  62. shamefulcinema says:

    Hi, I’m using Random Quote and I’m having an issue using to display on my sidebar. It seems if I use this method, my first quote comes up and it doesn’t show the quote source. If I hit “next” it refreshes and then displays the quote and source properly.

    I’m using conditional statements to display Quotes everywhere on my site EXCEPT the homepage, so I don’t want to use the widget.

    By the way, the widget works fine! Is there any way to prevent the “next” link using the php line instead of the widget?

  63. Srini says:

    david, thanks mate!!! :)

    Barb, I have no idea why this occurs :( . But looks like it has something to do with the way MySQL database is configured in your server / hosting account.

    Derek, “Today in History” plugin is a nice idea… may be, such a plugin exists already. But I’ll think about it and see if I can develop this idea. Thanks.

    shamefulcinema, there could be a problem with the plugin. I will check it up and get back. Thanks for the feedback.

  64. shamefulcinema says:

    Srini, there’s no problem with the plug-in really. I went in and edited it so that is produced my desired display when using to display the quotes.

    I just adjusted the code here in quotes-collection.php:

    function quotescollection_display_randomquote($show_author = 0, $show_source = 1, $ajax_refresh = 0, $random_quote = array())

    … that prevents the Next display and defaults to showing source, no author.

    I didn’t see anything in the docs regarding this configuration option, so I apologize if it was there and I missed it. The plug-in really works great now. It’s just perfect really.

    -Andy

  65. S.K says:

    Hi Srini,

    I am not using sidebar widgets in my blog. I inserted “quotescollection_display_randomquote” function call in my sidebar. Though the quote was displayed, the “next quote” link was not working. I found that the javascript link was added to the header only when the widget is used. I had to insert the code “add_action(’wp_head’, ‘quotescollection_js_head’ );” next to “if($ajax_refresh == 1) {” and then alone the link started functioning.

    Please fix this bug.

    Also please try and gettext the strings of the code and give a .pot file, so that I could localize it.

    Right now I have hard-coded a couple of strings that appear on the viewer interface in Tamil.

    You can view it here:

    http://kichu.cyberbrahma.com/

    Thanks for the plugin.

    S.K

  66. JakJak says:

    I’m having the same problem as Barb. Whenever I click to add a quote I’m directed to a blank Manage page with nothing saved. I’ve checked all through my database, everything seems great, no other plugins are giving me beef. Thanks

    -JakJak

  67. Srini says:

    S.K, thank you very much for the suggestions. I will soon fix the bug you mentioned. Thanks again!

  68. S.K says:

    Srini,

    Very nice of you!

    S.K

  69. Schulte says:

    How about using…

    $cleansource = stripslashes($source);

    so we can put HTML into the source field and later edit the field without having it get messed up.

  70. Pavel says:

    I want to use to only display random quotes from a particular source. I’ve tried several variations on and it doesn’t work. I’m new to PHP, so I’m probably doing something wrong. Any suggestions? I’d also like to second Tommy’s request for using tags. Thanks.

  71. Srini says:

    Schulte, thanks for the suggestion.

    Pavel, there is no option to display random quote only from a particular source. We’ll probably have this option in the next version. Thanks.

  72. Mattias says:

    Great plugin!
    I was wondering if there is any way to get users to submit their own quotes?

    /Mattias

  73. Jason says:

    Is there a way to have all the quotes I’ve loaded into the quote database load onto a fixed page? (Some people want to read them all quicker than hitting “next quote.”

  74. Srini says:

    Mattias, currently there is no way the users can submit their own quotes. I’ll see if we can have such a feature.

    Jason, placing the code [quote|all] on any page or post will display all the quotes on that page/post.

  75. Georg S. Adamsen says:

    Very nice plugin, especially with the new features in version 1.0.

    I have translated the visible texts into Danish myself, but is it possible to use poEdit on your plugin?

  76. Srini says:

    Georg, the next version will support localization. Thanks for using the plugin!

  77. Georg S. Adamsen says:

    OK. I have translated the current version 1.0 into Danish. Let me know and I will translate the new version as well.

    I had to change the enum-parametres in the database in order to fully localise it. The Danish kit includes a guide that explains what to do.

    I look forward to the next version!

  78. Georg S. Adamsen says:

    See here for info on the Danish edition: Citatsamling, dansk udgave af Quotes Collection

  79. Georg S. Adamsen says:

    Well, it works, but the editor doesn’t, when it is installed. I am not sure why, so I have taken it down. Sorry for the inconvenience.

  80. Srini says:

    Georg, I’ll check it up when it works and will let you know when I work on the localization of the plugin. Thanks.

  81. Georg S. Adamsen says:

    I don’t know how WP 2.3.3 uses the MySQL-database.

    The problem seems to be the following. In order to localize even the ‘yes’ and ‘no’, I changed the enum-parametres. The plugin functions in Danish without errors with this small change. The WP editors, however, does not. For some strange reasons, WP and/or the editors must be checking Quotes Collections’ tables. As soon as the ENUM parametres are changed back to ‘yes’ and ‘no’, the WP editors function again.

    For now I discarded my translation and only translated what the visitors of my blogs will see.

    If you or anyone else knows why the change of the ENUM-parametres has this effect, then I would like to know ;-)

    Thanks.

  82. Gander says:

    We tried using this plugin. It works really well in firefox but doesn’t work correctly in IE 6 or 7.

    We get one quote up, but after that it doesn’t change and the next button doesn’t really work.

    Here’s the error I see:
    Line: 120
    Char: 3
    Error: Expected ‘;’
    Code: 0
    URL: http://www.bigbrood.com/

  83. Bida Denis says:

    Well, script is very good! Thanks to author! ))
    But…
    In some web-servers (like in hosting where my blog is, in Russia) usually data returns in non-utf8 encoding. So WordPress says with function header() to server in which charset returns data. But when using AJAX function in your script don’t tell server in which encoding to send data. And user see only damaged data.

    My blog is in UTF-8 encoding, and SQL base too. So when page loaded I see good-looking quote in russian language. Then when I pressed “Next quote” button - div conteiner reloaded and new qoute return with non-reading characters (in windows-1251, but because page is in UTF-8 encoding - so I can’t read new qoute).
    I have solution for this problem. Just add one line (comment “new line!!!”) in quotes-collection-ajax.php after 12 line:

    <?php

    if(isset($_REQUEST['refresh'])) {
    $blogdir = preg_replace(’|/wp-content.*$|’,”, __FILE__);
    include_once($blogdir.’/wp-config.php’);
    include_once($blogdir.’/wp-includes/wp-db.php’);
    include_once(str_replace(”-ajax”, “”, __FILE__));
    if($random_quote = quotescollection_get_randomquote($_REQUEST['exclude'])) {
    $options = get_option(’quotescollection’);
    $show_author = isset($options['show_author'])?$options['show_author']:0;
    $show_source = isset($options['show_source'])?$options['show_source']:1;
    $display = quotescollection_display_randomquote($show_author, $show_source, 2, $random_quote);
    @header(”Content-type: text/javascript; charset=utf-8″); // new line!!!
    die(”document.getElementById(’quotescollection_randomquote-”.$_REQUEST['refresh'].”‘).innerHTML = ‘”.$display.”‘”) ;
    }
    else
    die( “alert(’$error’)” );
    }

    It works fine. But if blog is not in UTF-8 encoding maybe is need to add array from wp-settings instead text “UTF-8″ in line 13.

  84. Srini says:

    Bida Denis, thank you very much for informing about this issue and for the solution. I will fix this in the next update.

    Gander, thanks for reporting the error. I have never before come across such an error when testing with IE6 or 7 or any other browser, but will check it up again.

  85. Gander says:

    Here’s a bit more information. The problem seems to be with the AJAX part of the code. It works fine when I turn of the little “Next>>” feature but when that is used, we have a problem.

    It seems like if you hit the “Next>>” button between 2-4 times, it breaks after that. It MAY be due to odd characters in the input, for instance a single quote. You might check whatever code is sending things back to see if you’re urlencoding things or … something like that :-)

    We’d really like to use your module and we’d really like to use the Next>> feature.

    Just email me if you’d like more. I tried to put up an example page but I can’t get it to look the same.

  86. Srini says:

    Gander, it could be an issue with the SACK library. I will find out and let you know here. Thanks for your patience.

  87. Gunther says:

    Srini,

    I have just installed your plugin and I am very happy with it - thank you for creating it.

    My WordPress theme uses a small font in the sidebar, and if that font is in italics (the author), it is hard to read. How can I change the styling of the text used for the plugin’s output? I have looked at the included css file but was puzzled.

    Thanks again,

    Gunther

  88. Srini says:

    Gunther, look at the code below and make the necessary changes in quotes-collection.css file.

    .quotescollection_randomquote cite {
    	font-style:normal;
    }
    

  89. Gunther says:

    Srini, thank you - I will try it.

  90. Cynthia Armistead says:

    What a great plugin!

    Is there some way to add tags to the quotes? I’d like to be able to display them by subject, but some of them definitely have more than one “subject.”

    Thanks :-)

  91. Srini says:

    Cynthia, thanks for the suggestion. In fact, quite a few have suggested the tagging feature. Will work on that and will possibly have the tagging feature in a future version.

  92. Jabl[x]o says:

    Hello!
    Thanks for this great plugin. For me, everythink works just fine. I stopped by to suggest 2 little improvements.
    1. Adding configuration of Roles / capabilities to different user roles. Similar functionality is in NextGEN Gallery. This would be just great!
    2. Move ‘Add new quote’ form to the top instead of having there just link to the form.

    Thanks :)

  93. Srini says:

    Jabl[x]o, thanks for the suggestions. Will definitely consider them.

  94. Peter says:

    Hi Srini

    Thanks for the great plugin, It really works cool and I love it :-)

    I have some wishes for the future updates, which could make it even cooler:

    1. The possibility to add a link in the admin panel to both the author and the source.
    2. The possibility to add a small picture to the quotes
    3. The same as Jabl[x]o -> move the ‘Add new quote up!

  95. Srini says:

    Hi there Peter,

    Thanks for the cool suggestions :) I’ll consider those for a future version as I see fit. Thanks!

  96. Mike says:

    Hi there,

    I’m trying to modify your plugin slightly to display words of the day. I want to show Japanese characters so I am using UTF-8, but something strange is happening. When I input Japanese characters directly via the interface in wordpress to add a new ‘quote’, they display correctly. This is fine, but I need to import a lot of ‘quotes’ very quickly.

    So I have tried importing a csv file through phpmyadmin. The characters display correctly when they have been imported into phpmyadmin, but then when I check them via the interface on wordpress, they have become unreadable question marks again. Somewhere in the crossover between phpmyadmin and wordpress, the UTF-8 characters are becoming scrambled.

    Perhaps I just need to specify the characterset in your php files or something simple, but I’m not sure how to do that. Any ideas?

    Thanks in advance!

  97. Srini says:

    There are some issues with character encoding that needs to be sorted out. I’ll work on that and hopefully will sort it out soon. Thanks Mike for that details you have provided, will ask more inputs from you if need be.

  98. Alison says:

    Hi! This plugin is working like a dream for me. I was able to remove the “” by taking out the . I’m using the plugin to rotate misc info, pix, & links.

  99. Mike says:

    Thanks. It also happens on another quotes plugin I tested (Zombie Monkey’s plugin), so it’s not an isolated problem. There’s a much more detailed post I made about it here:

    http://wordpress.org/support/topic/170509?replies=1

    I hope it’s fixable ^^

  100. Pacha says:

    Thanks for this great plugin work like a charm:
    http://www.datajuegos.com
    Sidebar Under “Citas de la Comunidad”

    Wordpress 2.5

  101. Sheamus says:

    Hi

    Great script! However, I don’t use widgets, so have inserted the random quote call

    into my sidebar manually. It works perfectly, except… when you click ‘Next quote’, the name of the author disappears, which means that the user can’t see whom the quote originated from.

    If you refresh the page then the author shows again, but click on Next, and while you get a new quote, there author part is missing.

    Any ideas on why this is happening, and how to fix it?

    Thanks,
    Sheamus

  102. Tim says:

    Hey Srini, firstly awesome plugin. I’ve got it to work on one site and its great so I thought I’d put it on another. Here comes the “but”. But once i put it on this other site it wouldn’t work. I pretty sure the problem relates to the theme of the site and your plugin. The ajax doesnt work, I have to end up refreshing the screen for it to work. I’ve check the error i get when i click on the “next quote” button and in my error console it says “quotescollection_refresh is not defined”. I was wondering if this was a bug, and if there was some code I could change to get it to work. Here is the theme if you wanted to look: http://www.mediafire.com/?tr0gpzbndem

  103. Srini says:

    Ah, there are quite a few things with the plugin that needs a fix. I’ll have to work on these bugs and there will be a new release, probably this weekend. Till then, thanks for all your patience, and thanks to those who reported the bugs.

  104. Mike says:

    Looking forward to it ^^ I’ve had no help with my character encoding problem over at the Wordpress forums yet…

  105. Cole says:

    Hi Srini, AWESOME plugin. This is the handiest quote plugin for WP so far. My only suggestion would is, in the management page can we see the “Add New Quote” fields above the quotes list? This would make it TONS easier to add multiple quotes without having to scroll down a long page of listed quotes first. That’s it. Thank you SO very much for your work on this!

  106. Srini says:

    Note to Tim: Just as I suspected, an important piece of code is missing in the header.php file of the theme you are using. Add the code <?php wp_head(); ?> in your header.php file just above </head> and the plugin will work without problems.

  107. Jabl[x]o says:

    Hello Srini!
    Little suggestion again - I’d like to ask you if it would be possible to change line 371 in file quotes-collection.php like below in next release? This will show number of stored quotes. I hope someone will take this useful, at least I like it :)
    Try for yourself and if you’ll like it, I’ll be glad.

    $display .= “Currently, you have “. quotescollection_count() .” quotes. Add new quote“;

    Thanks & keep up good work!

  108. Nathan says:

    Hi, great plug in. Is there any way to specify an author when using the PHP code you have listed above? If there isn’t, is there a way to install 2 instances of the plug in? I have 2 separate needs for the plug in. 1 for testimonials and another for quotes. I don’t want the two categories getting mixed up when they display occurs. Thanks in advance!

  109. Ray says:

    Excellent plug-in. I wanted to mention that you can put an <a href into the “Author” field and have it link to a site.

    I’m using it to send people to the sites run by people I’m quoting. But…
    Great for links to your Amazon affiliate links!

    I’m going to experiment with changing the font and such - looks like I can do that if I edit the .css or .php files directly?

  110. jenifer says:

    You mentioned using the “tags” listed to do things like display a page of all the quotes, or all quotes by an author, etc., but I don’t understand how to implement this.

    I’m not using this as a plugin, but using the function call to have random quotes displayed as my blog’s subtitle. Can I also create a static page that lists all my quotes? Can you explain how to use these “tags”?

    Thanks!

  111. Srini says:

    My thanks to Cole and Jabl[x]o for the suggestions. It’s a shame that I’m not able to find time and update the plugin regularly… but hope to see an update soon.

    Nathan, what you say is not possible with the current version of the plugin. I’ll however, see what I can do to have different instances of the plugin dealing with different set of quotes. Thanks for the feedback.

    Ray, Amazon affiliate links… yeah :D you just woke me up to a great idea!!

    jenifer, you can have all your quotes displayed in a static page. Just put [quote|all] in the page where you want the quotes to be displayed. [quote|author=Somebody] to display quotes from the author ‘Somebody’. Just experiment with this… it’s actually very easy once you get it.

  112. ian says:

    absolutely great plugin! I’m just having the same problem has Sheamus says above. The ‘author’ is disappearing once the ‘next’ button is clicked. did this bug ever get fixed? Thanks for the help!

  113. Srini says:

    ian, the bug will be fixed in the next release. Thanks for your patience. :)

  114. Peter says:

    Great to see you are still working to improve the already great plugin. Can you maybe list somewhere what the additions/changes are in the beta version?

  115. Mattz says:

    Hi,

    I like this plugin for some random advertisements that I need for my own and want to redirect into my site.

    Is HTML allowed ?

    Making it clickable for a link would be great !

  116. Srini says:

    Peter, one notable addition in 1.1 is the tagging feature. Few bugs fixed, issues resolved, few improvements here and there, internationalization,… I will detail the changes when I release the final version in a couple of days.

    Mattz, html is allowed in quote text, author name and source. So, I think you can use it for your purpose.

  117. Frank says:

    Hi!

    Nice plugin, thank you. But i have some little issues with it and would be happy if you have some hint or fix for that :-)

    My WP is entirely held in UTF-8, but it seems that there are some problems with rendering the german umlaut characters correctly. If i enter them (look clean) and save them, they still look clean, but when i then select “edit” on a quote, the umlauts are somewhat crappy (look like UTF-8 encoded characters displayed on an latin1 environment). After saving, all is fine, so i’m not that concerned about it, since it doesn’t make something break…

    The second issue: If i have a quote with an author and a source, i get displayed “Quote Quote Quote — Author from Source” - the problem is, my language (and thus my website) is in german, and the “from” is then kinda inappropriate :-)
    Is there any idea how to fix this (like having the structure of the output to be formatted on the quote options page?)

    Oh, and there’s a third one :-)
    I see that i can do a [quote|random] in a post, and i can do a [quote|author=Myself] in a page - that’s nice, but i wasn’t able to find out if i can combine these options - i’m collecting quotes from my friends and so it would be great, if i can put specific posts or pages with something like [quote|random, author=Myself source=sportsteam] for example - do you think this might be possible?

    Besides that: Thanks again for this plugin, i think it’s got great potential :)

  118. Srini says:

    Hi Frank, I suggest you wait for one more day for the release of version 1.1 which will address your issues 1 & 2. Third one will have to wait for a future version though. :)

  119. Frank says:

    Hi again,
    Thanks for the update - issues 1 and 2 really seem to be targeted, and issue 3 would have been cleared if the tagging feature would work - but unfortunately, it doesn’t seem to work for me :-)
    I updated the plugin and selected a quote for editing. Added a tag and saved, but the entered data doesn’t show up. Am i missing something? Perhaps the table structure didn’t get updated? Any idea? Currently, i’m even not able to add new quotes, it seems that the complete saving structure doesn’t work anymore …

  120. Srini says:

    First up, if you are using 1.1, please upgrade to 1.1.1 immediately, there was a serious bug in 1.1 which is fixed in 1.1.1. After this, the plugin should automatically update the table structure the first time you visit the quotes management page, but if you are still not able to add quotes, try deactivating and again activating the plugin. Things should start working normally by now.

    And it’s a good idea to back up the quotes table from the database before you perform the plugin upgrade, especially if you have a large number of quotes.

  121. Frank says:

    My installation already contains version 1.1.1 according to the plugins page. I already de- and reactivated the plugin and the table structure seems to be up to date (it contains a ‘tags’ row) but above problems still persist.
    Pressing “submit changes” just reloads edit.php?page=quotes-collection/quotes-collection.php#addnew without any difference. No errors are logged so i even don’t have any hint on the possible cause.

  122. Srini says:

    Frank, I have emailed you requesting more information. Please reply.

  123. Jasper says:

    Thanks! Much appreciated, needed this for…. random quotes! :D

  124. Rich says:

    Great plugin. I use [quote|random] on a separate page, b/c it’s a little tight on the sidebar. Is there an easy way to add the Ajax refresh feature onto the page?

  125. Alan C says:

    Is there a simple way to substitute the tagline with the random quote generator?

    Thanks in advance.

  126. Alan C says:

    Hi there,

    I don’t know php, but would it work to take this line:

    which I think is what generates the blog title and tagline in the header and display a random quote instead of (in place of) the tagline?

    If so, can Srini or anyone else suggest a way?

  127. Michel says:

    Great plugin! many thanks for your plugin! very easy to use. No problem with the last update. Just a detail, is it possible to display the name of the quote author on an other line, something like that?:
    “Les mots, comme les armes, partent parfois tout seuls”
    Daniel pennac