PhotoSmash now has Star Ratings!

tulips-ratingPhotoSmash 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
  • 25 Comments

  • Dean Hodges says:

    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

  • sambkk says:

    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.

  • Mitch says:

    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?

    • byron says:

      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

      • mitch says:

        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.

  • Come Faccio per says:

    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…

    • Mitch says:

      I with you on that one!

    • byron says:

      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

      • come faccio per says:

        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

        • byron says:

          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

  • Tony says:

    Is there anyway to allow anonymous uploads, if so what part of the PHP code would you need to modify?

    • byron says:

      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

  • torb says:

    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.