dies mal hätte ich ein simple frage, und zwar es geht um end ergebnisse von smartor album,
ich wollte blos wissen ob man die ergebnise statt kleine icons auch zahhlen mit kommas ersetzen kann.. hier als skizze...

danke guten nacht freunde

Code: Alles auswählen
function ImageRating($rating, $css_style = 'border-style: none')
{
//Pre: returns what type of rating style to display
global $db, $album_sp_config, $lang;
//deside how user wants to show their rating
//
if ($album_sp_config['rate_type'] == 0)//display only images
{
if (!$rating)
return $lang['Not_rated'];
else
{
$r = "";
for ($temp = 1; $temp <= $rating; $temp++)
{
$r .= "<img src='album_mod/rank.gif' style='$css_style'/> ";
}
return ($r);
}
}
else if ($album_sp_config['rate_type'] == 1) //display just text
{
if (!$rating)
return $lang['Not_rated'];
else
return (round($rating, 2));
}
else //display both images and text
{
if (!$rating)
return $lang['Not_rated'];
else
{
$r = "";
for ($temp = 1; $temp <= $rating; $temp++)
{
$r .= "<img src='album_mod/rank.gif' style='$css_style'/> ";
}
}
return (round($rating, 2) . ' ' . $r);
}
}Code: Alles auswählen
function ImageRating($rating, $css_style = 'border-style: none')
{
//Pre: returns what type of rating style to display
global $lang;
//deside how user wants to show their rating
//
if (!$rating)
return $lang['Not_rated'];
else
return (round($rating, 2));
}