New articles Năng lực quản lý: nhân tố thứ năm     ♥ Lựa chọn mục tiêu cuộc đời     ♥ 10 bí quyết cân bằng công việc và gia đình     ♥ Cô đơn trên mạng     ♥ Chứng khoán: Giấc mơ và ác mộng     ♥ Tám     ♥ Những tính năng của blog VnVista     ♥ Các mạng xã hội thống trị Google     ♥ Điều gì tạo nên một giám đốc công nghệ thông tin giỏi?     ♥ Cố gắng xóa bỏ những ấn tượng xấu     ♥ Cần một cách làm ăn mới     ♥ Tiếp thị hướng đến doanh nhân     ♥ Đưa cửa hàng thật lên chợ ảo     ♥ Bí quyết quản lý các nhân viên trẻ     ♥ Một số câu hỏi phỏng vấn “đặc biệt” của Microsoft     ♥ 4 bài học thành công trong kinh doanh     ♥ Tạo dựng hình ảnh một cô gái trẻ chuyên nghiệp     ♥ Góc “khác” của thế giới online đêm     ♥ Phong cách người Mỹ     ♥ Chỉ nghĩ đến tiền cũng làm người ta ích kỷ     
New blog entries Các chất liệu thiết kế, sản xuất giày bảo hộ      ♥ Tư vấn chọn giày bảo hộ lao động phù hợp      ♥ SHEET Thương tình nhân      ♥ SHEET Liêu xiêu đường tình      ♥ SHEET Tình yêu lung linh      ♥ Các loại visa Qatar phổ biến mà bạn cần biết      ♥ Tủ dụng cụ 2 cánh 5 ngăn KT: 1000Wx500Dx1800Hmm      ♥ Tủ dụng cụ 2 cánh 5 ngăn KT: 1000Wx500Dx1800Hmm      ♥ Tủ dụng cụ 2 cánh 5 ngăn KT: 1000Wx500Dx1800Hmm      ♥ SHEET Nếu đời không có anh      ♥ Phụ Gia Nhựa Làm Giảm Co Ngót Sau Gia Công Ép Phun      ♥ Địa chỉ mua giày bảo hộ nam chính hãng      ♥ SHEET Giây phút êm đềm      ♥ Máy Triệt Lông Công Nghệ Cao K18A      ♥ Cách chọn giày bảo hộ tại Đà Nẵng      ♥ hình ảnh Yae Miko Game Genshin Impact      ♥ Cách bảo quản và vệ sinh giày bảo hộ lao động      ♥ SHEET Yêu 1 người sao buồn đến thế      ♥ Bí quyết bảo quản giày bảo hộ lao động      ♥ Máy Triệt Lông Lạnh Diode Laser K17      

[ Liệt Kê ] · Bình Thường · Tách Biệt+

Mod UBBC cho IPB 2.x


Tacaza
post Sep 3 2005, 11:42 PM
Gửi vào: #1


Group Icon

The chALLeNgER
**********
Thành viên: 1
Nhập: 3-July 05
Bài viết: 3,003
Tiền mặt: 1,210
Thanked: 1572
Cấp bậc: 43
------
Giới tính: Male
Sinh nhật: 3 Tháng 4 - 1983
Đến từ: Hà Nội
------
Xem blog
Bạn bè: 253 (Xem)
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin





======================================
Mod ubbc for 2.0
by RED
=====================================

Download về các file cần thiết :
skin_cache/cacheid_2/skin_post.php
sources/lib/post_parser.php

Vào:
• skin_cache/cacheid_2/skin_post.php và tìm trong function postbox_buttons($data="") {:

CODE
<script type='text/javascript' src='jscripts/ipb_bbcode.js'></script>
</td>
<td class='pformright'>
 <input type='button' accesskey='b' value=' B '       onclick='simpletag("B")' class='codebuttons' name='B' style="font-weight:bold" onmouseover="hstat('bold')" />
 <input type='button' accesskey='i' value=' I '       onclick='simpletag("I")' class='codebuttons' name='I' style="font-style:italic" onmouseover="hstat('italic')" />
 <input type='button' accesskey='u' value=' U '       onclick='simpletag("U")' class='codebuttons' name='U' style="text-decoration:underline" onmouseover="hstat('under')" />
 
 <select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')"  onmouseover="hstat('font')">
 <option value='0'>{$ibforums->lang['ct_font']}</option>
 <option value='Arial' style='font-family:Arial'>{$ibforums->lang['ct_arial']}</option>
 <option value='Times' style='font-family:Times'>{$ibforums->lang['ct_times']}</option>
 <option value='Courier' style='font-family:Courier'>{$ibforums->lang['ct_courier']}</option>
 <option value='Impact' style='font-family:Impact'>{$ibforums->lang['ct_impact']}</option>
 <option value='Geneva' style='font-family:Geneva'>{$ibforums->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'>{$ibforums->lang['ct_size']}</option>
 <option value='1'>{$ibforums->lang['ct_sml']}</option>
 <option value='7'>{$ibforums->lang['ct_lrg']}</option>
 <option value='14'>{$ibforums->lang['ct_lest']}</option>
 </select><select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR')" onmouseover="hstat('color')">
 <option value='0'>{$ibforums->lang['ct_color']}</option>
 <option value='blue' style='color:blue'>{$ibforums->lang['ct_blue']}</option>
 <option value='red' style='color:red'>{$ibforums->lang['ct_red']}</option>
 <option value='purple' style='color:purple'>{$ibforums->lang['ct_purple']}</option>
 <option value='orange' style='color:orange'>{$ibforums->lang['ct_orange']}</option>
 <option value='yellow' style='color:yellow'>{$ibforums->lang['ct_yellow']}</option>
 <option value='gray' style='color:gray'>{$ibforums->lang['ct_grey']}</option>
 <option value='green' style='color:green'>{$ibforums->lang['ct_green']}</option>
 </select>
 &nbsp; <a href='javascript:closeall();' onmouseover="hstat('close')">{$ibforums->lang['js_close_all_tags']}</a>
 <br />
 <input type='button' accesskey='h' value=' http:// ' onclick='tag_url()'            class='codebuttons' name='url' onmouseover="hstat('url')" />
 <input type='button' accesskey='g' value=' IMG '     onclick='tag_image()'          class='codebuttons' name='img' onmouseover="hstat('img')" />
 <input type='button' accesskey='e' value='  @  '     onclick='tag_email()'          class='codebuttons' name='email' onmouseover="hstat('email')" />
 <input type='button' accesskey='q' value=' QUOTE '   onclick='simpletag("QUOTE")'   class='codebuttons' name='QUOTE' onmouseover="hstat('quote')" />
 <input type='button' accesskey='p' value=' CODE '    onclick='simpletag("CODE")'    class='codebuttons' name='CODE' onmouseover="hstat('code')" />
 <input type='button' accesskey='l' value=' LIST '     onclick='tag_list()'          class='codebuttons' name="LIST" onmouseover="hstat('list')" />
 <!--<input type='button' accesskey='l' value=' SQL '     onclick='simpletag("SQL")'     class='codebuttons' name='SQL'>
 <input type='button' accesskey='t' value=' HTML '    onclick='simpletag("HTML")'    class='codebuttons' name='HTML'>-->
 <br />
 {$ibforums->lang['hb_open_tags']}:&nbsp;<input type='text' name='tagcount' size='3' maxlength='3' style='font-size:10px;font-family:verdana,arial;border:0px;font-weight:bold;' readonly="readonly" class='row1' value="0" />
 &nbsp;<input type='text' name='helpbox' size='50' maxlength='120' style='width:auto;font-size:10px;font-family:verdana,arial;border:0px' readonly="readonly" class='row1' value="{$ibforums->lang['hb_start']}" />
</td>
</tr>
<tr>



Thay bằng:

CODE

<td class='row1'>
<script language="javascript" type="text/javascript" src="html/UBBC/ubbc.js"></script>
<script language="javascript" type="text/javascript"><!--
var flash_w = '200'; var flash_h = '400';
var ubbc_dir = 'html/UBBC';
var emoticon_dir = 'style_emoticons/default';
var use_graphics = 1; // 1 = Graphical, 0 = Form based (buttons)
makeInterface(1,1,use_graphics);
//--></script>
</td>
</tr>
<tr>



Tìm Tiếp :

CODE

textarea cols='80' rows='20' name='Post' tabindex='5' class='textarea'>$data</textarea>



Thay bằng :

CODE

<textarea cols="80" rows="20" wrap="soft" name="Post" tabindex="3" class="textinput" onClick="storeCaret(this);" onKeyup="storeCaret(this);" onChange="storeCaret(this);" onFocus="storeCaret(this);">*$data</textarea>
<script language="javascript"><!--
ubbcInit(1,1,use_graphics);
//--></script>



------------------
Tương tự , các bạn lặp lại bước này ở function pm_postbox_buttons($data="") {
------------------

Sau đó các bạn mở ./sources/lib/post_parser.php và tìm:

CODE

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



Thêm phía dưới:

CODE

$txt = preg_replace( "#\[shadow=(\S+?)\s*\](.*?)\[\/shadow\]#is", "<font style='width=80%; filter:shadow\(color=\\1)'>\\2</font>", $txt );
$txt = preg_replace( "#\[glow=(\S+?)\s*\](.*?)\[\/glow\]#is", "<font style='width=80%; filter:glow\(color=\\1)'>\\2</font>", $txt );
$txt = preg_replace( "#\[fliph\](.+?)\[\/fliph\]#is", "<font style='width=80%; filter:flipH'>\\1</font>", $txt );
$txt = preg_replace( "#\[flipv\](.+?)\[\/flipv\]#is", "<font style='width=80%; filter:flipV'>\\1</font>", $txt );
$txt = preg_replace( "#\[move\](.+?)\[\/move\]#is", "<marquee>\\1</marquee>", $txt );
$txt = preg_replace( "#\[blur\](.*?)\[\/blur\]#is", "<font style='width=80%; filter:blur'>\\1</font>", $txt );
$txt = preg_replace( "#\[align\s*=\s*(\S+?)\s*\](.*?)\[\/align\]#is", "<div align=\"\\1\">\\2</div>", $txt );
$txt = preg_replace( "#\[dropshadow=(\S+?)\s*\](.*?)\[\/dropshadow\]#is", "<font style='width=80%; filter:dropshadow(color=\\1)'>\\2</font>", $txt );
$txt = preg_replace( "#(\[invert\])(.+?)(\[/invert\])#is", "<font style='width=80%; filter:invert'>\\2</font>", $txt );
$txt = preg_replace( "#(\[xray\])(.+?)(\[/xray\])#is", "<font style='width=80%; filter:xray'>\\2</font>", $txt );
$txt = preg_replace( "#\[spoiler\](.*)\[/spoiler\]#is", "<\!-- spoilerKillit --><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td bgcolor=\"#000000\" valign=\"middle\" align=\"left\"><font color=\"#000000\" size=\"1\"><b>Spoiler (Highlight to Read)\:</b></font><br></td></tr><tr><td bgcolor=\"#ffffff\" valign=\"middle\" align=\"left\"><font color=\"#ffffff\" size=\"1\"><\!-- spoilerKillitEnd --><\!--txtStart-->\\1<\!--txtEnd--><\!-- spoilerKillit --></td></tr></table><\!-- spoilerKillitEnd -->", $txt );
     $txt = preg_replace( "#\[video\](.+?)\[/video\]#is", "<div align=\"center\"><embed SRC=\\1 type=\"audio/x-pn-realaudio-plugin\" CONSOLE=\"Clip1\"CONTROLS=\"ImageWindow,ControlPanel,StatusBar\" HEIGHT=\"230\" WIDTH=\"240\"AUTOSTART=\"false\"></embed>", $txt );
 $txt = preg_replace( "#\[sound\](.+?)\[/sound\]#is", "<param name=\"BACKGROUNDCOLOR\" <br /><embed src=\\1 align=\"baseline\" border=\"0\" width=\"275\" height=\"40\" type=\"audio/x-pn-realaudio-plugin\" console=\"Clip1\" controls=\"ControlPanel\" autostart=\"true\">", $txt );
 $txt = preg_replace( "#\[web\](.+?)\[/web\]#is", "<IFRAME WIDTH=550 HEIGHT=400 SRC=\\1></IFRAME>", $txt );
$txt = preg_replace( "#\[me\](.+?)\[/me\]#is", "<b>*" . $ibforums->member['name'] . " \\1</b><br>", $txt );



Rồi tìm tiếp :

CODE

function unconvert($txt="", $code=1, $html=0) {

$txt = preg_replace( "#<!--emo&(.+?)-->.+?<!--endemo-->#", "\\1" , $txt );

if ($code == 1)
{



Thêm vào phía dưới:

CODE

$txt = preg_replace( "#(<font style='width=80%; filter:invert'>)(.+?)(</font>)#is", "\[invert\]\\2\[/invert\]", $txt );
$txt = preg_replace( "#(<font style='width=80%; filter:xray'>)(.+?)(</font>)#is", "\[xray\]\\2\[/xray\]", $txt );
$txt = preg_replace( "#(<marquee>)(.+?)(</marquee>)#is", "\[move\]$2\[/move\]", $txt );
$txt = preg_replace( "#(<font style='width=80%; filter:glow\(color=)(.+?)(\)'>)(.+?)(</font>)#is", "\[glow=\\2\]\\4\[/glow\]", $txt );
$txt = preg_replace( "#(<font style='width=80%; filter:shadow\(color=)(.+?)(\)'>)(.+?)(</font>)#is", "\[shadow=\\2\]\\4\[/shadow\]", $txt );
$txt = preg_replace( "#(<font style='width=80%; filter:flipV'>)(.+?)(</font>)#is", "\[flipv\]\\2\[/flipv\]", $txt );
$txt = preg_replace( "#(<font style='width=80%; filter:flipH'>)(.+?)(</font>)#is", "\[fliph\]\\2\[/fliph\]", $txt );
$txt = preg_replace( '#(<div align=")(.+?)(">)(.+?)(</div>)#is', "\[ALIGN=\\2\]\\4\[/ALIGN\]", $txt );
$txt = preg_replace( "#(<font style='width=80%; filter:blur'>)(.+?)(</font>)#is", "\[blur\]\\2\[\/blur]", $txt );
$txt = preg_replace( "#(<font style='width=80%; filter:dropshadow\(color=)(.+?)(\)'>)(.+?)(</font>)#is", "\[dropshadow=\\2\]\\4\[\/dropshadow\]", $txt );
$txt = preg_replace( "#(<\!--txtStart-->)(.+?)(<\!--txtEnd-->)#is", "\[spoiler\]\\2\[/spoiler\]", $txt );
$txt = preg_replace( "#(<\!-- spoilerKillit -->)(.+?)(<\!-- spoilerKillitEnd -->)#is", "", $txt );
$txt = preg_replace( "#<param name=\"BACKGROUNDCOLOR\" <br /><embed src=(.+?)align=\"baseline\" border=\"0\" width=\"275\" height=\"40\" type=\"audio/x-pn-realaudio-plugin\" console=\"Clip1\" controls=\"ControlPanel\" autostart=\"true\">#"  , "\[sound\]\\1\[/sound\]"  , $txt );
$txt = preg_replace( "#<div align=\"center\"><embed SRC=(.+?)type=\"audio/x-pn-realaudio-plugin\" CONSOLE=\"Clip1\"CONTROLS=\"ImageWindow,ControlPanel,StatusBar\" HEIGHT=\"230\" WIDTH=\"240\"AUTOSTART=\"false\"></embed>#"  , "\[video\]\\1\[/video\]"  , $txt );
$txt = preg_replace( "#<IFRAME WIDTH=550 HEIGHT=400 SRC=(.+?)></IFRAME>#"  , "\[web\]\\1\[/web\]"  , $txt );
$txt = preg_replace( "#\[me\](.+?)\[/me\]#is", "<b>*" . $ibforums->member['name'] . " \\1</b><br>", $txt );
$txt = preg_replace( "#\[me\](.+)#is", "*" . $ibforums->member['name'] . " \\1<br>", $txt );


Tạo thư mục html/UBBC trong thư mục diễn đàn của bạn và upload các file trong file đính kèm vào đó là xong!

Chúc may mắn! 1.gif


--------------------
Nhóm bạn bè:


dung_buong_tay

tamhonngoc_536

uchinhuong

MTTH

xuxusp2

Xem tất cả


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

Sao không là mặt trời, gieo hạt nắng vô tư?


 
Nếu bạn thấy bài viết này vi phạm nội quy forum, hãy click nút này:
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
Tacaza   Mod UBBC cho IPB 2.x   Sep 3 2005, 11:42 PM
nam   Mod này dùng để làm chi vậy Tacaza??   Oct 17 2005, 08:32 AM
Tacaza   Khi hack xong mod này, phần post bài sẽ như...   Oct 17 2005, 09:10 AM
miencattrang   cho mìn mod leve như của diễn đàn nha   Oct 17 2005, 08:14 PM
Tacaza   Ok, đã post, bạn tìm trong diễn đàn nhé ...   Oct 17 2005, 08:34 PM
nam   Hi Tacaza, Mình theo hướng dẫn của bạn ...   Oct 27 2005, 08:18 AM
Tacaza   Bạn xem lại phần edit trong file skin_post.p...   Oct 27 2005, 09:36 AM
nam   Thank tacaza, Mình cũng nghĩ vậy nhưng m...   Oct 27 2005, 09:40 AM
Tacaza   Phần Enter Your Post chinhs là "Nội dun...   Oct 27 2005, 10:14 AM
gio_mua_dong   Bạn khi thay thế phần bên dưới vào file...   Oct 27 2005, 11:32 AM
nam   Thanks Giomuadong, mình đã thêm td vào như...   Oct 27 2005, 06:29 PM
Tacaza   Hic, sorry bạn, đúng là code trên thiếu m�...   Oct 27 2005, 06:52 PM
nam   OK, Thanks các bạn, mình đã chỉnh được...   Oct 27 2005, 09:11 PM
nam   Nhưng hình như mình thấy rằng chỉ có ...   Oct 28 2005, 09:01 AM
Tacaza   Có tác dụng chứ. Khi bạn nhấn flash có ...   Oct 28 2005, 10:01 AM
salaman   bạn có cái code để post nhạc cho bản 2....   Oct 28 2005, 10:28 PM
Tacaza   Đã post bài hướng dẫn. Bạn tìm trong ...   Oct 29 2005, 11:58 AM
nam   Hic, chả hiểu sao hôm qua mình post mãi kh�...   Oct 29 2005, 05:50 AM
nam   Nhưng mà mình làm trên localhost thì không ...   Oct 29 2005, 07:38 AM
gio_mua_dong   Nếu flash vẫn không chạy . bạn vào thử...   Oct 30 2005, 12:49 PM
hoai_duong77   Muốn nó có ở chỗ trả lời nhanh thì sa...   Nov 20 2005, 09:00 AM
Tacaza   Cái này đã post trong diễn đàn rồi cơ m...   Nov 20 2005, 11:00 AM
noibuoncodon   http://www.diachatvn.com/forums/index.php?...E=02...   Dec 10 2005, 02:57 PM
Tacaza   Bạn phải upload các hình ảnh của ubbc v�...   Dec 10 2005, 03:10 PM
noibuoncodon   oh, co' up rồi chứ, nhung k duoc, mấy c�...   Dec 10 2005, 03:18 PM
Tacaza   Bạn hãy đổi tên thư mục html/ubbc hiện...   Dec 10 2005, 03:53 PM
noibuoncodon   Đổi rui, UBBC hay Ubbc thì cái khung dành ch...   Dec 10 2005, 04:17 PM
Tacaza   Chài, chịu bạn thật đấy. Mình đã nói...   Dec 10 2005, 06:16 PM
hoailq   Tại sao khi mình post một bài mp3 thì nó l...   Dec 11 2005, 01:01 AM
hoailq   Không phải là do cái BBCode đâu, mình đan...   Dec 11 2005, 10:50 AM
Tacaza   Real hay Window Media Player là do bbcode quyết...   Dec 11 2005, 10:11 AM
hoailq   vấn đề của mình đã được giải quy�...   Dec 11 2005, 11:23 AM
noibuoncodon   Ủa, sao hack xong cai mod này thì chức năng...   Dec 15 2005, 08:52 PM
Tacaza   Diễn đàn này vẫn đính kèm được file ...   Dec 15 2005, 09:34 PM
noibuoncodon   Thử xem cái nào cũng báo là kích thước ...   Dec 15 2005, 09:46 PM
Thank you ^_^   2 thành viên đã gửi credit cho người lậ...   May 16 2006, 10:24 PM
miencattrang   có bản UBBC .zip không anh cho em với em ko ...   Feb 2 2006, 06:17 PM
576121097   cAM ON BAN DA SHERE CHUC VUI VE NHA   May 16 2006, 10:24 PM
576121097   DAOLOAD VE LAM THEO HUONG DAN NHUNG MA SAO KHONG D...   May 16 2006, 10:29 PM
anhfighter   ý!Mìn làm hoại mà sao nó o ra !Help...   May 25 2006, 11:14 PM


Thank you! Reply to this topicTopic OptionsStart new topic
 

Bản Rút Gọn Bây giờ là: 19th July 2025 - 11:35 PM
Home | Mạng xã hội | Blog | Thiệp điện tử | Tìm kiếm | Thành viên | Sổ lịch