Rating mode: How to change first vote to 5 instead of 10

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-14-2007, 08:16 PM
New Pligger
 
Join Date: Aug 2007
Posts: 10
I'm using the Rating mode in my Pligg installation. Since the ratings are based on an average, as soon as a URL is submitted it's already a 5/5. I would like to change the initial vote that's cast to something other than 10, like 5 or even 0.

I've been digging through submit.php, link.php, and votes.php, but I can't find out where the initial submission vote is inserted into the DB. The only thing I've found is the "insert_vote" function, which is declared as

Code:
function insert_vote($user=0, $value=10)
Does this function insert that initial vote? If I change the default value to something other than 10, will that only affect the first submission vote?

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-17-2007, 02:48 AM
New Pligger
 
Join Date: Aug 2007
Posts: 10
I found it in submit_step3.tpl. I wasn't expecting the code in a template file.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change vote button sabmeh Questions and Comments 4 06-23-2009 05:17 PM
change image after the vote button click minette2 Questions and Comments 1 10-09-2008 04:21 AM
How to Change the Voting System to Vote For/Vote Against davidlgj Questions and Comments 0 10-01-2008 05:42 AM
How to change Vote Image rubber2002 Questions and Comments 4 01-14-2008 04:48 PM
change to method 2 rating (5 star) sort news by funtion is disapper nspuum Questions and Comments 3 10-18-2007 11:51 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development