How to Change the Rating Stars in SharePoint 2010

12/17/2009

SharePoint 2010

I’m a real fan of the new rating system in lists and document libraries. However, what if I don’t want stars? Or, what if the blue doesn’t match my company branding? I’ll show you how to change the stars to anything you would like, in this case, smiley faces!

This is applied at the site collection level and the change will be inherited by all sub-sites.

Preparation:

What images you’ll need: (must be 16×16 pixels)

  • Empty – an image of your icon as it appears unrated (ex. the white star)
  • New – an image of your icon that will be used as users hover over the ratings (ex. the yellow star)
  • Half – an image of your icon that will be used to represent half ratings (ex. the half blue star)
  • Rated – an image of your icon as it will appear rated by others (ex. the blue star)

Copy the new and empty icon images to the “14 hive” images folder. In most installations, this will be found at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES. The other two will be used to create the ratings strip described next.

Okay, so we need two images that match the concept of the Ratings.png and Ratingsrtl.png images found in the 14 hive’s images folder:

 ß Ratings.png

 ß Ratingsrtl.png

Use your favorite graphics editor (I highly recommend Paint.Net – it’s free and awesome!):

Copy the Ratings.png and Ratingsrtl.png from the images folder, open them up and paste over the stars with your icon, substituting them as noted below:

  • Yellow star = New icon
  • White star = Empty icon
  • Blue star = Rated icon
  • Half blue star = Half icon

The results from the use of smiley faces:

 ß Smileys.png

 ß Smileysrtl.png

Save these two new images to the images folder in the 14 hive and you are ready to begin the steps! (Yes, that was just the beginning, but the hard part is over.)

Process:

Assuming you have already enabled ratings within a library or list, this is what the default looks like:

Click here on how to enable ratings

Launch SharePoint Designer 2010 and open the site collection where you would like to change the rating icons, and then click on Site Options within the ribbon UI:

On the Parameters tab, highlight and click Modify for ratings_emptyiconurl to change the image filename and location to the empty icon in the images folder:

Note: use /_layouts/Images/yourfilename.gif to represent the folder location and filename of your icon.

Repeat the step above for the remaining ratings parameters:

  • ratings_newratingiconurl = new icon image
  • ratings_imagestripurl = icon range image (ex. Smileys.png)
  • ratings_imagestriprtlurl = icon range right-to-left image (ex. Smileysrtl.png)

Click Apply on the Site Options window after making all of the URL changes, close SPD 2010 and then perform an IISReset. Go back to your list or library and you should now have smiley faces instead of stars!


You might see the new and empty icons working right after you apply the changes, but I did not get the full functionality until I did an iisreset.

Advertisements

Subscribe

Subscribe to our RSS feed and social profiles to receive updates.

5 Comments on “How to Change the Rating Stars in SharePoint 2010”

  1. Spenser Goodwin Says:

    Is there a way to make it so only one star (or smiley face) is available for users to mark?

    Reply

    • Adam Preston Says:

      Not that I’m aware of, Spenser, using this control. Probably so via a custom coded approach – but I’m not a developer. 🙂 Thanks for visiting the site!

      Reply

Trackbacks/Pingbacks

  1. Create a “Top 10 Rated Documents” web part using the Content Query Web Part « SP2010 Blog - 01/19/2010

    […] How to Change the Rating Stars in SharePoint 2010 […]

  2. Rating e Content Query Web Part « NonsoloSharePoint – Baxy's Blog - 09/21/2010

    […] ma è chiaramente possibile crearne di nuove (interessante questo How To: How to Change the Rating Stars in SharePoint 2010). […]

  3. Sharepoint smiley | Sejani - 07/08/2012

    […] How to Change the Rating Stars in SharePoint 2010 | SharePoint …Dec 17, 2009 … Launch SharePoint Designer 2010 and open the site collection where … Go back to your list or library and you should now have smiley faces … […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: