Powered by Invision Power Board
Здравствуйте Гость ( Вход | Регистрация ) Выслать повторно письмо для активации

Forum Rules Правила раздела

В этом разделе пользователи форума могут только оставлять сообщения в темах.
Перед отправлением сообщений, пожалуйста, прочитайте правила форума.
В темах раздела задавайте вопросы правильно и, соблюдайте знаки препинания.

Страницы: (2) [1] 2   ( Перейти к первому непрочитанному сообщению ) Reply to this topicStart new topicStart Poll

> Дополнительные цвета, шрифты и смайлы, (аналог IPB 2хх) © Romych
Romych
Отправлено: Авг 30 2010, 00:46
Quote Post


Странник
Group Icon

Группа: Пользователи
Сообщений: 174
Пользователь №: 2 237
Регистрация: 21-Апреля 10
Member Offline

Репутация: 42




данный мод позволяет немного расширить инструментарий пользователям форума, сделать его удобным и визуально приятным

смысл мода в замене ныне существующего выбора шрифтов, цветов, размера шрифтов, а так же появляются дополнительные смайлы

после установки данного мода у вас появятся 4 кнопки
при нажатии на которые будут появляться всплывающие окна с выбром:

user posted image - ШРИФТ

user posted image


user posted image - РАЗМЕР

user posted image


user posted image - ЦВЕТ

user posted image

и
user posted image - СМАЙЛЫ

user posted image


после того как вы выбрали цвет, шрифт, смайл или размер шрифта, окно закрывается
теги работают аналогично как в форме Быстрого ответа, т.е. выделяем текст и затем манипулируем с ним

устанавливаем

1.
заходим в Админцентр -> Скины и Шаблоны ->CSS

в самом низу добавляем следующее
Цитата
.block1 {
width: auto;
background: #F5F9FD;
padding: 5px;
padding-right: 5px;
border: solid 1px black;
position:absolute;
z-index:20;}


2.
заходим в Админцентр -> Скины и Шаблоны -> HTML шаблоны -> Настройка HTML (напротив нужного названия скина) -> Сообщения (Post Screen Sections) -> get_javascript (редактировать)

находим там закрывающий тег скрипта

//-->
</script>

и перед ним добавляем следующее:

Код
function showhide(id_div)
{
if(document.getElementById(id_div).style.display=="none")
{ document.getElementById(id_div).style.display="block"; }
else
{ document.getElementById(id_div).style.display="none";
}}

function copyT(code)
{if (typeof(document.getElementById('tex').caretPos) != 'undefined'){
if (window.getSelection) {text=window.getSelection()}
else if (document.selection) {text=document.selection.createRange().text;}
text='['+code+']'+text+'[/'+code+']'
}
else if (typeof(document.getElementById('tex').selectionStart) != 'undefined')
{
text=document.getElementById('tex').value.substring(document.getElementById('tex').selectionStart,document.getElementById('tex').selectionEnd)
text='['+code+']'+text+'[/'+code+']'
}}

function copyTC(cl)
{if (typeof(document.getElementById('tex').caretPos) != 'undefined'){
if (window.getSelection) {text=window.getSelection()}
else if (document.selection) {text=document.selection.createRange().text;}
text='[COLOR='+cl+']'+text+'[/COLOR]'
}
else if (typeof(document.getElementById('tex').selectionStart) != 'undefined')
{
text=document.getElementById('tex').value.substring(document.getElementById('tex').selectionStart,document.getElementById('tex').selectionEnd)
text='[COLOR='+cl+']'+text+'[/COLOR]'
}}

function copyTF(ff)
{if (typeof(document.getElementById('tex').caretPos) != 'undefined'){
if (window.getSelection) {text=window.getSelection()}
else if (document.selection) {text=document.selection.createRange().text;}
text='[FONT='+ff+']'+text+'[/FONT]'
}
else if (typeof(document.getElementById('tex').selectionStart) != 'undefined')
{
text=document.getElementById('tex').value.substring(document.getElementById('tex').selectionStart,document.getElementById('tex').selectionEnd)
text='[FONT='+ff+']'+text+'[/FONT]'
}}

function storeCaret(element)
{
if (typeof(document.selection) != 'undefined' && typeof(document.selection.createRange) != 'undefined')
element.caretPos=document.selection.createRange().duplicate();}

function insTxt()
{ var element = document.getElementById("tex")
if (!element)
return;
element.focus();
if (typeof(element.caretPos) != 'undefined')
element.caretPos.text = text;
else if (typeof(element.selectionStart) != 'undefined')
{
var newPos = element.selectionEnd + text.length;
element.value = element.value.substring(0, element.selectionStart) + text + element.value.substring(element.selectionEnd, element.value.length);
element.setSelectionRange(newPos, newPos);
}
else
element.value += text;}

function copyTS(sz)
 {if (typeof(document.getElementById('tex').caretPos) != 'undefined'){
 if (window.getSelection) {text=window.getSelection()}
 else if (document.selection) {text=document.selection.createRange().text;}
 text='[SIZE='+sz+']'+text+'[/SIZE]'
 }
 else if (typeof(document.getElementById('tex').selectionStart) != 'undefined')
 {
text=document.getElementById('tex').value.substring(document.getElementById('tex').selectionStart,document.getElementById('tex').selectionEnd)
 text='[SIZE='+sz+']'+text+'[/SIZE]'
}}

function copyTSmil(sm)
 {if (typeof(document.getElementById('tex').caretPos) != 'undefined'){
 if (window.getSelection) {text=window.getSelection()}
 else if (document.selection) {text=document.selection.createRange().text;}
 text='[IMG]'+sm+'[/IMG]'
 }
 else if (typeof(document.getElementById('tex').selectionStart) != 'undefined')
 {
text=document.getElementById('tex').value.substring(document.getElementById('tex').selectionStart,document.getElementById('tex').selectionEnd)
 text='[IMG]'+sm+'[/IMG]'
}}



3.
заходим в Админцентр -> Скины и Шаблоны -> HTML шаблоны -> Настройка HTML (напротив нужного названия скина) -> Сообщения (Post Screen Sections) -> Post: Code Buttons & Post Text area (редактировать):

ищем там следующее:

Цитата
<select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')"  onmouseover="hstat('font')">
   <option value='0'>{ibf.lang.ct_font}</option>
   <option value='Arial' style='font-family:Arial'>{ibf.lang.ct_arial}</option>
   <option value='Times' style='font-family:Times'>{ibf.lang.ct_times}</option>
   <option value='Courier' style='font-family:Courier'>{ibf.lang.ct_courier}</option>
   <option value='Impact' style='font-family:Impact'>{ibf.lang.ct_impact}</option>
   <option value='Geneva' style='font-family:Geneva'>{ibf.lang.ct_geneva}</option>
   <option value='Optima' style='font-family:Optima'>Optima</option>
   </select><select name='fsize' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'SIZE')" onmouseover="hstat('size')">
   <option value='0'>{ibf.lang.ct_size}</option>
   <option value='1'>{ibf.lang.ct_sml}</option>
   <option value='7'>{ibf.lang.ct_lrg}</option>
   <option value='14'>{ibf.lang.ct_lest}</option>
   </select><select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR')" onmouseover="hstat('color')">
   <option value='0'>{ibf.lang.ct_color}</option>
   <option value='blue' style='color:blue'>{ibf.lang.ct_blue}</option>
   <option value='red' style='color:red'>{ibf.lang.ct_red}</option>
   <option value='purple' style='color:purple'>{ibf.lang.ct_purple}</option>
   <option value='orange' style='color:orange'>{ibf.lang.ct_orange}</option>
   <option value='yellow' style='color:yellow'>{ibf.lang.ct_yellow}</option>
   <option value='gray' style='color:gray'>{ibf.lang.ct_grey}</option>
   <option value='green' style='color:green'>{ibf.lang.ct_green}</option>
   </select>


удаляем, а точнее заменяем, то что нашли на это:


