Файловый Архив

  • Неограниченное количество категорий и суб-категорий
  • Настройки прав доступа по группам
  • Настройки прав доступа по каждой категории
  • Предпросмотр медиа файлов: FLV, IFLV, F4A, F4V, MP4, MP3, MOV и других...
  • Мультизагрузка файлов - SWFUploader
  • Добавление файлов с сервера
Подробности и история обновлений продукта в этой теме
 
 
 
 

 
 
Здесь скоро опять что то будет...
 
 
 
 
 
 
Loading

Вернуться   форум vBSupport.org > Вопрос — Ответ > Вопрос — Ответ > Запросы / Requests

Объявления
  • Изменения в правах
  • Каталог Фрилансеров
  • Добро пожаловать!
  • Premoderation
  • Новичкам!
  • For English speaking users
Ответ
 
Опции темы Опции просмотра
Старый 27.01.2006, 21:42   #1
Продвинутый
Черта в BB-Code !

Нужна помощь по хаку. Как поставить чёрточку слева от иконки BB в форме быстрого ответа.

Посмотрите, что нужн оизменить ниже в этом хаке, что бы было так, как показано во вложении:

Код HTML:
Expanded/Collapsed Menu BB-Code by kerk [http://wwwforumok.info | http://vbsupport.org]
=========================
Редактирование шаблонов showthread_quickreply и postbit_quickedit, 
добавляет сворачиваемое меню дополнительных BB-кодов 
в форме быстрого ответа и форме быстрого редактирования

В шаблоне showthread_quickreply найти:
=========================
    <if condition="!is_browser('opera')">
        <td width="100%">&nbsp;</td>
=========================

И ВЫШЕ! добавить:
=========================
<td class="alt_pickbutton"><div class="imagebutton" id="{$editorid}_menu_tags" title="Дополнительные BB-Коды" onclick="return toggle_collapse('menu_tags')"><img src="$stylevar[imgdir_editor]/resize_1.gif" title="Дополнительные BB-Коды" width="21" height="9" alt="" /></div></td><td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
        
========================= 

Найти:
=========================
        <td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]" /></div></td>
    </if>
    </tr>   
  </table>
========================= 

Ниже добавить:
=========================

<!-- menu_tags -->
<div id="collapseobj_menu_tags" style="display:none">
<div style="padding:2px 0px 2px 0px;"></div>
<table cellpadding="0" cellspacing="0" border="0">
            <tr> 
<if condition="$show['font_bbcode']">
<td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
  <table cellpadding="0" cellspacing="0" border="0">
    <tr>
     <td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
      <td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
    </tr>
  </table>                
</div></td>
</if>
<if condition="$show['size_bbcode']">
<td><div class="imagebutton" id="{$editorid}_popup_fontsize" title="$vbphrase[sizes]">
<table cellpadding="0" cellspacing="0" border="0">
 <tr>
   <td class="popup_feedback"><div id="{$editorid}_size_out">&nbsp;</div></td>
<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
    </tr>
    </table>
  </div></td>
</if>
<if condition="$show['list_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_insertorderedlist"><img src="$stylevar[imgdir_editor]/insertorderedlist.gif" width="21" height="20" alt="$vbphrase[ordered_list]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_insertunorderedlist"><img src="$stylevar[imgdir_editor]/insertunorderedlist.gif" width="21" height="20" alt="$vbphrase[unordered_list]" /></div></td>
</if>
<if condition="$show['code_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" width="21" height="20" alt="$vbphrase[wrap_code_tags]" /></div></td>
</if> 
<if condition="$show['html_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.gif"  width="21" height="20" alt="$vbphrase[wrap_html_tags]" /></div></td>
</if>
<if condition="$show['php_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_php"><img src="$stylevar[imgdir_editor]/php.gif" width="21" height="20" alt="$vbphrase[wrap_php_tags]" /></div></td>
</if>
<td><div class="imagebutton" id="{$editorid}_cmd_undo"><img src="$stylevar[imgdir_editor]/undo.gif" width="21" height="20" alt="$vbphrase[undo]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_redo"><img src="$stylevar[imgdir_editor]/redo.gif" width="21" height="20" alt="$vbphrase[redo]" /></div></td>
          </tr>
      </table>
   </div>
