// OPEN / ÖFFNE includes/functions.php:
// FIND / SUCHE NACH
if (!check_permission("auth_readcomment", $image_row['cat_id'])) {
$image_row['image_allow_comments'] = 0;
}
// ADD AFTER / HINZUFÜGEN DANACH
if ($image_row['image_rating'] == '5.00') {
$rating_pic = "5.gif";
} elseif ($image_row['image_rating'] >= '4.00') {
$rating_pic = "4.gif";
} elseif ($image_row['image_rating'] >= '3.00') {
$rating_pic = "3.gif";
} elseif ($image_row['image_rating'] >= '2.00') {
$rating_pic = "2.gif";
} elseif ($image_row['image_rating'] >= '1.00') {
$rating_pic = "1.gif";
} else {
$rating_pic = "0.gif";
}
$site_template->register_vars(array(
"rating_pic" => $rating_pic,
"lang_rating" => $lang['rating'],
"lang_votes" => $lang['votes']
));
// ADD IN TEMPLATE(S) / FÜGE DIES IN DEIN(E) TEMPLATE(S)
<img src="{template_url}/images/{rating_pic}" width="55" height="10" alt="" />
// OR / ODER
<img src="{template_url}/images/{rating_pic}" width="55" height="10" alt="{lang_rating} {image_rating} ({image_votes} {lang_votes})" />
// HERE EXAMPLE PICS / HIER DIE BEISPIEL BILDER
standard 4images color on white background / standard 4images farbe auf weissen hintergrund (55x10 px)
// upload pics into your /templates/YOURTEMPLATE/images / uploade die bilder ins /templates/DEINTEMPLATE/images
// DEMO: no more available / nicht mehr verfügbar