[Показать/Скрыть]
<!--FONT-->
<img class='codebuttons' title='Шрифт' alt='Шрифт' src='http://s48.radikal.ru/i119/1008/94/5db3a4ed2855.png' onclick="showhide('myfont');"/>
<div id="myfont" class="block1" style=" display:none; margin-left: 10%; margin-top: 20px">
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Arial')" title="Arial"><font face="Arial">Arial</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Arial Black')" title="Arial Black"><font face="Arial Black">Arial Black</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Arial Narrow')" title="Arial Narrow"><font face="Arial Narrow">Arial Narrow</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Book Antiqua')" title="Book Antiqua"><font face="Book Antiqua">Book Antiqua</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Century Gothic')" title="Century Gothic"><font face="Century Gothic">Century Gothic</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Comic Sans MS')" title="Comic Sans MS"><font face="Comic Sans MS">Comic Sans MS</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Courier New')" title="Courier New"><font face="Courier New">Courier New</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Franklin Gothic Medium')" title="Franklin Gothic Medium"><font face="Franklin Gothic Medium">Franklin Gothic Medium</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Garamond')" title="Garamond"><font face="Garamond">Garamond</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Georgia')" title="Georgia"><font face="Georgia">Georgia</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Impact')" title="Impact"><font face="Impact">Impact</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Lucida Console')" title="Lucida Console"><font face="Lucida Console">Lucida Console</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Lucida Sans Unicode')" title="Lucida Sans Unicode"><font face="Lucida Sans Unicode">Lucida Sans Unicode</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Microsoft Sans Serif')" title="Microsoft Sans Serif"><font face="Microsoft Sans Serif">Microsoft Sans Serif</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Palatino Linotype')" title="Palatino Linotype"><font face="Palatino Linotype">Palatino Linotype</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Tahoma')" title="Tahoma"><font face="Tahoma">Tahoma</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Times New Roman')" title="Times New Roman"><font face="Times New Roman">Times New Roman</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Trebuchet MS')" title="Trebuchet MS"><font face="Trebuchet MS">Trebuchet MS</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('myfont')" onmouseover="copyTF('Verdana')" title="Verdana"><font face="Verdana">Verdana</font></div>
</div>
<!--SIZE-->
<img class='codebuttons' title='Размер' alt='Размер' src='http://s52.radikal.ru/i136/1008/c0/e069d38eba82.png' onclick="showhide('fontsizer');"/>
<div id="fontsizer" class="block1" style="display:none; margin-left:10%; margin-top:20px">
<div style="cursor:pointer" onclick="insTxt(); showhide('fontsizer')" onmouseover="copyTS('1')" title="1"><font size="1">1</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('fontsizer')" onmouseover="copyTS('2')" title="2"><font size="2">2</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('fontsizer')" onmouseover="copyTS('3')" title="3"><font size="3">3</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('fontsizer')" onmouseover="copyTS('4')" title="4"><font size="4">4</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('fontsizer')" onmouseover="copyTS('5')" title="5"><font size="5">5</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('fontsizer')" onmouseover="copyTS('6')" title="6"><font size="6">6</font></div>
<div style="cursor:pointer" onclick="insTxt(); showhide('fontsizer')" onmouseover="copyTS('7')" title="7"><font size="7">7</font></div>
</div>
<!--COLOR-->
<img class='codebuttons' title='Цвет' alt='Цвет' src='http://s40.radikal.ru/i088/1008/1e/0b3292647389.png' onclick="showhide('mycolor');"/>
<div id="mycolor" class="block1" style=" display:none; margin-left: 15%; margin-top: 20px">
<table border="1" cellspacing="0">
<tr>
<td width="15" height="15" style="background-color:#ff00fe; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ff00fe')"></td>
<td width="15" height="15" style="background-color:#ff00be; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ff00be')"></td>
<td width="15" height="15" style="background-color:#ff009e; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ff009e')"></td>
<td width="15" height="15" style="background-color:#ff006e; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ff006e')"></td>
<td width="15" height="15" style="background-color:#ff004e; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ff004e')"></td>
<td width="15" height="15" style="background-color:#ff002e; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ff002e')"></td>
<td width="15" height="15" style="background-color:#ff1100; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ff1100')"></td>
<td width="15" height="15" style="background-color:#ff3100; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ff3100')"></td>
<td width="15" height="15" style="background-color:#ff5100; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ff5100')"></td>
<td width="15" height="15" style="background-color:#ff7100; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ff7100')"></td>
</tr><tr>
<td width="15" height="15" style="background-color:#ffa100; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ffa100')"></td>
<td width="15" height="15" style="background-color:#ffc100; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ffc100')"></td>
<td width="15" height="15" style="background-color:#ffe100; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ffe100')"></td>
<td width="15" height="15" style="background-color:#fdff00; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#fdff00')"></td>
<td width="15" height="15" style="background-color:#ddff00; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ddff00')"></td>
<td width="15" height="15" style="background-color:#adff00; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#adff00')"></td>
<td width="15" height="15" style="background-color:#4dff00; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#4dff00')"></td>
<td width="15" height="15" style="background-color:#00ff03; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#00ff03')"></td>
<td width="15" height="15" style="background-color:#009900; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#009900')"></td>
<td width="15" height="15" style="background-color:#00ff93; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#00ff93')"></td>
</tr><tr>
<td width="15" height="15" style="background-color:#00ffd3; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#00ffd3')"></td>
<td width="15" height="15" style="background-color:#00fbff; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#00fbff')"></td>
<td width="15" height="15" style="background-color:#00dbff; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#00dbff')"></td>
<td width="15" height="15" style="background-color:#00bbff; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#00bbff')"></td>
<td width="15" height="15" style="background-color:#009bff; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#009bff')"></td>
<td width="15" height="15" style="background-color:#004bff; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#004bff')"></td>
<td width="15" height="15" style="background-color:#001bff; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#001bff')"></td>
<td width="15" height="15" style="background-color:#8400ff; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#8400ff')"></td>
<td width="15" height="15" style="background-color:#b400ff; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#b400ff')"></td>
<td width="15" height="15" style="background-color:#d400ff; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#d400ff')"></td>
</tr><tr>
<td width="15" height="15" style="background-color:#996600; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#996600')"></td>
<td width="15" height="15" style="background-color:#ffffcc; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#ffffcc')"></td>
<td width="15" height="15" style="background-color:#cfcfcf; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#cfcfcf')"></td>
<td width="15" height="15" style="background-color:#afafaf; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#afafaf')"></td>
<td width="15" height="15" style="background-color:#8f8f8f; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#8f8f8f')"></td>
<td width="15" height="15" style="background-color:#7f7f7f; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#7f7f7f')"></td>
<td width="15" height="15" style="background-color:#5f5f5f; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#5f5f5f')"></td>
<td width="15" height="15" style="background-color:#3f3f3f; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#3f3f3f')"></td>
<td width="15" height="15" style="background-color:#660000; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#660000')"></td>
<td width="15" height="15" style="background-color:#333300; cursor:pointer" onclick="insTxt(); showhide('mycolor')" onmouseover = "copyTC('#333300')"></td>
</tr>
</table></div>
<!--SMILIES-->
<img class='codebuttons' title='Смайлы' alt='Смайлы' src='http://img718.imageshack.us/img718/9417/smilerk.gif' onclick="showhide('smiler');"/>
<div id="smiler" class="block1" style="display:none; margin-left:5%; margin-top:20px">
<img src="http://s50.radikal.ru/i130/1005/e1/662ba93*цензура*48.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s50.radikal.ru/i130/1005/e1/662ba93*цензура*48.gif')" />
<img src="http://i070.radikal.ru/1005/c7/0e77ae8a9874.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i070.radikal.ru/1005/c7/0e77ae8a9874.gif')" />
<img src="http://s59.radikal.ru/i166/1005/2f/5b1c0605032a.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s59.radikal.ru/i166/1005/2f/5b1c0605032a.gif')" />
<img src="http://i054.radikal.ru/1005/f6/13dcca4f279d.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i054.radikal.ru/1005/f6/13dcca4f279d.gif')" />
<img src="http://s58.radikal.ru/i162/1005/08/79b11cf81b88.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s58.radikal.ru/i162/1005/08/79b11cf81b88.gif')" />
<img src="http://s40.radikal.ru/i090/1005/cb/0b8e124c46ca.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s40.radikal.ru/i090/1005/cb/0b8e124c46ca.gif')" />
<img src="http://s40.radikal.ru/i089/1005/fd/24e1da52dcfb.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s40.radikal.ru/i089/1005/fd/24e1da52dcfb.gif')" />
<img src="http://s41.radikal.ru/i091/1005/2a/096a46240cf1.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s41.radikal.ru/i091/1005/2a/096a46240cf1.gif')" /><br />
<img src="http://s005.radikal.ru/i212/1005/cc/d597ca076c7b.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s005.radikal.ru/i212/1005/cc/d597ca076c7b.gif')" />
<img src="http://s56.radikal.ru/i151/1005/a3/85c037c68925.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s56.radikal.ru/i151/1005/a3/85c037c68925.gif')" />
<img src="http://i072.radikal.ru/1005/6f/c90a718466a8.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i072.radikal.ru/1005/6f/c90a718466a8.gif')" />
<img src="http://i077.radikal.ru/1005/1d/a629f081ef7f.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i077.radikal.ru/1005/1d/a629f081ef7f.gif')" />
<img src="http://i026.radikal.ru/1005/2e/917159b2b553.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i026.radikal.ru/1005/2e/917159b2b553.gif')" />
<img src="http://s39.radikal.ru/i085/1005/59/3b7d4b4c6b05.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s39.radikal.ru/i085/1005/59/3b7d4b4c6b05.gif')" />
<img src="http://s005.radikal.ru/i210/1005/e0/5f5a0b2711e7.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s005.radikal.ru/i210/1005/e0/5f5a0b2711e7.gif')" />
<img src="http://s45.radikal.ru/i110/1005/ab/16bade9e8735.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s45.radikal.ru/i110/1005/ab/16bade9e8735.gif')" /><br />
<img src="http://i068.radikal.ru/1005/67/1e48518538b5.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i068.radikal.ru/1005/67/1e48518538b5.gif')" />
<img src="http://s002.radikal.ru/i197/1005/69/bdd4beea1923.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s002.radikal.ru/i197/1005/69/bdd4beea1923.gif')" />
<img src="http://s59.radikal.ru/i166/1005/5a/6bc6b02280ac.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s59.radikal.ru/i166/1005/5a/6bc6b02280ac.gif')" />
<img src="http://i053.radikal.ru/1005/21/123a52ee0534.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i053.radikal.ru/1005/21/123a52ee0534.gif')" />
<img src="http://s61.radikal.ru/i174/1005/29/606e8da4d6a3.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s61.radikal.ru/i174/1005/29/606e8da4d6a3.gif')" />
<img src="http://s59.radikal.ru/i166/1005/88/477afdf0dd76.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s59.radikal.ru/i166/1005/88/477afdf0dd76.gif')" />
<img src="http://s43.radikal.ru/i099/1005/62/3c56a02b626c.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s43.radikal.ru/i099/1005/62/3c56a02b626c.gif')" />
<img src="http://s52.radikal.ru/i136/1005/b2/aab2ba0a2bde.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s52.radikal.ru/i136/1005/b2/aab2ba0a2bde.gif')" /><br />
<img src="http://s61.radikal.ru/i174/1005/94/78a759f0ae02.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s61.radikal.ru/i174/1005/94/78a759f0ae02.gif')" />
<img src="http://s004.radikal.ru/i206/1005/66/606d70ff2218.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s004.radikal.ru/i206/1005/66/606d70ff2218.gif')" />
<img src="http://s19.radikal.ru/i192/1005/14/9422022b9bfc.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s19.radikal.ru/i192/1005/14/9422022b9bfc.gif')" />
<img src="http://s05.radikal.ru/i178/1005/27/b73d7e039ad5.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s05.radikal.ru/i178/1005/27/b73d7e039ad5.gif')" />
<img src="http://s42.radikal.ru/i097/1005/39/9f636b1832c9.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s42.radikal.ru/i097/1005/39/9f636b1832c9.gif')" />
<img src="http://i061.radikal.ru/1005/ba/3b89a947cb01.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i061.radikal.ru/1005/ba/3b89a947cb01.gif')" />
<img src="http://s61.radikal.ru/i174/1005/4e/b5e2c635f00d.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s61.radikal.ru/i174/1005/4e/b5e2c635f00d.gif')" />
<img src="http://i035.radikal.ru/1005/91/ed0ded51be72.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i035.radikal.ru/1005/91/ed0ded51be72.gif')" /><br />
<img src="http://s45.radikal.ru/i107/1005/0f/bfae40718551.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s45.radikal.ru/i107/1005/0f/bfae40718551.gif')" />
<img src="http://i073.radikal.ru/1005/fa/96e053ab7c23.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i073.radikal.ru/1005/fa/96e053ab7c23.gif')" />
<img src="http://s53.radikal.ru/i140/1005/e9/0768f063410c.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s53.radikal.ru/i140/1005/e9/0768f063410c.gif')" />
<img src="http://s49.radikal.ru/i123/1005/fc/fd0d83f120c1.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s49.radikal.ru/i123/1005/fc/fd0d83f120c1.gif')" />
<img src="http://s004.radikal.ru/i205/1005/ff/334f3394a110.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s004.radikal.ru/i205/1005/ff/334f3394a110.gif')" />
<img src="http://s58.radikal.ru/i161/1005/3b/5e65a19efafb.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s58.radikal.ru/i161/1005/3b/5e65a19efafb.gif')" />
<img src="http://s09.radikal.ru/i182/1005/6e/44e8b1d40f2d.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s09.radikal.ru/i182/1005/6e/44e8b1d40f2d.gif')" />
<img src="http://i055.radikal.ru/1005/e9/c7983030c26e.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i055.radikal.ru/1005/e9/c7983030c26e.gif')" /><br />
<img src="http://s39.radikal.ru/i083/1005/6d/57fd720cfce2.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s39.radikal.ru/i083/1005/6d/57fd720cfce2.gif')" />
<img src="http://i072.radikal.ru/1005/1f/61fabf24866d.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i072.radikal.ru/1005/1f/61fabf24866d.gif')" />
<img src="http://s40.radikal.ru/i087/1005/73/453c7686ee37.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s40.radikal.ru/i087/1005/73/453c7686ee37.gif')" />
<img src="http://s07.radikal.ru/i180/1005/93/*цензура*2128edf47.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s07.radikal.ru/i180/1005/93/*цензура*2128edf47.gif')" />
<img src="http://i066.radikal.ru/1005/89/131741843d79.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://i066.radikal.ru/1005/89/131741843d79.gif')" />
<img src="http://s40.radikal.ru/i088/1005/f9/082cb1c36ed2.gif" style="cursor:pointer" onclick="insTxt(); showhide('smiler')" onmouseover="copyTSmil('http://s40.radikal.ru/i088/1005/f9/082cb1c36ed2.gif')" />
</div>


