Перейти к контенту

Хак: [flash] [/flash]


Рекомендуемые сообщения

Код:

 

*********************************************************************
*                         IBF [flash][/flash]                       *
*               by bokhalifa ( bokhalifa@ibahacks.com)              *
*                      Last Updated: 14-6-02                        * 
*                For Invision Board  RC 1  RC 2  v1.0               *
*********************************************************************

Welcome 


This modification converts

[flash]http://www.ibahacks.com/ib/iba.swf [/flash]
[flash][/flash]


Demo
http://www.ibahacks.com/forums_test/index.php?act=ST&f=2&t=26&st=0&
//---------------------------------------------//
//Step 1: Open file /Sources/lib/post_parser.php.    
//---------------------------------------------//

Find:


	 $txt = preg_replace( "#\[s\](.+?)\[/s\]#is", "<s>\\1</s>", $txt );



Below it, Add:

        $txt = preg_replace( "#\[flash\](.+?)\[/flash\]#is", "<p align=center><embed src=\\1 type=application/x-shockwave-flash width=646 height=333></embed>", $txt );

Find:


	 $txt = preg_replace( "#</ul>#", "\[/LIST\]" , $txt );



Below it, Add:

           $txt = preg_replace( "#<p align=center><embed src=(.+?)type=application/x-shockwave-flash width=646 height=333></embed>#"  , "\[flash\]\\1\[/flash\]"  , $txt );



Log into your Administrator Control Panel, expand Skin & Templates, and
click edit on the template set that you wish to edit.  Select skin_post.html
from the drop-down menu, and click Edit this template file


        <input type='button' accesskey='t' value=' HTML '     onClick='simpletag("HTML")'    class='codebuttons' title="SQL: [Control / Alt] + t"   name='code'>



Below it, Add:


                             <input type='button' accesskey='t' value=' flash '     onClick='simpletag("flash")'    class='codebuttons' title="flash: [Control / Alt] + r"   name='code'>



for dhtml

Find the following code:

      <td><input type="button" onclick="ibURL(this)" name="img" title="Image [k]" accesskey="k" class="ibcButton" value="img" style="width:40px"></td>



Below it, Add:



      <td><input type="button" onclick="ibURL(this)" name="flash" title="flash [k]" accesskey="k" class="ibcButton" value="flash" style="width:40px"></td>



//-----------------------------------------//
//ALL DONE &&& Bokhalifa
//-----------------------------------------//

 

 

 

Не могу понять этого:

 

Log into your Administrator Control Panel, expand Skin & Templates, and

click edit on the template set that you wish to edit. Select skin_post.html

from the drop-down menu, and click Edit this template file

 

В Skin & Templates выбираю скин, а дальше не знаю где там искать skin_post.html

 

 

Подскажите плиз какой путь мышкой проделать? :D

Ссылка на комментарий
Поделиться на других сайтах

тут это уже объяснялось

http://www.ibresource.ru/forums/index.php?...st=0entry1385

Ссылка на комментарий
Поделиться на других сайтах

Присоединиться к обсуждению

Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.

Гость
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Ответить в этой теме...

×   Вы вставили отформатированный текст.   Удалить форматирование

  Допустимо не более 75 смайлов.

×   Ваша ссылка была автоматически заменена на медиа-контент.   Отображать как ссылку

×   Ваши публикации восстановлены.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.

Зарузка...
×
×
  • Создать...

Важная информация

Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.