News:

CRITICAL UPGRADE CPG RELEASE 1.6.30
Version 1.6.30 removes a serious security issue that could allow unauthorized access to modify your site. Upgrade as soon as possible.

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.