Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Top rated page again :(  (Read 2300 times)

0 Members and 1 Guest are viewing this topic.

matu111

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Top rated page again :(
« on: April 03, 2005, 08:09:46 pm »

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 ?
« Last Edit: April 03, 2005, 09:08:20 pm by TranzNDance »
Logged

Nibbler

  • Guest
Re: Top rated page again :(
« Reply #1 on: April 03, 2005, 08:18:49 pm »

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

matu111

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Top rated page again :(
« Reply #2 on: April 03, 2005, 08:43:18 pm »

thatīs good for me, thanks Nibbler.

Solution found.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.