<!-- / menu_tags -->

=======================

В шаблоне postbit_quickedit найти:
=========================
    <if condition="!is_browser('opera')">
        <td width="100%">&nbsp;</td>
=========================

И ВЫШЕ! добавить:
=========================
<td class="alt_pickbutton"><div class="imagebutton" id="{$editorid}_menu_tags" title="Дополнительные BB-Коды" onclick="return toggle_collapse('menu_tags')"><img src="$stylevar[imgdir_editor]/resize_1.gif" title="Дополнительные BB-Коды" width="21" height="9" alt="" /></div></td><td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
        
========================= 

Найти:
=========================
            <td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]" /></div></td>
        </if>
        </tr>
        </table>
========================= 

Ниже добавить:
========================= 
<!-- menu_tags -->
<div id="collapseobj_menu_tags" style="display:none">
<div style="padding:2px 0px 2px 0px;"></div>
<table cellpadding="0" cellspacing="0" border="0">
            <tr> 
<if condition="$show['font_bbcode']">
<td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
  <table cellpadding="0" cellspacing="0" border="0">
    <tr>
     <td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
      <td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
    </tr>
  </table>                
</div></td>
</if>
<if condition="$show['size_bbcode']">
<td><div class="imagebutton" id="{$editorid}_popup_fontsize" title="$vbphrase[sizes]">
<table cellpadding="0" cellspacing="0" border="0">
 <tr>
   <td class="popup_feedback"><div id="{$editorid}_size_out">&nbsp;</div></td>
<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
    </tr>
    </table>
  </div></td>
</if>
<if condition="$show['list_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_insertorderedlist"><img src="$stylevar[imgdir_editor]/insertorderedlist.gif" width="21" height="20" alt="$vbphrase[ordered_list]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_insertunorderedlist"><img src="$stylevar[imgdir_editor]/insertunorderedlist.gif" width="21" height="20" alt="$vbphrase[unordered_list]" /></div></td>
</if>
<if condition="$show['code_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" width="21" height="20" alt="$vbphrase[wrap_code_tags]" /></div></td>
</if> 
<if condition="$show['html_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.gif"  width="21" height="20" alt="$vbphrase[wrap_html_tags]" /></div></td>
</if>
<if condition="$show['php_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_php"><img src="$stylevar[imgdir_editor]/php.gif" width="21" height="20" alt="$vbphrase[wrap_php_tags]" /></div></td>
</if>
<td><div class="imagebutton" id="{$editorid}_cmd_undo"><img src="$stylevar[imgdir_editor]/undo.gif" width="21" height="20" alt="$vbphrase[undo]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_redo"><img src="$stylevar[imgdir_editor]/redo.gif" width="21" height="20" alt="$vbphrase[redo]" /></div></td>
          </tr>
      </table>
   </div>
<!-- / menu_tags -->
=========================
Заранее спасибо...
Вложения
Тип файла: rar BB-code (Нужна помощь !!!).rar (5.3 Кб, 11 просмотров)
  Ответить с цитированием
Рекламка
Реклама на форуме
Старый 28.01.2006, 05:19   #2
Xenon888
Продвинутый
тебе нужно вставить
Код:
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
после
Код:
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" />
и должно получитса вот это
Код:
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" />
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</div></td>
удачи.
  Ответить с цитированием
Старый 29.01.2006, 17:28   #3
Rule
Продвинутый
 
Аватар для Rule
А к любой версии подходит?

Последний раз редактировалось Rule; 29.01.2006 в 17:30..
  Ответить с цитированием
Старый 30.01.2006, 19:03   #4
Azureus
Продвинутый
Код:
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
А почему нет?
Это же просто html код. Просто вариан вписать черточку в необходимом месте.
  Ответить с цитированием
Ответ

Закладки

Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.



 
 

Текущее время: 15:18 25.05.2012. Часовой пояс GMT +4.


Powered by vBulletin® Version 3.5.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd. Перевод: zCarot