4.
здесь же почти в самом низу ищем:

Цитата
<textarea cols='80' rows='20' name='Post' tabindex='3' class='textinput'>$data</textarea>


заменяем на:

Цитата
<textarea onfocus='storeCaret(this);' onkeyup='storeCaret(this);' onclick='storeCaret(this);' onselect='storeCaret(this);' id='tex' cols='80' rows='20' name='Post' tabindex='3' class='textinput'>$data</textarea>


сохраняем изменения
в итоге панель с кнопками должна выглядеть так:

user posted image

проверить работоспособность мода можно на моём ФОРУМЕ

тестировал в Mozilla и Opera, всё работает
wink.gif

Это сообщение отредактировал Romych - Авг 4 2011, 10:36


--------------------
Top
Сергей
Отправлено: Авг 30 2010, 05:10
Quote Post


<? echo"Кодер" ?>
Group Icon

Группа: Пользователи
Сообщений: 1 610
Пользователь №: 1 411
Регистрация: 5-Апреля 09
Member Offline

Репутация: 75




Молодец.

Перенесено в раздел для модификаций.
Top
asm-a
Отправлено: Авг 30 2010, 08:24
Quote Post


<? echo"Кодер" ?>
Group Icon

Группа: Пользователи
Сообщений: 964
Пользователь №: 2 333
Регистрация: 29-Май 10
Member Offline

