Previous Thread
Next Thread
Print Thread
Hop To
#140461 06/10/2005 8:13 AM
Joined: Jun 2005
Posts: 2
H
stranger
stranger
H Offline
Joined: Jun 2005
Posts: 2
My users have been asking for a "sunset" provission in the user rating system.

Could such a thing be quickly added to the code to allow the admin to set in a certain ammount of time after which a user could change their rating of a user?

OR a simple way to have the database prune all ratings older then 6 months?

#140462 06/20/2005 2:41 PM
Joined: Feb 2004
Posts: 86
K
journeyman
journeyman
K Offline
Joined: Feb 2004
Posts: 86
the date a person or topic was rated isn't tracked in the database - we only track what was rated, who rated it, the rating itself, and the type of data (content or user) that was rated....

so, that said... the best you could do is run a SQL query on your database to clear out all of the rating entries in the database every so often. obviously, this would mean that ratings from 6 months ago and ratings from yesterday would be deleted just the same, but it might be better than nothing...

if you want to do this, you can run this query from the SQL query box of your control panel's database management area:

DELETE FROM `w3t_Ratings` WHERE `R_Type` = 'u'

this will delete all user ratings. (note that the 'w3t' part needs to be edited to reflect your database table prefix, found in your configuration/primary settings)

Last edited by Kate Sloan-Thaete; 06/20/2005 2:44 PM.

Kate Thaete
Groupee Guide: Scriptkeeper
Groupee, Inc.
#140463 06/23/2005 8:08 PM
Joined: Jun 2005
Posts: 2
H
stranger
stranger
H Offline
Joined: Jun 2005
Posts: 2
Yes, I did do that, delete the rating data...

I also changed the code to generate the number of stars by adding:

Code
      $stars = (($crating / $crates)+.5);
  


to the software where it sets the users "U_RealRating"

Otherwise when a user drops below 5 stars they can never get it back.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 767 guests, and 159 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)