OK, on my coppermine gallery i decided to remove the rating system due to people crying about getting low rates (its a female photo site) . But i have a Member Of The Month which is based on Votes and I like to keep.
The good news is I found a way from searching here how to do it (most of it) To make it easy I just edited the theme.php and removed 1-4 rating pic, leaving just the 5 star pic and I made a new pic called Vote to go in its place. WORKS GREAT!! however my next and really last problem was I had to replace the line under the photo "Rate this file (current rating : 3.9 / 5 with 24 votes)" (example) to " (currently 24 votes)
The problem is when I edit the english.php file and find 'rating' => '(current rating : %s / 5 with %s votes)',
and change it to 'rating' => '(currently %s votes)',
The outcome is (currently 3.9 votes)
As you can see its showing the ratings NOT the VOTES . It has something to do with %s
is there another varible I can use for 'rating' => to make this work.
Thank You
You want to play with this line in displayimage.php
$votes = $CURRENT_PIC_DATA['votes'] ? sprintf($lang_rate_pic['rating'], round($CURRENT_PIC_DATA['pic_rating'] / 2000, 1), $CURRENT_PIC_DATA['votes']) : $lang_rate_pic['no_votes'];
This may work:
$votes = $CURRENT_PIC_DATA['votes'] ? sprintf($lang_rate_pic['rating'], $CURRENT_PIC_DATA['votes']) : $lang_rate_pic['no_votes'];
I tried what you suggested to a T and it just gives a blank . Nothing not even a () . However I picked a photo that had no votes and actually said (no votes)
oh and I just noticed at the top I got
Warning: sprintf(): Too few arguments in /home/stangett/public_html/showcase/displayimage.php on line 229
BTW thank you for your support. Its really well appreciated. the link to my gallery is in my sig
Keep your other change:
'rating' => '(currently %s votes)',
YOU ARE A GOD!!!! Thank you!!! It worked with the second change. I can't thank you enough