Star Rating for Reviews is a simple WordPress plugin that inserts pretty rating stars based on the score you assign using intuitive, inline [rating:] tags. It can also calculate and output overall ratings for you based on all previous scores you have assigned, useful for reviews that have multiple categories or an album review where each track is assigned a score.
This plugin supports storing rating data into your WordPress database. These data can then be retrieved by functions provided to output a list of reviews, sortable by date, post title or rating scores. Random reviews function and single post function (to be used in WordPress loop) are also provided, see Usage section for detailed description of these functions.
Features
- uses simple, intuitive tags to generate kawaii inline rating stars for your posts
- supports versatile rating systems
- supports text only output for RSS
- automatically calculates and displays overall ratings, if desired
- supports storing rating scores automatically into database *
- supports outputting list of reviews sortable by date, post title or rating scores *
- supports widget-like, sortable table of reviews *
- supports custom star images
- supports custom prefixes and suffixes for your own CSS class
- supports globally forced star count for consistency
- uses as many stars as you want! **
- standards compliant: valid XHTML
* database writing has to be enabled via Options
** limited to 20 for practicality
Usage
Presentation
Data (for advanced users)
Presentation
Once installed, you can add rating stars to your posts by using [rating:] tags.





By default, this will be interpreted as 3.5/5, as shown in the rating stars generated. Default denominator can be changed via options detailed in the next section. Even though this tagging style is simple, it might not be future proof when someday you decided to change the default denominator to say 10 (for whatever reason). In this case 3.5 will be interpreted as 3.5/10, which is very different compared to 3.5/5. Once you start using this tagging style, make sure you are not going to change the default denominator in the future. :)




“3/4″ will generate a “3 out of 4 stars” rating and “2/8″ will generate “2 out of 8 stars” and so on. This will continue to work as long as the denominator is not larger than 20. Beyond that, the score will be normalized and display in the default 5 stars system, as shown in the next example.





The “Rating:” prefix you can see in all examples above is the default prefix, which you can remove easily to show just the stars or add in your own custom CSS class by changing some options. More information about this in the Options section.
Overall rating:
Automatically calculated overall rating based on previous scores can be inserted using the following tag style:





Similar to the first example, this overall rating will be represented in the default 5 star rating system. It is possible to force the overall rating to be outputted in different number of stars by using the following tag style:




The “Overall Rating:” is again, the default prefix, which can be changed via options. For more information, see Options.
Custom images:
First of all, the default star image used is taken from the excellent Silk icon set. These png icons support different background colours via png transparency. However, you can still use your own star images by replacing the 3 images included in the “star-rating” plugin folder, namely “star.png”, “halfstar.png” and “blankstar.png”. File extensions can be changed via options if desired.
For your information, “tiny-star.png”, “tiny-halfstar.png” and “tiny-blankstar.png” are only used by special functions that output list of reviews based on stored data in the database. Feel free to replace them with your own images as well if desired.
Text only output:
By default, this plugin will output text only ratings for your RSS feeds and use graphical output when someone is reading the post on your site. This is, in my opinion, the optimal choice since some RSS readers do not support images. However, if you like you can output images for your RSS feeds too, or oppositely, output text only ratings for both RSS and posts displayed on your site. Please refer to the Options section if you want to make these changes.
Data (for advanced users)
Database writing is turned off by default. In order to use these advanced features, you will need to manually turn it on by changing the option values, see Options for more details. If you are not interested in this feature, you should skip this section.
Custom fields
If database writing is turned on, this plugin will parse your document searching for rating tags and store the overall rating score into a custom field called “rating” when you edit or save your blog post. The name of the custom field can be changed via options to prevent conflict with other plugins. The reason why custom field is used instead of a new database table is the ease of implementation and the fact that most people write reviews occasionally. The downside of this is when uninstalling this plugin, you will need to manually remove those “rating” entries within the custom field table.
To check if this plugin is doing its job, once you turned on the database writing, go to edit one of your older posts which already used the rating tags (or simply insert the rating tags into any post if you’re new to this plugin) and choose “Save and Continue Editing”. Now, check the custom field near the bottom of the editing panel to see if a new “rating” field has been added. If it’s there, congrats, this plugin is working properly; if it’s not, you might have forgotten to turn on the database writing option, or the rating tag is invalid. Feel free to post your questions here (with detailed explanation) if you can’t get this to work.
Once you turned on this auto insert feature, you can still disable it for specific post by putting [rating:none] anywhere in your blog post, preferably at the bottom for tidyness.
Functions
4 different functions are provided in this plugin that allow you to output a list of reviews based on date, rating score, or randomly selected. These functions uses “rating” custom field data to retrieve and sort the reviews. You need to either turn on autometa (see Options) or manually put these rating in yourself.
1. sr_getreviews()
sr_getreviews($limit, $orderby, $order, $usestar, $prefix, $suffix)
$limit
- number of reviews to be returned
Acceptable value: any integer
Default value: 5
$orderby
- criterion used to sort the review
Acceptable value: “date”, “title”, “rating”
Default value: date
$order
- sort ascendingly or descendingly
Acceptable value: “ASC”, “DESC”
Default value: “DESC”
$usestar
- number of star to be used for rating
Acceptable value: any integer
Default value: 5
Note 1: put in “0″ to output rating in percentage i.e. numerically
Note 2: rating stars used are with tiny prefix (tiny-star.png, tiny-blankstar.png etc.), they are smaller than regular stars in blog post
$prefix
- prefix to be put before the code for each reviews
Acceptable value: any valid XHTML tags or plain text
Default value: “<li>”
$suffix
- suffix to be put after the code for each reviews
Acceptable value: any valid XHTML tags or plain text
Default value: “</li>”
<?php sr_getreviews(5,date,DESC,5); ?>
You can also output ratings in percentage format as illustrated below:
<?php sr_getreviews(5,date,DESC,0); ?>
2. sr_getrandom()
sr_getrandom($limit, $usestar, $prefix, $suffix)
See the explanation above for each parameter.
<?php sr_getrandom(5,5); ?>
3. sr_listreviews()
sr_listreviews($orderby, $order, $usestar, $date, $limit)
This outputs list of reviews in a widget-like, sortable table format. (implemented using the awesome tablesorter plugin for jQuery)
$date
- format of date to be used
Acceptable value: PHP date format
Default value: “M j, Y”
$limit
- number of reviews to be returned
Acceptable value: any integer
Default value: “0″
Note: “0″ limit implies no limit i.e. retrieve all available reviews
<?php sr_listreviews(date,DESC,5,"M j, Y",10); ?>
| Date | Title | Rating |
|---|---|---|
| Tips: Shift+Click to sort multiple columnsPowered by Star Rating for Reviews | ||
| 2008-05-06 May 6, 2008 | Mop Girl | 70 ![]() ![]() ![]() ![]() ![]() |
| 2008-05-02 May 2, 2008 | Perfume - GAME | 89.2 ![]() ![]() ![]() ![]() ![]() |
| 2008-03-17 Mar 17, 2008 | Perfume ~Complete Best~ | 71.7 ![]() ![]() ![]() ![]() ![]() |
| 2008-03-10 Mar 10, 2008 | alan’s debut | 85 ![]() ![]() ![]() ![]() ![]() |
| 2008-03-08 Mar 8, 2008 | NEWS - touch | 65 ![]() ![]() ![]() ![]() ![]() |
| 2008-02-27 Feb 27, 2008 | GUILTY | 90 ![]() ![]() ![]() ![]() ![]() |
| 2008-02-25 Feb 25, 2008 | Ai Otsuka - LOVE JAM | 85.5 ![]() ![]() ![]() ![]() ![]() |
| 2008-01-15 Jan 15, 2008 | Winter Ballades of Nami Tamaki | 83.3 ![]() ![]() ![]() ![]() ![]() |
| 2008-01-09 Jan 9, 2008 | Close to Fantasy | 65.5 ![]() ![]() ![]() ![]() ![]() |
| 2007-12-13 Dec 13, 2007 | Together When… | 100 ![]() ![]() ![]() ![]() ![]() |
4. sr_getsingle()
sr_getsingle($post_id, $usestar, $prefix, $suffix, $size)
This function is intended to be used within the WordPress Loop. You can put this within the loop to display rating score or stars in categories, tags, or main page for each posting. See examples: categories, tags, main page.
$post_id
- the ID of current post within the loop
Acceptable value: $post->ID
$prefix, $suffix
- prefix, suffix to be added before and after the ratings code returned
Acceptable value: any valid XHTML tags or plain text
Default value: ” (empty)
$size
- the size of stars, can be normal or tiny
Acceptable value: 0, 1 (0 for tiny stars, 1 for normal stars)
Default value: 0
For $usestar, see the sr_getreviews().
Customization
Starting from version 0.4, a default CSS is imported into the WordPress header, which I hope will work nicely with your blog theme. If not, feel free to open the CSS and edit it or disable the CSS import by setting $sr_mycss to 1, which will remove all the default styling for CSS classes associated with this plugin.
By default, ratings and reviews returned by listing functions are hardcoded with special CSS classes, namely “sr-review” for the review permalink and “sr-rating” for the ratings returned, which can be either numerical percentage or star images.
You might want to take a look at another plugin I’ve written called “MyCSS”, which allows you to attach and edit custom stylesheet that’s independent of the blog theme you’re using. This makes it convenient and easy to organize theme independent CSS classes such as those used in plugins, saving you the trouble of appending these classes into your theme’s core CSS everytime you change a theme.
Options
Hopefully this plugin will work as desired in an “out of the box” way so that you don’t need to change anything. However, several extra options are still provided for those of you who would like to have it your way. :)
Since this plugin is still in its early stage, setting options in the WordPress admin panel is not supported yet. For now, you will need to open up the php file using either your favourite text editor or WordPress built-in plugin editor to change some of the variables you can find near the top of the code.
$sr_limitstar: globally set star count, e.g. putting 5 will ALWAYS generate your score using the 5 star rating system, put 0 to disable this feature$sr_defaultstar: default denominator when not explicitly specified in your tags$sr_prefix: custom prefix for normal ratings$sr_allprefix: custom prefix for overall ratings$sr_suffix: custom suffix, leave blank unless you want to close html tags$sr_ext: file extensions for custom star images, e.g. gif, jpg, png$sr_usetext: text only output settings, accepted values are 0, 1 and 20: images for posts and feeds
1: images for posts, text for feeds
2: text for all$sr_mycss: using your own CSS? if yes, put in 1 to disable default CSS import$sr_cuttitle: shorten post title to specific amount of character, put 0 to disable title cut off
The following are advanced options, mainly to turn on the functionality of storing ratings into database as custom field values:
$sr_autometa: 0 to turn off database writing, 1 to turn it on, this feature is disabled by default (it’s stable, I’m just leaving the choice up to advanced users)$sr_metakey: meta key for custom field, change this if there’s conflict with other plugins
Installation
- Download and extract the “star-rating-for-reviews” folder
- Upload the “star-rating-for-reviews” folder to your WordPress plugin directory, usually “wp-content/plugins”
- Activate the plugin in your WordPress admin panel
Upgrade
- Deactivate the plugin in your WordPress admin panel
- Remove the “star-rating-for-reviews” folder in your WordPress plugin directory
- Follow the installation guide above
Download
Star Rating for Reviews plugin 0.4 for WordPress (30kb .zip)
.psd file for tiny-stars (15kb .zip)
|
* This plugin has been downloaded 4111 times since May 9, 2007 ( 2279 times since version 0.4 ) |
Support
If you have any questions, suggestions, or found any bugs in this plugin, feel free to post them in your comments. I’ll try my best to answer them but there’s no guarantee, so don’t be disappointed if you do not hear back from me promptly. :/ If you find this plugin useful and feel like donating some money for my effort, please use the PayPal button above, thanks! <3
History
0.4 [2007.11.02]
- Added: Sort reviews by title
- Added: sr_listreviews() function to output all reviews in a sortable table (good for dedicated review page)
- Added: Default CSS stylesheet (can be turned off via options)
- Added: Cut off long title when getting list of reviews for sidebar
- Changed: XHTML markup for list of reviews generated
- Changed: Tiny star images
- Fixed: Division by zero if overall tag is placed at the top of a post
- Misc: Cleaned up the code and fixed minor bugs
0.3.1 [2006.09.12]
- Fixed: Sorting bugs
0.3 [2006.08.08]
- Added: Support to store rating data into database
- Added: Functions to output list of reviews, sortable by date or by rating scores
- Added: Filter to parse excerpt
- Added: Skip tag parsing by using ` character (suggested by Denis)
0.2 [2006.07.28]
- Fixed: Path error
- Fixed: [strong] instead of [b] for W3C standards
- Fixed: RSS text output bug
0.1 [2006.07.08]
- Initial release




197 responses so far ↓
Pages: [4] 3 2 1 » Show All
emma
// May 7, 2008 at 8:41 am
I meant a border in fact…
emma
// May 6, 2008 at 5:38 pm
Hi, great plugin, unfortunately not working for me.
Each star got a little frame around it because all the images on my blog do. Do you think there is a way to resolve this ?
LT
// Apr 13, 2008 at 7:36 pm
I think this is what I’m looking for, however have wp 2.5 installed. Is there going to be a new plugin which supports version 2.5? Or can i install the current version (i note on the wp website that it is only compatible to wp2.3)? has anyone tried? if not, can anyone suggest where i can find one? thanks.
Bernardo
// Apr 12, 2008 at 6:23 pm
Yeah, I’m really hoping for a sort by category function here, as it is a vital part of my website. I review about 5/6 different categories (movies, applications etc), so I’m looking forward to that :)
-konfusion
DanGarion // Apr 8, 2008 at 1:42 pm
It took a bit of work, but I was able to edit up your plugin to work the way I needed it to in my sidebar. I wanted it to not show the ratings in the sidebar I just needed it to list the reviews in alphabetical order. It doesn’t appear that you set it up to do that, so I had to remove the else code that enabled text % showing so it would just not show anything if I picked that view, plus I had to remove the li code so it would just show up as a regular listing instead of a list with spacing.
Perfect!
Ted Bovis
// Apr 8, 2008 at 10:24 am
Hi,
This looks like it may be useful for me. Currently I run the dan grossman review script but it malfunctions. Could someone give me a couple of links of places where I can see this script in action so I can see what its capabale of
Sistemas para puntuar/valorar tus posts » BlogMundi
// Apr 5, 2008 at 8:26 pm
[...] Star Rating: también te permite crear listas, personalizar las estrellas y aumentar su número… [...]
Star Rating for Reviews plugin at BloggingAmigos // Apr 1, 2008 at 1:41 pm
[...] If you’re doing some kind of reviewing on your blog and would like to attach a star rating system to posts, you might want to check this plugin out. Here is a link to the website. [...]
carla
// Mar 29, 2008 at 7:12 pm
Hello. The plugin is not working on my site. I did exactly as the instructions said but I am getting the stars to show up right before the last line of text and then the word “rating:” is just the last word of the post. Can anyone offer any suggestions?
Jenn
// Mar 27, 2008 at 1:08 pm
Hi! This is exactly what I’m looking for to use in my product review blog, in-my-bag.com. Thank you so much for creating this awesome plugin. I can’t wait to get started with it!
moveye
// Mar 25, 2008 at 11:16 am
Thanks a lot, it works now, custom fields had just slipped my mind.
A wonder, superb plugin , truly awesome.
Thanks a ton!
moveye
// Mar 25, 2008 at 10:56 am
Dear Yaoson, I must thank you for creating such a wonderful and simple to use plugin.
It worked superbly on my site, however, I’m facing a strange problem for since today.
For some reasons and I reinstalled the plugin and the new review that I added today is not showing up in the sidebar and custom review page. can you please have a look.
Thanks,
moveye
Sid
// Mar 21, 2008 at 3:58 pm
I coundn’t use your report tables because sg_warning() was called.
empty(…) function fails: it reports the query result is empty, but it is not.
Commenting the if statements that cause sg_warning() to be called, resolved the problem.
TJ
// Mar 21, 2008 at 3:18 pm
Hello,
Has anyone figured out a way to output the top reviews for a specific category?
Sort of like
But to such a way to filter it to a specific category?
Thanks,
TJ
Sheamus
// Mar 21, 2008 at 3:03 pm
Thanks! :)
Rob
// Mar 21, 2008 at 3:01 pm
Sheamus, you are correct. You’re not allowed to put PHP code inside a page/post. But with ExecPHP, I believe you can. But you may have to enable PHP code to execute on that particular page, perhaps in the Custom Fields section?
But a far better, more secure method would be to just make a template file. Copy one of your theme PHP files, like page.php, or single.php. Then rename the copy to whatever you like, like reviews.php. Then insert the specific plugin code you want displayed. Don’t forget to rename the template comment to “Reviews” or something.
Then write a new Page using the template you just created. Voila!
Sheamus
// Mar 21, 2008 at 2:26 pm
Hi there
Great plugin! I’ve got it working perfectly and using the execphp script have it displaying nicely within my sidebar. :)
My question - if I wanted to set up a post that displayed, say, The Top 100 Movies, how would I go about inserting the PHP code so that it functioned when writing that post?
I’ve tried adding the PHP to the ‘code’ part of Wordpress’ write page area, i.e.,
… but it just ignores it when published.
I’m fairly new to WP and not sure whether any PHP (or similar) can be inserted into posts (or pages).
If this is the case, how would I go about getting around this? Or maybe I’m just being a dunderhead about it generally!
Thanks for any help.
Sheamus
DanGarion
// Mar 18, 2008 at 5:01 pm
I’m having the same issue some others have mentioned.
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /hsphere/local/home/wipeout/cubicleboys.com/wp-content/plugins/star-rating-for-reviews/star-rating.php on line 327
I’ve attempted to use exec-php and put the ratings into a widget to list on my sidebar and then I get this issue.
It appears some others have this as well. I tried to fix by removing the Half Star info on line 327, but that didn’t resolve it.
Let me know if you are aware of a fix. Thanks!
Peter Willis
// Mar 16, 2008 at 4:06 pm
Is it possible to make the table sorter query…
…work so that it only outputs results from X category. I have a site which has both Movie Reviews and DVD Reviews, which are in their own wordpress category.
Geoff
// Mar 14, 2008 at 7:12 pm
I’m being contracted to put together a WP site that, among other things, posts political positions from politicians and commenters can decide if they strongly agree, agree, are neutral, disagree or strongly disagree with the elected official’s position.
I was wondering if your plugin is capable of representing this range in place of the 5 stars?
I’m most concerned about the reporting/displaying the current commenter’s choice vs. all the previous commenters.
Is a traditional polling plug-in better suited than your plug in for this?
Sean
// Mar 7, 2008 at 12:50 am
I love the idea of this plug-in. I can get the ratings to show, but I’m totally lost on how to get the table to work.
I’d love to have a page that shows all the links to the reviews plus the ratings, but can’t figure out how to get it on a page. can anyone help me?
.sean
Himbeerlola.de » Blog Archive » Die Lola hat neues Spielzeug
// Mar 5, 2008 at 11:58 am
[...] mich in die sumpfigen Untiefen von WordPress vor. Nach langer Suche habe ich grade ein schickes Plugin gefunden, mit dem ich meine zukünftigen Verrisse Reviews optisch untermalen kann. Und bis ich nix anderes [...]
2 more cool plugins to tell you about by Information Doorway
// Mar 5, 2008 at 7:09 am
[...] Read more about it and download here: http://www.channel-ai.com/blog/plugins/star-rating/ [...]
WP Plugin Review » Blog Archive // Mar 4, 2008 at 2:46 pm
[...] Star Rating for Reviews Allows the writer to assign a star rating from the write/manage page using a tag . There are also more advanced uses for this plugin that will be worth further investigation. [...]
Michelle // Feb 28, 2008 at 11:48 pm
Hi. I really like your plugin and would love to use it, but every time I try to get it to work in my post the stars come up as broken images.
You can see what I mean on my test post: http://www.burgerbikers.com/
I tried uninstalling and reinstalling the plugin but it didn’t help.
Any advice?
rick
// Feb 24, 2008 at 11:11 am
Fantastic plugin, I use it on on my anime review blog and it’s just fantastic :)
Thanks again,
Rick
TJ
// Feb 22, 2008 at 6:11 pm
Hi,
Is there a way to output the top reviews per category? So that if a person is reading a review about wine, I can output the top wine reviews, but when they read a review about cheese they can see the top rated cheeses?
Let me know if you see a way to accomplish this. Thanks for the great plugin.
TJ
Fabio
// Feb 21, 2008 at 1:07 pm
Hi, congrats for your work, really polished and complete.
I think this plugin should be useful for critics community, or better for a multiple authored blog. In that case the overall rating would be used to make an average of varius opinions… but, tell me if I’m wrong, there would be no chance to retrieve data about ratings from a single reviewer… am I right?
nobodieshero
// Feb 20, 2008 at 11:55 pm
Sorry for the double post I figured before I removed the reviews thing from my sidebar so its stops looking so gross i would take a screen shot for you.
Example
nobodieshero
// Feb 20, 2008 at 11:28 pm
Hey I am getting this same error Hugo was. x.5 some how destroys my site by creating this error:
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /hsphere/local/home/wipeout/cubicleboys.com/wp-content/plugins/star-rating-for-reviews/star-rating.php on line 327
Help!
WordPress plugin - Star Rating for Reviews | GO Blog
// Feb 18, 2008 at 9:56 pm
[...] plugin review I have done, and it was prompted by the beautiful simplicity and elegance of the Star Rating plugin by eyn at Channel-Ai. The plugin that eyn’s created is very easy to use, but has a whole selection of features and [...]
Authority Online Magazine // Feb 16, 2008 at 5:00 pm
I hear that there are 6 plugins for Wordpress that can be used to start a product review blog but… I’ve tried to do a Google search to find them myself but I only managed to find 1 of them:
1) The DG Review Site (DGRS) plugin for WordPress
can anybody help here?
Retazos de la web del 2008-02-15 (microblogging) | hombrelobo, una mente dispersa
// Feb 16, 2008 at 7:01 am
[...] 6 - Star Rating for Reviews [...]
Ian Walker
// Feb 12, 2008 at 5:30 pm
Hello, is it possibe to allow ratings to be added in the ‘comments’ field?
eg. Admin adds a shop, in the category,
and then the people who post comments, give the ratings?
Redesign Projects Over the Thanksgiving Break | The WordPress PAD // Feb 12, 2008 at 12:57 am
[...] recently I decided I wanted also to feature reviews and star ratings for the reviews. I used the star rating plugin from Channel AI to create a revised reviews section, which replaced a “looking forward” section which [...]
Joo
// Feb 11, 2008 at 5:28 pm
I’ve been trying to figure this one out for a long time now but to no luck, so:
How do you set a fixed width to the columns? Cos right now my ratings column is affected by the name of the review in the title column, i.e if it’s a long name it just expands in width and my rating stars show up in two rows instead of one.
Rob
// Feb 11, 2008 at 12:24 am
Hey all, here’s an application idea that came to me today. I’ve been using Star Rating for some time now. Great plugin. I write movie reviews, but I also like to write comparison reviews, where I compare two movies.
This is where the plugin can’t quite work for me in the database method, since the two movies are on the same WordPress post page (only one Custom Field is allowed in a post).
But I want each movie to have its own value in my database, which allows them to show up in my output page. Here’s my workaround:
I create two more posts by each movie’s title. Then I use the plugin Page Links To. I create the Custom Field for the rating, and also add the Custom Field for the Page Links To pointing it back to the comparison post. This way, each movie gets its own entry in the database, but both point to the same comparison post.
Neat!
Hugo
// Feb 3, 2008 at 12:58 am
Hi eyn,
I got another weird value in meta_value, again around 6000 (I don’t remember the exact value).
What I did was the following: write a post with a [rating:4.5], save it a few times, then change to [rating:4] and save it a few more times, and finally publish.
eyn // Jan 28, 2008 at 9:53 pm
Hugo, thanks for telling me about the problem but unfortunately I cannot reproduce the error. Do you think you can provide me a little more information about how that happened?
Heather, unfortunately this plugin cannot help you with the rating transfer. If the plugin you use uses database to store its rating, a script could be written to do the transfer but I do not think I have the time to produce such an importer. My suggestion would be to have both plugin enabled and manually update each review, one at a time.
Heather
// Jan 28, 2008 at 4:28 pm
I have a current rating plug-in on my blog that I want to get rid of but I don’t want to get rid of all the reviews and ratings. Is there anyway to transfer that information so that it can be used by this plug-in?
Spontaneous Derivation » Moving from Beta Blogger to a Self-Hosted Wordpress for First-Timers, Part 3: Plugins and Little Things
// Jan 28, 2008 at 12:07 am
[...] 4. Star Rating for Reviews [...]
Hugo
// Jan 24, 2008 at 1:43 am
Something weird happened with $sr_autometa. I rated something with [rating:4.5], and 6318.1 was stored for this post as meta_value.
This triggered the following:
str_repeat() [function.str-repeat]: Second argument has to be greater than or equal to 0.
I’m not sure how to reproduce it at this point, unfortunately, but this is not an isolated incident, considering that there are other sites with this error:
Example
Sid
// Jan 22, 2008 at 3:46 pm
Hi eyn,
thanks for your reply!
No, the ratings are in posts, not pages.
Using the wordpress built-in categories would be a good solution.
eyn
// Jan 22, 2008 at 3:42 pm
Sid, all the get and list review functions will only search for blog posts but not pages, do you think it could be the problem?
And regarding adding specific category for reviews ratings, I could probably get it to work with WordPress built in category i.e. if the review is posted in “movie” category, the get reviews function can retrieve reviews only in that category.
For those who want custom text beside your ratings, you could write something like
[rating:3/5] - Good movieto get the output you want.Thanks for the feedbacks and keep your suggestion coming. fyi, I am planning to implement an admin panel for customizing this plugin when I release version 1.0 of this plugin.
Sid
// Jan 16, 2008 at 10:52 am
A problem: I enabled the auto writing of meta data, and the metadata is correct, with the correct key, but the query sr_listreviews(date,DESC,5,”M j, Y”,10) returns “Please make sure database writing has been enabled via plugin options and have at least one blog entry having its custom field properly set. See documentation for further info.”.
Using the inline PHP plugin, but tested also writing directly in the template php file.
Sid
// Jan 16, 2008 at 10:27 am
Hi! Great plugin! I would suggest to add an explanatory text linked to the score,
example:
3 stars - good movie
In that case, the text could be linked also to the category of ratings (books, movies, ecc…)
Very good job!
Mike
// Jan 4, 2008 at 11:04 am
Great plugin! Exactly what I was after.
Now if you could somehow categorize them for later retrieval, that would be great!
For instance [rating,music:4/5] and [rating,movie:2/5] This way you can retrieve stats based on the category.
I love how easy it is to use! :)
Pages: [4] 3 2 1 » Show All
Leave a Comment