форум vBSupport.ru > vBulletin > Old vB versions (3.0.x & 2.x.x) > vBulletin 3.5.x > Hacks, mods and scripts [3.5.x]
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default Смайлы - под редактором сообщений
4

Sites with a lot of simlies and fixed-width layouts occasionally run into the "smilie-box-stretch-outside-box" problem.

View attachment image to see what I mean.

With this template modification the smilie toolbar box will now display below the editing area NOT beside it.

FIND IN editor_toolbar_on template:

HTML Code:


Quote:
<tr valign="top">
<td class="controlbar"><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea></td>
<if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
</tr>
REPLACE WITH:

HTML Code:
Code:
<tr valign="top">
		<td class="controlbar"><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea></td>
	</tr>
	<if condition="$smiliebox">
	<tr>
		<td class="controlbar">$smiliebox</td></td>
	</tr>
	</if>
Attached Thumbnails
wysiwyg_smilie_below.jpg  
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Rule
Продвинутый
 
Rule's Avatar
Default
0

О.. это долгожданный хак? Такой простой? Хм.. надо поробовать поставить)

Rule добавил 02.02.2006 в 05:20
Ничего не показывает.. Вот кусок изменнёного шаблона editor_toolbar_on
PHP Code:
$vBeditTemplate[extrabuttons]
            </
tr>
            </
table>        
        
        </
td>
    </
tr>
    <
tr valign="top">
        <
td class="controlbar"><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea></td>
    </
tr>
    <if 
condition="$smiliebox">
    <
tr>
        <
td class="controlbar">$smiliebox</td></td>
    </
tr>
    </if>

    </
table>

</
div>

<
input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editortype/>

<
script type="text/javascript"
Rule добавил 02.02.2006 в 05:33
Нет... это не то, чего я ожидал, но всё равно очень удобно. Этот хак меняет отображение смайликов в расширенном режиме ответа. Вот...)

Last edited by Rule : 02-02-2006 at 06:33 AM. Reason: Добавлено сообщение
 
 
Rule
Продвинутый
 
Rule's Avatar
Default
0

Вот только после установки этого хака приходиться с настрояках написания сообщения, указывать количество колонок равное количеству отоброжаемых смайликов. Может можно как то подправить хак, что бы была одна колонка? Ну под "колонкой" понималось не вниз, а по горизонтале?
 
 
Тёма
Продвинутый
 
Тёма's Avatar
Default
0

дааааа такую бы штуку в быстрй ответ...вот была-бы вещь...а в расширеном редакторе и так удобно...
 
 
Rule
Продвинутый
 
Rule's Avatar
Default
0

Тёма,
Ну мне например удобнее когда снизу в полоску.)
====

Кстати, а как сделать в одну линию иконки для темы?
 
 
ddr
Простоузер
Default
0

для быстрого ответа у меня хак есть...если че - пишите.
 
 
Vice
Продвинутый
Хочет чего-то непонятного...
Default
0

Для быстрого ответа хак есть и тут - надо просто искать.. я насколько помню подробно писал как и что надо делать что бы привести хак "смайлы в выпадающем списке" к подобноми виду - т.е. под полем ввода сообщения
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 10:41 PM.


Powered by vBulletin® Version 3.0.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...