Good day,
how can i display number of votes on category page (list of thumbnails) near each thumbnails as it is realized on page best_rated?
Offline
This isn't the best solution (lost in the next update) but for now I have no other
in the file category_default.inc.php
search ->
case 'most_visited' :
{
if ( !$user['show_nb_hits']) {
$name = '('.$row['hit'].') '.$name;
}
break;
}
and add after
case 'categories' :
{
$name = '('.$row['average_rate'].') '.$name;
break;
}
Offline
Thanks, it works!)
How can I display a rating only for one concrete category?
Offline
kiddy-admin wrote:
Thanks, it works!)
How can I display a rating only for one concrete category?
sorry, i don't look your repply
you can test
add
global $page;
$exceptions = array(1, 5, 10);
if (isset($page['category']['id']) and in_array($page['category']['id'], $exceptions))
{
case 'categories' :
{
$name = '('.$row['average_rate'].') '.$name;
break;
}
}
Offline
Excellently! It works! Thanks a lot! Now I can easily hold competitions!)
Offline
are you look [extension by mistic100] ContestResults
Offline
I tried to set it, but, it is incorrectly displayed in my theme and I hasn't understood how to add photos on competition and I refused it
Offline