Top rated page again :( Top rated page again :(
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Top rated page again :(

Started by matu111, April 03, 2005, 08:09:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

matu111

I hope for the last time :)
Id like to change one thing on top rated page.
There are shown thumbails, rating_pic, and the "n_votes". My wish is to change n_votes shown, to average pic score "rating".
I have found the line in functions.inc
.sprintf($lang_get_pic_data['n_votes'], $row['votes']).'</span>';

is there a solution ?

Nibbler

Change $row['votes'] to $row['pic_rating']/2000 maybe with some rounding as you like it.

matu111

that´s good for me, thanks Nibbler.

Solution found.