Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryquestion about ratings and security rolesquestion about ratings and security roles
Previous
 
Next
New Post
4/4/2007 11:11 AM
 

I am confusing about how the ratings work with the different security roles.

Can I set it up so that people can rate items, but only the admin can see the results?

 
New Post
4/4/2007 12:18 PM
 
Unfortunately no you can't. Anyone who can give a rating can also see the results.
 
New Post
4/4/2007 12:21 PM
 

You can sort of do what you want.  There are 2 tags in the template that provide the ratings feature, [RATINGS] which displays the graphical representation of the item's rating, and [RATINGSFORM] which is the actual form that allows a person to rate an item.

The graphics that display the current rating for an item is configurable in the module settings. The images to be used are stored in the /DesktopModules/Repository/images/ratings folder. You can create a new set of images by creating a new folder there, for example a folder named 'noimages'. Then you need a separate image for each rating value from 0 to 10. So create an image that is a button or text that simply says, 'Click to Rate this item'. It must be named the same as the folder + a number from 0 to 10. So you would save your image as noimage0.gif. Then copy it 10 times, renaming each one to noimage1.gif, noimage2.gif, etc.

Then go into the module settings for your Repository and the 'Ratings images' to your new 'noimages' set.

Now, users will not see the ratingm just the image that you created that says 'Click to Rate this item'. When they click on it, the ratings form will be displayed.

Now, here's the sort of  I was talking about .. since you can only have one settings for ratings images, Administrators will also not see the ratings value for items. You'd have to devise another way for Admins to see item ratings. One option, if the Admin has host access is to log in as host and run a Host->SQL Query such as 'select FileName, RatingsAverage from grmRepositoryObjects'.. The other option is to put a dashboard on the page and set it so that only Admins can see the dashboard and set the dashboard mode to 'Highest Rated' and the # of items to display to something large enough to display your items. You can place the dashboard on an Admin only page so that it won't affect the load performance of your Repository page.

Anyways, that would be my recommendation using the current build on how to achieve your goal.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryquestion about ratings and security rolesquestion about ratings and security roles


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out