KnofeL Wysłany: Pon 09 Kwi, 2007 |
|
|
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 messageAby 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&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&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&u=$name_id") . '" target="_blank" class="gensmall">[i]</a>';
Wsio |
|