Webmastersite.net
Register Log In

Rating Changed on Edit Link

Comments on Rating Changed on Edit Link

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Dec 27, 2005 - 10:57 PM:

I have a link that was rated 5 stars. This showed correctly until I added another file attachment, now it shows not yet rated and 0/5 BUT it states there IS 1 vote. If I click "show individual votes" it shows the vote there.


Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 30, 2005 - 11:18 PM:

Odd, but I can reproduce this. Should be fixed shortly.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 31, 2005 - 12:03 AM:

In edit.php change
       $thislink->sumofvotes = ($thislink->votes) * ($thislink->rating);
to
       if ($_POST['rating']) $thislink->sumofvotes = ($thislink->votes) * ($thislink->rating);
. That seems to do the trick.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.