Репутация: 58




Осталось разместить теги как в IPB 2 smile.gif


--------------------
Уважаемые посетители, используйте ПОИСК прежде чем что-то спросить.
--------------
За пределами форума технической поддержки помогаю только на ПЛАТНОЙ основе, независимо, есть ли у вас форум на нашем сервисе. Если есть вопросы или предложения, можете смело обратиться ко мне в ЛС
--------------
Мой сайт
--------------
xxx: Сегодня был у нашего админа, увидел на столе в горах хлама листок, весь исписанный фразой «Hello world». Оказалось, он так ручку расписывает.
Top
Ustas
Отправлено: Сен 9 2010, 00:03
Quote Post


Юзер
Group Icon

Группа: Пользователи
Сообщений: 232
Пользователь №: 1 570
Регистрация: 29-Июня 09
Из: Лен.область
Member Offline

Репутация: нет




Romych,поставил этот мод-и снова пропал новый спойлер,точнее не работает.До установки доп.цветов и т.д. спойлер работал.Связаны ли эти 2 мода-не хотелось бы терять ни спойлер,ни этот мод.


--------------------
user posted image451600970 - на связи.

Top
Alex Okonnor
Отправлено: Сен 9 2010, 00:37
Quote Post


[Адмирал]
Group Icon

