Unofficial modifications
nieoficjalne modyfikacje for?w phpBB by Przemo

Modyfikacje mniejsze - Colored user call in viewtopic

KnofeL - Pon 09 Kwi, 2007
Temat postu: Colored user call in viewtopic
By? kolorowy user call w shoutboxie to teraz w viewtopic.

Wiadomo?? ukryta / Hidden message
Aby zobaczy? wiadomo?? postaw piwo autorowi piwo.
Otw?rz plik viewtopic.php i znajd? w nim:
Kod
$poster = ($show_quickreply) ? '<a href="javascript:em(\'[b]' . str_replace("'", "\'", $poster_username) . '[/b], \')" class="gensmall" ' . $username_color . '>' . $poster_color_username . '</a>' : '<a href="' . $temp_url . '" title="' . $lang['Read_profile'] . '" class="gensmall"' . $username_color . '>' . $poster_color_username . '</a>';

Zmie? to na:
Kod
$poster = ($show_quickreply) ? ( ( $color ) ? '<a href="javascript:em(\'[b][color='.$color.']' . str_replace("'", "\'", $poster_username) . '[/color][/b], \')" class="gensmall" ' . $username_color . '>' . $poster_color_username . '</a>' : '<a href="javascript:em(\'[b]' . str_replace("'", "\'", $poster_username) . '[/b], \')" class="gensmall" ' . $username_color . '>' . $poster_color_username . '</a>' ) : '<a href="' . $temp_url . '" title="' . $lang['Read_profile'] . '" class="gensmall"' . $username_color . '>' . $poster_color_username . '</a>';

I dodaj przed tym:
Kod
$color = color_username($postrow[$i]['user_level'], $postrow[$i]['user_jr'], $postrow[$i]['user_id'], $postrow[$i]['username']);
$color = preg_replace("/style=\"color:(\#[0-9A-F]{6}|[a-z]+).*\"/si",'\\1', $color[1]);
$color = str_replace(' ', '', $color);


That's all.


Powered by phpBB modified by Przemo © 2003 phpBB Group