Gari nerunāšu..
http://synoise.clan.su/Skripti/KRASUTEST.png
Uzstādīšana.
Control Panel>Customize Design>General appearance of forum pages>Atrodam $BODY$, aiz kura ievietojam šo.
Code
<?if($PAGE_ID$='forum' || $PAGE_ID$='recentthreads')?>
<script>
$('.threadLink').each(function () {
str = $(this).text();
exp = /^\[color\=(ff0000|ffa500|ffff00|00ff00|42aaff|0000ff|8b00ff)\](.*?)\[\/color\]$/;
if (exp.test(str)) {
matches = exp.exec(str);
$(this).css('color', matches[1]).text(matches[2]);
}
});
</script>
<?endif?>
<?if($PAGE_ID$='threadpage' || $PAGE_ID$='postedit')?>
<script>
exp = /\[color\=(ff0000|ffa500|ffff00|00ff00|42aaff|0000ff|8b00ff)\](.*?)\[\/color\]/g;
str = $('.forumContent').eq('0').html();
if (exp.test(str)) {
$('.forumContent').eq('0').html(str.replace(exp, '$2'));
}
</script>
<?endif?>
<?if($PAGE_ID$='postedit' || $PAGE_ID$='addthread' || $PAGE_ID$='addpoll')?>
<script>
$('input[name="name"]').css({
'width': '87%',
'border-right': '0px'
}).after('<select id="color"><option selected disabled value="none"> Izvēlēties Tēmas Krāsu </option><option value="ff0000">Sarkans</option><option value="ffa500">Oranžs</option><option value="ffff00">Dzeltens</option><option value="00ff00">Zaļš</option><option value="42aaff">Gaiši Zils</option><option value="0000ff">Zils</option><option value="8b00ff">Violets</option></select>');
$('#frF16').hide().after('<input type="button" value="Izveidot Tēmu" class="postSubmit" style="width:150px;font-weight:bold;" id="post">');
$('#post').live('click', function () {
c = $('#color').val();
if (c != 'none') {
d = $('input[name="name"]').val();
$('input[name="name"]').val('[color=' + c + ']' + d + '[/color]');
}
$('#frF16').click();
});
</script>
<?endif?>