Группа: Пользователи
Сообщений: 1 661
Пользователь №: 518
Регистрация: 7-Февраля 08
Из: провинциальной деревушки на краю ада
Member Offline

Репутация: 83




Цитата (Ustas @ Сегодня, 00:03)
поставил этот мод-и снова пропал новый спойлер,точнее не работает.До установки доп.цветов и т.д. спойлер работал.Связаны ли эти 2 мода-не хотелось бы терять ни спойлер,ни этот мод.

Причина в другом...так как у Romych, на форуме и этот мод и новый спойлер работают.


--------------------
Помог ? Тогда жмите user posted image
=========================
user posted image310-950-543 сюда стучать, если у вас есть предложение ко мне.. [в аське крайне редко]
user posted image ник : zse_gm по пустякам не беспокоить. [Обычно в онлайне до 5-6 вечера по мск]
За приделами форума тех. поддержки, за "спасибо" нечего не делаю!
=========================
user posted image
=========================
Из 1.3 в 3.1, возможно или нет?!
Возможно... Сделано... Проверено... Доказано =)


Один из Основателей Saint people
Top
Ustas
Отправлено: Сен 9 2010, 00:48
Quote Post


Юзер
Group Icon

Группа: Пользователи
Сообщений: 232
Пользователь №: 1 570
Регистрация: 29-Июня 09
Из: Лен.область
Member Offline

Репутация: нет




Alex Okonnor,но перестало работать после установки этого мода.
МБ снова слеши съедаются?


--------------------
user posted image451600970 - на связи.

Top
Alex Okonnor
Отправлено: Сен 9 2010, 00:53
Quote Post


[Адмирал]
Group Icon

Группа: Пользователи
Сообщений: 1 661
Пользователь №: 518
Регистрация: 7-Февраля 08
Из: провинциальной деревушки на краю ада
Member Offline

Репутация: 83




Цитата (Ustas @ Сегодня, 00:48)
но перестало работать после установки этого мода.
МБ снова слеши съедаются?

Проверьте. Возможно у спойлера и слетели слэши smile.gif


--------------------
Помог ? Тогда жмите user posted image
=========================
user posted image310-950-543 сюда стучать, если у вас есть предложение ко мне.. [в аське крайне редко]
user posted image ник : zse_gm по пустякам не беспокоить. [Обычно в онлайне до 5-6 вечера по мск]
За приделами форума тех. поддержки, за "спасибо" нечего не делаю!
=========================
user posted image
=========================
Из 1.3 в 3.1, возможно или нет?!
Возможно... Сделано... Проверено... Доказано =)


Один из Основателей Saint people
Top
Romych
Отправлено: Сен 9 2010, 00:54
Quote Post


Странник
Group Icon

Группа: Пользователи
Сообщений: 174
Пользователь №: 2 237
Регистрация: 21-Апреля 10
Member Offline

Репутация: 42




Цитата (Ustas @ Сегодня, 00:03)
поставил этот мод-и снова пропал новый спойлер,точнее не работает.До установки доп.цветов и т.д. спойлер работал.Связаны ли эти 2 мода-не хотелось бы терять ни спойлер,ни этот мод.

переустановите, Всё в одном v.3
у вас там опять в регулярках съелись слеши, зачем вы заходили в Админцентр -> Скины и Шаблоны -> HTML шаблоны -> Настройка HTML (напротив нужного названия скина) -> Topic View Section -> Footer ???
мод дополнительных цветов и смайлов, этого не предполагает

будьте внимаетельнее


--------------------
Top
Ustas
Отправлено: Сен 9 2010, 01:15
Quote Post


Юзер
Group Icon

Группа: Пользователи
Сообщений: 232
Пользователь №: 1 570
Регистрация: 29-Июня 09
Из: Лен.область
Member Offline

Репутация: нет




