album (smartor) bewertungen

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
Benutzeravatar
cuchirice
Beiträge: 123
Registriert: Fr 14.Jan, 2005 21:08

album (smartor) bewertungen

Beitrag von cuchirice »

Hi bin wieder daaa ^_^,

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...


Bild

danke guten nacht freunde
Zuletzt geändert von cuchirice am Mi 09.Mär, 2005 23:05, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Ersetze dazu in der album_mod/clown_album_functions.php die Funktion

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'/>&nbsp;";
			}
			
			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'/>&nbsp;";
			}
		}
		
		return (round($rating, 2) .  '&nbsp;' . $r);
	}
}
mit

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));
}
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten