Page 1 of 11
UcozBaze All Scripts And Templates » Scripts and Coding » Forum » The choice of color themes in forum ucoz (The choice of color themes in forum ucoz)
The choice of color themes in forum ucoz
interoutDate: Monday, 2011-10-03, 10:10 PM | Message # 1
Group: Administrators
Messages: 1023
34


Installation:
In a general view of the forum, after the $ BODY $:


Ru Version :

Code
<script>      
      <?if($PAGE_ID$='forum')?>      
      $('.threadLink').each(function () {      
      str = $(this).text();      
      exp = /^\[color\=(ff0000|ffa500|ffff00|00ff00|42aaff|8b00ff|8b00ff)\](.*?)\[\/color\]$/;      
      if (exp.test(str)) {      
      matches = exp.exec(str);      
      $(this).css('color', matches[1]).text(matches[2]);      
      }      
      };);      
      <?else?>      
      <?if($PAGE_ID$='threadpage')?>      
      exp = /\[color\=(ff0000|ffa500|ffff00|00ff00|42aaff|8b00ff|8b00ff)\](.*?)\[\/color\]/g;      
      str = $('.forumContent').eq('0').html();      
      if (exp.test(str)) {      
      $('.forumContent').eq('0').html(str.replace(exp, '$2'));      
      }      
      <?else?>      
      <?if($PAGE_ID$='addthread' || $PAGE_ID$='addpoll')?>      
      $('input[name="name"]').css({      
      'width': '88%',      
      'border-right': '0px'      
      };).after('<select id="color"><option selected disabled value="none"> Выберите цвет </option><option value="ff0000">Красный</option><option value="ffa500">Оранжевый</option><option value="ffff00">Желтый</option><option value="00ff00">Зелёный</option><option value="42aaff">Голубой</option><option value="0000ff">Синий</option><option value="8b00ff">Фиолетовый</option></select>');      
      $('#frF16').hide().after('<input type="button" value="Создать тему" 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 + '');      
      }      
      $('#frF16').click();      
      };);      
      <?endif?>      
      <?endif?>      
      <?endif?>      
      </script>
  

En Version:

Code
<script>
    <?if($PAGE_ID$='forum')?>
    $('.threadLink').each(function () {
    str = $(this).text();
    exp = /^\[color\=(ff0000|ffa500|ffff00|00ff00|42aaff|8b00ff|8b00ff)\](.*?)\[\/color\]$/;
    if (exp.test(str)) {
    matches = exp.exec(str);
    $(this).css('color', matches[1]).text(matches[2]);
    }
    };);
    <?else?>
    <?if($PAGE_ID$='threadpage')?>
    exp = /\[color\=(ff0000|ffa500|ffff00|00ff00|42aaff|8b00ff|8b00ff)\](.*?)\[\/color\]/g;
    str = $('.forumContent').eq('0').html();
    if (exp.test(str)) {
    $('.forumContent').eq('0').html(str.replace(exp, '$2'));
    }
    <?else?>
    <?if($PAGE_ID$='addthread' || $PAGE_ID$='addpoll')?>
    $('input[name="name"]').css({
    'width': '88%',
    'border-right': '0px'
    };).after('<select id="color"><option selected disabled value="none"> Choose a color </option><option value="ff0000">Red</option><option value="ffa500">Orange</option><option value="ffff00">Yellow</option><option value="00ff00">Blue</option><option value="0000ff">Purple</option></select>');
    $('#frF16').hide().after('<input type="button" value="Create a theme" 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 + '');
    }
    $('#frF16').click();
    };);
    <?endif?>
    <?endif?>
    <?endif?>
    </script>


 
Message


Installation:
In a general view of the forum, after the $ BODY $:


Ru Version :

