 | |  | |
July 4th, 2005, 05:52 AM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 5
| Reset Ratings
As I'm intending to award a winner of pictures uploaded once a week/month, I would really like to be able to reset the ratings every week/month.
Is this going to be possible, with a hack or some other way ?
Thank you,
Jamie.
|
| |
July 4th, 2005, 07:36 AM
|
#2 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Reset Ratings
You should be able to just delete all the records from the gallery ratings table.
|
| |
July 4th, 2005, 07:55 AM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 5
| Re: Reset Ratings
Would that be delving into the Mysql database ? I dont think I'd be too happy letting my moderators do that, in case of an accidental screw up.
Is there no other way ?
|
| |
July 4th, 2005, 10:00 AM
|
#4 (permalink)
| | Guest | Re: Reset Ratings
The only way is going to be with some queries...
DELETE FROM adv_gallery_rate;
UPDATE adv_gallery_images SET votenum = 0, votetotal = 0;
| |
| |
July 4th, 2005, 11:05 AM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 5
| Re: Reset Ratings
Ok, thank you Conqsoft & Brian.
|
| |
October 9th, 2005, 11:39 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Southern Germany
Posts: 213
| Re: Reset Ratings Quote: |
Originally Posted by Brian The only way is going to be with some queries...
DELETE FROM adv_gallery_rate;
UPDATE adv_gallery_images SET votenum = 0, votetotal = 0; | Does this still work for vb 3.5?
thanks
|
| |
October 10th, 2005, 12:41 PM
|
#7 (permalink)
| | Guest | Re: Reset Ratings
Yes, it should.
| |
| |
October 10th, 2005, 10:55 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Southern Germany
Posts: 213
| Re: Reset Ratings
I got this error: Beim Ausführen Ihres Querys trat ein Fehler auf. Die folgenden Informationen wurden zurückgegeben.
Fehlernummer: 1064
Fehlerbeschreibung: You have an error in your SQL syntax near ';
UPDATE adv_gallery_images SET votenum = 0, votetotal = 0' at line 1
|
| |
October 11th, 2005, 12:34 PM
|
#9 (permalink)
| | Guest | Re: Reset Ratings
If you're running those through the vB admin cp then you can only run one at a time.
| |
| |
October 13th, 2005, 08:58 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Southern Germany
Posts: 213
| Re: Reset Ratings
Sorry Brian for asking again but I think I'm to stupid, what need I query exactly now? I tried:
DELETE FROM adv_gallery_rate;
or
DELETE FROM adv_gallery_rate;
UPDATE adv_gallery_images SET votenum = 0;
It gets an error,
thank you
|
| |
October 13th, 2005, 11:28 AM
|
#11 (permalink)
| | Guest | Re: Reset Ratings
What's the error? Do you use table prefixes with your forum? If so you'll need to add the table prefix in front of the table names before you run the queries.
| |
| |
October 14th, 2005, 06:22 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Southern Germany
Posts: 213
| Re: Reset Ratings
Thank you Brian it was the table prefix
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 07:42 AM. | |