Romych,сейчас переустановлю-но только я туда не ходил

Все встало на свои места

Это сообщение отредактировал Ustas - Сен 9 2010, 01:19


--------------------
user posted image451600970 - на связи.

Top
newfclub
  Отправлено: Сен 9 2010, 20:10
Quote Post


Новичок
Group Icon

Группа: Пользователи
Сообщений: 14
Пользователь №: 2 327
Регистрация: 25-Май 10
Member Offline

Репутация: нет




Что нужно изменить в этом коде, чтобы при нажатии на B, например, не было всплывающего окна с просьбой ввести текст, а выделенный в основном окне текст сразу обрамлялся бы тэгами жирности?

На этом форуме поддержки при нажатии на B в окно сообщения подставляется соответствующий тэг. Вот именно это и нужно. Я уже выделил текст и хочу его оформить в тэги жирности. Зачем нужно еще одно всплывающее окно, где надо снова вводить какой-то текст?


--------------------
Любовь и боль, покой и бой я как любой несу с собой...
Top
Dron
Отправлено: Сен 9 2010, 20:44
Quote Post


admin of ipb.su
Group Icon

Группа: Пользователи
Сообщений: 6 040
Пользователь №: 3
Регистрация: 27-Октября 07
Из: г.Псков
Member Offline

Репутация: 133




newfclub,
А мне кажеться у администрации уже должен был язык опухнуть объяснять эту мелочь... mad.gif
Значит так... Жмем кнопку ОТВЕТИТЬ в любой теме и в появившейся форме, слева ищем форму переключения тегов на нормальный и расширенный режимы... Выбираем нормальный и будет вам счастье.


--------------------

Мой блог: Блог Dron'а
E-mail: dron@ipb.su.
ICQ: 263635213.
-----------------------------------------------------------------------
user posted image

-----------------------------------------------------------------------
Вопрос/Ответ на тему IPB.SU
-----------------------------------------------------------------------
user posted image - Отблагодари, если я помог.
Top
newfclub
Отправлено: Сен 9 2010, 21:02
Quote Post


Новичок
Group Icon

Группа: Пользователи
Сообщений: 14
Пользователь №: 2 327
Регистрация: 25-Май 10
Member Offline

Репутация: нет




Ну, тогда уж пальцы, а не язык, ведь на форумах все же не языком отвечают, а пальцами рук. biggrin.gif

Спасибо за ответ и терпение. Но все же кнопка выравнивания, например, по центру или по правому краю в обоих режимах действует одинаково, а именно отправляет тэг прямиком в окно редактирования сообщения. Вот такого же поведения хотелось бы и от остальных тэгов.


--------------------
Любовь и боль, покой и бой я как любой несу с собой...
Top
p0wER
Отправлено: Окт 4 2010, 11:45
Quote Post


Новичок
Group Icon

Группа: Пользователи
Сообщений: 1
Пользователь №: 2 663
Регистрация: 4-Октября 10
Member Offline

Репутация: нет




Все сделал, кнопки появились но при нажатии на них ничего не происходит. Подскажите как исправить) Заранее спасибо)

upd

Уже разобрался, не полностью скопировал код из 2 пункта smile.gif

Это сообщение отредактировал p0wER - Окт 4 2010, 12:07
Top
Romych
Отправлено: Окт 5 2010, 16:25
Quote Post


Странник
Group Icon

Группа: Пользователи
Сообщений: 174
Пользователь №: 2 237
Регистрация: 21-Апреля 10
Member Offline

Репутация: 42




Цитата (p0wER @ Вчера, 11:45)
Все сделал, кнопки появились но при нажатии на них ничего не происходит. Подскажите как исправить) Заранее спасибо)

всё вопрос исчерпан?


--------------------
Top
Сергей
Отправлено: Окт 5 2010, 16:26
Quote Post


<? echo"Кодер" ?>
Group Icon

Группа: Пользователи
Сообщений: 1 610
Пользователь №: 1 411
Регистрация: 5-Апреля 09
Member Offline

Репутация: 75




to Romych:

Цитата (p0wER @ Вчера, 14:45)
Уже разобрался, не полностью скопировал код из 2 пункта
Top
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:

Topic Options Страницы: (2) [1] 2  Reply to this topicStart new topicStart Poll