PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old 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.
Jamie Durrant is offline   Reply With Quote
Old July 4th, 2005, 07:36 AM   #2 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
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.
ConqSoft is offline   Reply With Quote
Old 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 ?
Jamie Durrant is offline   Reply With Quote
Old July 4th, 2005, 10:00 AM   #4 (permalink)
Brian
Guest
 
Posts: n/a
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;
  Reply With Quote
Old 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.
Jamie Durrant is offline   Reply With Quote
Old 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
Ramses is offline   Reply With Quote
Old October 10th, 2005, 12:41 PM   #7 (permalink)
Brian
Guest
 
Posts: n/a
Re: Reset Ratings

Yes, it should.
  Reply With Quote
Old 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
Ramses is offline   Reply With Quote
Old October 11th, 2005, 12:34 PM   #9 (permalink)
Brian
Guest
 
Posts: n/a
Re: Reset Ratings

If you're running those through the vB admin cp then you can only run one at a time.
  Reply With Quote
Old 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
Ramses is offline   Reply With Quote
Old October 13th, 2005, 11:28 AM   #11 (permalink)
Brian
Guest
 
Posts: n/a
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.
  Reply With Quote
Old 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
Ramses is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reset Password PunchAlternative Photopost Pro How Do I...? 3 October 16th, 2005 05:23 PM
Reset all user passwords? Lee Wilde Classifieds Installation & Upgrades 2 May 2nd, 2005 08:16 AM
How do I or Can I reset JoeSixPack Photopost Pro How Do I...? 6 April 24th, 2005 04:22 PM
What's the best way to reset an installation? rbl Installs and Upgrade - vBulletin 3.0.X 4 February 21st, 2005 05:57 PM


All times are GMT -5. The time now is 07:42 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0