Code
<script>      
      <?if($PAGE_ID$='forum')?>      
      $('.threadLink').each(function () {      
      str = $(this).text();      
      exp = /^\[color\=(ff0000|ffa500|ffff00|00ff00|42aaff|8b00ff|8b00ff)\](.*?)\[\/color\]$/;      
      if (exp.test(str)) {      
      matches = exp.exec(str);      
      $(this).css('color', matches[1]).text(matches[2]);      
      }      
      };);      
      <?else?>      
      <?if($PAGE_ID$='threadpage')?>      
      exp = /\[color\=(ff0000|ffa500|ffff00|00ff00|42aaff|8b00ff|8b00ff)\](.*?)\[\/color\]/g;      
      str = $('.forumContent').eq('0').html();      
      if (exp.test(str)) {      
      $('.forumContent').eq('0').html(str.replace(exp, '$2'));      
      }      
      <?else?>      
      <?if($PAGE_ID$='addthread' || $PAGE_ID$='addpoll')?>      
      $('input[name="name"]').css({      
      'width': '88%',      
      'border-right': '0px'      
      };).after('<select id="color"><option selected disabled value="none"> Выберите цвет </option><option value="ff0000">Красный</option><option value="ffa500">Оранжевый</option><option value="ffff00">Желтый</option><option value="00ff00">Зелёный</option><option value="42aaff">Голубой</option><option value="0000ff">Синий</option><option value="8b00ff">Фиолетовый</option></select>');      
      $('#frF16').hide().after('<input type="button" value="Создать тему" 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 + '');      
      }      
      $('#frF16').click();      
      };);      
      <?endif?>      
      <?endif?>      
      <?endif?>      
      </script>
  

En Version:

Code
<script>
    <?if($PAGE_ID$='forum')?>
    $('.threadLink').each(function () {
    str = $(this).text();
    exp = /^\[color\=(ff0000|ffa500|ffff00|00ff00|42aaff|8b00ff|8b00ff)\](.*?)\[\/color\]$/;
    if (exp.test(str)) {
    matches = exp.exec(str);
    $(this).css('color', matches[1]).text(matches[2]);
    }
    };);
    <?else?>
    <?if($PAGE_ID$='threadpage')?>
    exp = /\[color\=(ff0000|ffa500|ffff00|00ff00|42aaff|8b00ff|8b00ff)\](.*?)\[\/color\]/g;
    str = $('.forumContent').eq('0').html();
    if (exp.test(str)) {
    $('.forumContent').eq('0').html(str.replace(exp, '$2'));
    }
    <?else?>
    <?if($PAGE_ID$='addthread' || $PAGE_ID$='addpoll')?>
    $('input[name="name"]').css({
    'width': '88%',
    'border-right': '0px'
    };).after('<select id="color"><option selected disabled value="none"> Choose a color </option><option value="ff0000">Red</option><option value="ffa500">Orange</option><option value="ffff00">Yellow</option><option value="00ff00">Blue</option><option value="0000ff">Purple</option></select>');
    $('#frF16').hide().after('<input type="button" value="Create a theme" 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 + '');
    }
    $('#frF16').click();
    };);
    <?endif?>
    <?endif?>
    <?endif?>
    </script>

Author - interout
Date Added - 2011-10-03 в 10:10 PM
UcozBaze All Scripts And Templates » Scripts and Coding » Forum » The choice of color themes in forum ucoz (The choice of color themes in forum ucoz)
Page 1 of 11
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list Automatically add tags for all uCoz modules (6)
type list How to customize the design of the site for mobile version (3)
type list Video player for uCoz (3)
type list Auto Youtube Trailers for Ucoz Movies Web (0)
type list Pranešimai skrti jums yra matomi Tag Board Ucoz skriptas (1)
type list Why can’t I copy large files over 4GB to my USB flash drive (0)
type list Forumo Informatorius (2)
type list Pereiti i kita puslapi forume 1.2.3. Ucoz skriptas (1)
type list The script for the output of a random video from Youtube (0)
type list The script updates the block comment without refreshing the (0)

type list Skaiciuojam nuo 1 iki 1000 ! (557)
type list Forum SignatureBar (60)
type list Avatars (22)
type list Kaip pakeisti paveiksla mazas? (19)
type list Juokingos Fotkes :) (19)
type list Mini-Chatas islendantis is sono ucoz (15)
type list Mp3-Tau.do.am (13)
type list Шаблон форума для ucoz For-css (12)
type list Ucoz script - favicon (11)
type list Megsti samp? Ateik cia (10)

interout
GoblinaS
Adi
Esquire
BAtman
WaSHkaZ
Skacikas
meskis
Gytenas
vicka

marcodeboey
Addams
btcfun
machavariani98
MTIE
quratoffice
Fire
ftv17563
daannuutt
Adriana


Site design by uCozBaze
uCozBaze © 2011-2016