Unofficial modifications
nieoficjalne modyfikacje for?w phpBB by Przemo

Modyfikacje mniejsze - Colored user call in ShoutBox

KnofeL - Pon 09 Kwi, 2007
Temat postu: Colored user call in ShoutBox
Pyta? o to Loud wi?c jest. Modyfikacja koloruje user calla kt?rego stworzy? QBS.

Wymaga moda Color in SB i Shoutbox User Call by QBS

Otw?rz plik: shoutbox_view.php i znajd? w nim:
Wiadomo?? ukryta / Hidden message
Aby zobaczy? wiadomo?? postaw piwo autorowi piwo.
Kod
$name = $colored_username[0];

Dodaj po tym:
Kod
$color = preg_replace("/style=\"color:(\#[0-9A-F]{6}|[a-z]+).*\"/si",'\\1', $colored_username[1]);
$color = str_replace(' ', '', $color);

Dalej znajd?: (W zale?no?ci od wersj kt?r? u?ywamy)
Kod
$name = '<a href="javascript:void(0);" onClick="window.parent.em(\'[b]' . $row['username'] . '[/b], \');" ' . $colored_username[1] . ' class="gensmall">' . $name . '</a>';

Lub:
Kod
$name = '<a href="javascript:void(0);" onClick="window.parent.em(\'[b]' . $row['username'] . '[/b], \');" ' . $colored_username[1] . ' class="gensmall">' . $name . '</a> <a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;u=$name_id") . '" target="_blank" class="gensmall">[i]</a>';

I zmie? to na: (W zale?no?ci od wersj kt?r? u?ywamy)
Kod
$name = ( $color ) ? '<a href="javascript:void(0);" onClick="window.parent.em(\'[b][color='.$color.']' . $row['username'] . '[/color][/b], \');" ' . $colored_username[1] . ' class="gensmall">' . $name . '</a>' : '<a href="javascript:void(0);" onClick="window.parent.em(\'[b]' . $row['username'] . '[/b], \');" ' . $colored_username[1] . ' class="gensmall">' . $name . '</a>';

Lub
Kod
$name = ( $color ) ? '<a href="javascript:void(0);" onClick="window.parent.em(\'[b][color='.$color.']' . $row['username'] . '[/color][/b], \');" ' . $colored_username[1] . ' class="gensmall">' . $name . '</a> <a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;u=$name_id") . '" target="_blank" class="gensmall">[i]</a>' : '<a href="javascript:void(0);" onClick="window.parent.em(\'[b]' . $row['username'] . '[/b], \');" ' . $colored_username[1] . ' class="gensmall">' . $name . '</a> <a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;u=$name_id") . '" target="_blank" class="gensmall">[i]</a>';


Wsio


Powered by phpBB modified by Przemo © 2003 phpBB Group