PhotoSmash now has Star Ratings!
PhotoSmash users, check out the new star rating system! It’s a simple 5 star system, with some standard features. You can see a live demo here on Smashly at the PhotoSmash Demo page.
This is still a bit of a work-in-progress, though it should be functional and future changes should be transparent to you.
PhotoSmash Star Rating Features
- Standard 5 star system
- Gallery specific settings
- 2 default positions: overlay top of image (as seen in image above), or after caption
- Allow anonymous ratings, one per IP address – set this in PhotoSmash Settings (bottom of first tab). It’s global to all galleries that have
- Toggle switch allows user to hide/show all ratings per gallery
- To enable a gallery, go to Gallery Settings and edit the gallery, then set the Rating type option at the bottom of first tab
- Hovering over pops up a little info box on the overlay display
- Feature in the works: I’m working on adding a rating type for vote up/down type ratings. This will allow photo contests and other applications
- Feature in the works: Sort by highest rated images
- Need to get Widgets going to have a Highest Rated widget
Feature that would be nice: right now, this system doesn’t show partial stars. If anyone wants to take this on, that would be great!!
WordPress has some great star rating plugins for rating comments and posts, e.g. GD Star Rating and WP-PostRatings, but unfortunately, I wasn’t able to find one that could be plugged in to use for rating images with PhotoSmash. I ended up adapting some code from a jQuery rating prototype that Karl Swedenberg put togther here, itself based on code by Ritesh found here.
Special thanks to Milan of GD Star Rating for the use of the stars used in the gallery!
Appeal for Help!
If anyone wants to improve the rating system, I am definitely open to some help! Ideally, the ratings would display partial stars, as mentioned above. Also, the ability to select other star sets….and if anyone creates star sets that they would be willing to share with the community!
Let me know in the Help page if you find any problems!
Cheers,
Byron
Filed under: PhotoSmash, WordPress
















Wednesday, 6 January, 2010 at 7:54
Hi there,
the ‘Highest Ranked’ plugin doesnt work. Ive tried the highest ranked gallery aswell but no matter how many votes, it still doesnt display
regards
Monday, 4 January, 2010 at 10:41
My sincerest thanks for writing such a much desired plugin. I have only just downloaded it and given it a quick test, and browsed some of the comments and registered on the forum and I must say the plugin, the suppiort and everything else is just great. No sorry, its absolutely fantastic.
Thursday, 8 October, 2009 at 15:42
How do you set the users to login before rating, and; where does the rating stats go? Im a little confused upon that issue. I would like it where the users rates, then it can be calculate.
AND >> the plugin is conflicting with my theme>>> the featured content glider in the stars theme. The jquery in smash photo gallery wont work when I have the theme script/jquery on.
I love this plugin, I believe its the best photo gallery for wordpress-mu so I would like to keep it and tell others.
any suggestions?
Thursday, 8 October, 2009 at 16:55
Hi Mitch,
Glad you’re liking PhotoSmash!
Whether Anonymous users can rate or not is set by “allow anonymous ratings:” on the PhotoSmash Settings page in Admin (no gallery level control there).
Unfortunately, it doesn’t recalculate the rating until the user reloads the page.
As for the jQuery issue, PhotoSmash uses the standard wp_enqueue_script call to load jQuery. This brings in the standard jQuery package that is delivered with WordPress. Please make sure that the theme and no other plugins are bringing in their own versions of jQuery (using wp_enqueue_script to load the script will prevent multiple loads of the script which would cause issues). Not sure what else might be at issue here, but PhotoSmash seems to play well with lots of other plugins that use jQuery as well.
Cheers,
Byron
Thursday, 8 October, 2009 at 17:45
Thanks for the reply, can you make it where you rate the pictures and it moves up stats?
**************************************************
The conflict is pin pointed to the direct file but not sure how to approach it. Photosmash ratings jquery conflicts for some reason on the featured content glider.
Is there a solution to fix the jquery file.
Thursday, 8 October, 2009 at 22:38
Mitch,
I’ll put the ratings update on the list…
As for the jQuery conflict, can you point me to a page where the conflict happens? I’m not familiar with content glider.
I’d like to see if I can see what the conflict is.
BB
Friday, 9 October, 2009 at 0:49
Okay, can you email me?
Thursday, 22 October, 2009 at 8:19
I having the same problem, the plugin is conflicting with my feature content. Did you find any solution?
10x in advance
Wednesday, 16 September, 2009 at 5:32
I’ve a question about the rating system: once the user has voted a photo, is there anyway to track all the votes? i don’t understand the meanings of the rating… but maybe i’m missing something…
Thursday, 8 October, 2009 at 15:42
I with you on that one!
Thursday, 8 October, 2009 at 16:33
Sorry for missing this one…when you hover over a rating (before you click on one of the stars), it tells you something like 3.5(4 votes), which means: average of 3.5 stars on 4 votes.
Hope that helps.
BB
Thursday, 8 October, 2009 at 16:37
It wil be very useful one of the feature in the works: Sort by highest rated images! but for now i use your plugin and i love it. you can see a competition on my site, no problem at all with 100 photos. thank u so much byron
Thursday, 8 October, 2009 at 16:57
Very welcome! I do need to add the Sort by highest rated. And also add a Special Gallery (like Random and Most Recent used in the widgets for highest rated).
Cheers,
Byron
Sunday, 13 September, 2009 at 12:44
Is there anyway to allow anonymous uploads, if so what part of the PHP code would you need to modify?
Sunday, 13 September, 2009 at 12:50
Hi Tony,
Anonymous uploads is baked into photosmash…just set “Minimum role to upload photos:” to “Anybody”, and you’re all set. This is the first option on the Uploading tab in both PhotoSmash Settings (so that any new gallery defaults this way) and on the Gallery Settings page (where you can set specific galleries to behave a certain way).
BB
Sunday, 13 September, 2009 at 13:06
Thanks for the Quick Response Byron!
I have one more question. I’ve set the upload to “Anybody” and added the [photosmash form] to my page. Although it shows up when I am logged in, to a user not logged in it doesn’t show at all. Is there away to change that setting?
Sunday, 13 September, 2009 at 13:07
to clarify the upload link doesn’t show when not logged in.
Sunday, 13 September, 2009 at 13:27
Did you set “Anybody” for the specific gallery you’re dealing with? If so, try putting the gallery id in the shortcode: [photosmash id=## form=std]
I can take a look if you want to email.
Let me know.
BB
Sunday, 13 September, 2009 at 13:37
what’s a good email?
The gallery is showing now, but I just need the upload form link which is not.
Sunday, 13 September, 2009 at 14:48
You can send it to byron at whypad . com
Sunday, 13 September, 2009 at 15:20
Tony,
Should be working now!
Cheers,
Byron
Thursday, 20 August, 2009 at 9:48
Nice to see star ratings… it would be even nicer to be able to rate images in a post
Star ratings, comments… a lot of things would solve itself by adding the images to posts in WP
Nice work, though.
Thursday, 20 August, 2009 at 11:35
Torb,
I hear ya…that’s coming!
Thanks,
BB
Friday, 21 August, 2009 at 2:12
I won’t take this any further from this, as I guess you get tired of nagging… but…
from the list of feature requests, you would get “Comments for individual images”, “Add categories and tagging”, “Random…”, “Highest..” and “Most recent..” by using the built-in functionality in WP…
Friday, 21 August, 2009 at 12:16
Torb,
You’re exactly right…here are 2 sites that I did some PhotoSmash customization work for that do what you’re talking about:
Before and Afters
SavorySights
Cheers!
Byron