yellow card mod Warnigns: veranderen naar een Plaatje
Geplaatst: 05 mei 2006, 14:37
nu staat er op mijn forum warnings:1 nu wil ik dat daar de gele kaart komt te staan hoe kan ik dat aanpassen..?
Nederlandstalige phpBB Support
https://www.phpbb.nl/forums/
Code: Selecteer alles
// 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
//
// You may also included several images, instead of only one yellow, these lines below will produce several yellow images, depending on mumber of yellow cards
// ------ From here --- do not include this line
//$card_img = ($user_warnings >= $board_config['max_user_bancard']) ? '<img src="'.$images['icon_r_card'] . '" alt="'. $lang['Banned'] .'">' : '';
//for ($n=0 ; $n<$user_warnings && $user_warnings < $board_config['max_user_bancard'];$n++)
//{
//$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
Code: Selecteer alles
// 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
//
// You may also included several images, instead of only one yellow, these lines below will produce several yellow images, depending on mumber of yellow cards
// ------ From here --- do not include this line
$card_img = ($user_warnings >= $board_config['max_user_bancard']) ? '<img src="'.$images['icon_r_card'] . '" alt="'. $lang['Banned'] .'">' : '';
for ($n=0 ; $n<$user_warnings && $user_warnings < $board_config['max_user_bancard'];$n++)
{
$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