Seite 1 von 1

yellow card mod

Verfasst: 14.10.2006 23:10
von Zlocko
Hallo Gemeinde,

wenn ich einen User verwarne dann steht unter seinem Nick im Forum nur Warning: 1 ich hätte es aber lieber wenn dann staht dem Wort die gelbe Karte zu sehen ist.
Dementsprechend auch die rote Karte.

Kann mir jemand sagen wie und wo ich was ändern muss?

Danke

MfG
Zlocko :wink:


P.S.
In der Suche ist leider nichts zu finden was mein Problem lösen könnte.

Verfasst: 16.10.2006 00:48
von Zlocko
Keiner eine Antwort? :cry:

Verfasst: 16.10.2006 13:21
von x16
Das steht doch im Mod selber drin!

Code: Alles auswählen

	$card_img = ($user_warnings) ? (( $user_warnings < $board_config['max_user_bancard']) ? sprintf($lang['Warnings'], $user_warnings) : $lang['Banned'] ) : '';
// these lines will make a icon apear beside users post, if user have warnings or ar banned
// used instead of the previous line of code, witch shows the status as a text
//  ------ From here --- do not include this line
// $card_img = ($user_warnings) ? '<img src="'.(( $user_warnings < $board_config['max_user_bancard']) ?
//		$images['icon_y_card'] . '" alt="'. sprintf($lang['Warnings'], $user_warnings) .'">' :
//		$images['icon_r_card'] . '" alt="'. $lang['Banned'] .'">') : '';
//  ----- To this line --- Do not included this line
Dazu musst du also die erste Zeile von obenauskommentieren und Zeile 2,3,4 von unten muss wiederum ein // vorgesetzt werden.

Also so:

Code: Alles auswählen

//	$card_img = ($user_warnings) ? (( $user_warnings < $board_config['max_user_bancard']) ? sprintf($lang['Warnings'], $user_warnings) : $lang['Banned'] ) : '';
// these lines will make a icon apear beside users post, if user have warnings or ar banned
// used instead of the previous line of code, witch shows the status as a text
//  ------ From here --- do not include this line
  card_img = ($user_warnings) ? '<img src="'.(( $user_warnings < $board_config['max_user_bancard']) ?
		$images['icon_y_card'] . '" alt="'. sprintf($lang['Warnings'], $user_warnings) .'">' :
		$images['icon_r_card'] . '" alt="'. $lang['Banned'] .'">') : '';
//  ----- To this line --- Do not included this line

Verfasst: 16.10.2006 13:45
von Zlocko
Danke, hab es jetzt geschaft.

Die obere Zeile hättest du nicht mal auszukom. brauchen. :wink:

Verfasst: 16.10.2006 14:54
von x16
Stimmt, hatte ich vorher auch nie, aber Ordnung muss sein! :wink:

Verfasst: 17.10.2006 02:06
von Zlocko
Dankeschön :wink: