Hello everybody,
the profiles appear in leaders only after 3 votes.
I want to change it, so that 1 vote is enough to appear in leaders.
I tryed it in the BxDolVotingQuery.php at line 121 at:
return $this->getOne ("SELECT $sTable.`{$sPre}id`, COUNT($sTable.`{$sPre}id`) AS `voting_count` FROM {$sTable} $sJoin WHERE TO_DAYS(NOW()) - TO_DAYS($sTable.`{$sPre}date`) <= $iDays $sWhere GROUP BY $sTable.`{$sPre}id` HAVING `voting_count` > 2 ORDER BY `voting_count` DESC LIMIT 1");
and changed it to:
return $this->getOne ("SELECT $sTable.`{$sPre}id`, COUNT($sTable.`{$sPre}id`) AS `voting_count` FROM {$sTable} $sJoin WHERE TO_DAYS(NOW()) - TO_DAYS($sTable.`{$sPre}date`) <= $iDays $sWhere GROUP BY $sTable.`{$sPre}id` HAVING `voting_count` > 0 ORDER BY `voting_count` DESC LIMIT 1");
but it does not work !!!
What i have to change so that the profiles appear in leaders after 1 vote ?
Best regards sanne