Jump to content
Дизайн и модификация Invision Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
nCuX

Кнопка

Recommended Posts

Как поставить кнопку спойлер в редактор?

МОд установлен, сама кнопочка есть.

Куда копать подскажите

 

И при нажатии "боковая панель" ничего не происходит ((

Share this post


Link to post

Хорошо. посмотр. а вопрос еще один остался... в поиске ничего толком не нашел

Как поставить кнопку спойлер в редактор?

Share this post


Link to post

Посмотрите темы про дополнительные bb-коды

 

Ps

Я никогда не ставила спойлер. Поэтому единственное, что могу, отправить в темы.

Share this post


Link to post

Спасибо Fisana.

Просто выкладывается магнет ссылки, приходиться сворачивать.

Share this post


Link to post

А какого формата тег должен вставляться?

 

Могу набросать простенький мануал...

Share this post


Link to post

Хорошо если не сложно =)

[spoiler] [/spoiler]

Share this post


Link to post

Несложно :)

 

Открываем: /javascript/ips_text_editor_lite.js

Найти:
this.ipb_code=function(){var _text=this.get_selection();this.wrap_tags('code',false,_text);};

Добавить после:

this.ipb_spoiler=function(){var _text=this.get_selection();this.wrap_tags('spoiler',false,_text);};

Открываем: /javascript/ips_text_editor.js

Найти:

this.ipb_code=function(){this.wrap_tags_lite('[code]','
',0)};


Добавить после:

this.ipb_spoiler=function(){this.wrap_tags_lite('

','

',0)};

Открыть: cache/lang_cache/ru/lang_editors.php

Найти:

'js_rte_lite_code' => "Код",

Добавить ниже:

'js_rte_lite_spoiler' => "вставить код spoiler(или что то другое - как сами напишете)",

Редактирование шаблонов.
Идём в Админцентр-->ВНЕШНИЙ ВИД / ваш шаблон, Изменить HTML шаблоны / skin_topic (просмотр темы) / quick_reply_box_open *

Найти:

<td><div class="rte-normal" id="fast-reply_cmd_ipb_code"><img src="style_images/<#IMG_DIR#>/folder_editor_images/rte-code-button.png" alt="{$this->ipsclass->lang['js_rte_lite_code']}" title="{$this->ipsclass->lang['js_rte_lite_code']}"></div></td>

Добавить ниже:

<td><div class="rte-normal" id="fast-reply_cmd_ipb_spoiler"><img src="style_images/<#IMG_DIR#>/folder_editor_images/icon_spoiler.png" alt="{$this->ipsclass->lang['js_rte_lite_spoiler']}" title="{$this->ipsclass->lang['js_rte_lite_spoiler']}"></div></td>


Далее :/ skin_editors (редактор сообщений) / ips_editor *

Найти:

<td><div class="rte-normal" id="{$editor_id}_cmd_ipb_code"><img src="{$images_path}rte-code-button.png" alt="{$this->ipsclass->lang['js_rte_lite_code']}" title="{$this->ipsclass->lang['js_rte_lite_code']}"></div></td>

Добавить ниже:

<td><div class="rte-normal" id="{$editor_id}_cmd_ipb_spoiler"><img src="{$images_path}icon_spoiler.png" alt="{$this->ipsclass->lang['js_rte_lite_spoiler']}" title="{$this->ipsclass->lang['js_rte_lite_spoiler']}"></div></td>

Залить кнопку с названием: icon_spoiler.png в папку style_images/ваш_скин/folder_editor_images[/code]

Share this post


Link to post

В полном редакторе работает все ок. в быстром ответе ничего не происходит при нажатии

Share this post


Link to post

Попробуйте страницу обновить несколько раз...

Share this post


Link to post

Ответьте пожалуйста, а что необходимо изменить в данном тексте, чтобы добавлялось [spoiler=Описание]Раскрывающийся текст

????????

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...