Seite 1 von 1

emotion Mod

Verfasst: 10.09.2006 21:38
von borderline
Hallo Leute,

habe den Emotion Mod installiert.
Ich habe dazu mal ne Frage, er funktioniert super, aber beim auswählen stehen da nur die englischen Namen. Für mich nicht weiter das Problem, für andere User aber schon.
Hier ist mal der Code:

Code: Alles auswählen

//
// Pick an emotion
//
function emotion_select($default_emotion, $select_name = "emotion")
{
	global $db;



	$sql = "SELECT emotion_id, emotion_name
		FROM " . EMOTIONS_TABLE . "
		ORDER BY  emotion_id";
	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql);
	}

	$emotion_select = '<select name="' . $select_name . '">';
	while ( $row = $db->sql_fetchrow($result) )
	{
		$selected = ( $row['emotions_id'] == $default_emotion ) ? ' selected="selected"' : '';

		$emotion_select .= '<option value="' . $row['emotion_id'] . '"' . $selected . '>' . $row['emotion_name'] . '</option>';
	}
	$emotion_select .= "</select>";

	return $emotion_select;

}
Tja, und nun ist die Frage, wie mache ich das so, dass da nicht die englischen sondern die deutschen Namen stehen???


Vielen Dank

~Borderline~

Verfasst: 10.09.2006 22:57
von dopppeldecker
Schau doch mal hier....da findest du die Antwort auf deine Frage:

http://www.phpbb.de/viewtopic.php?t=979 ... c&start=97

Verfasst: 20.09.2006 18:51
von Tobi1908
jemand eine art anleitung/beschreibung wie man neue "emotions" einbauen kann?

thx