Liệt Kê ·
[ Bình Thường ] ·
Tách Biệt+
Mod trả lời nhanh đầy đủ & luôn mở, Như diễn đàn này
Tacaza
Nov 6 2005, 12:28 PM
The chALLeNgER
Thành viên : 1
Nhập : 3-July 05
Bài viết : 3,022
Tiền mặt : 1,210
Thanked: 1571
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
Đầu tiên phải làm khung trả lời nhanh luôn mở (ko cần click nút trả lời nhanh):
Mở ./sources/topics.php
Tìm:
CODE
$sqr = $std->my_getcookie("open_qr");
Thay bằng:
CODE
$sqr = 1;
Tiếp theo làm cho trả lời nhanh đầy đủ mặt cười và bbcode
Mở file topic.php ra tìm
CODE
var $poll_html = "";
Thêm dzô bên dưới
CODE
//FastReply Mod var $qreply_html= ""; //FastReply Mod
Tìm tiếp
CODE
$this->output = str_replace( "<!--IBF.QUICK_REPLY_CLOSED-->", $this->html->quick_reply_box_closed(), $this->output ); $this->output = str_replace( "<!--IBF.QUICK_REPLY_OPEN-->" , $this->html->quick_reply_box_open($this->topic['forum_id'], $this->topic['tid'], $show, $this->md5_check), $this->output );
Thay bằng
CODE
//FastReply Mod $ibforums->lang = $std->load_words($ibforums->lang, 'lang_post', $ibforums->lang_id); $this->qreply_html = $std->load_template('skin_post'); //FastReply Mod $this->output = str_replace( "<!--IBF.QUICK_REPLY_CLOSED-->", $this->html->quick_reply_box_closed(), $this->output ); $this->output = str_replace( "<!--IBF.QUICK_REPLY_OPEN-->" , $this->html->quick_reply_box_open($this->topic['forum_id'], $this->topic['tid'], $show, $this->md5_check), $this->output ); //FastReply Mod $this->output = str_replace( "<!--IBF.NAME_FIELD-->", $this->html_name_field(), $this->output); $this->output = str_replace( "<!--IBF.REPLY_JAVA-->", $this->qreply_html->get_javascript(), $this->output); $this->output = str_replace( "<!--IBF.POST_BOX-->", $this->html_post_body(), $this->output); $this->output = $this->html_add_smilie_box( $this->output ); $this->html_checkboxes($this->topic['tid'], $this->topic['forum_id']); //FastReply Mod
Tìm tiếp
CODE
// Pass it to our print routine $print->add_output("$this->output"); $print->do_output( array( 'TITLE' => $ibforums->vars['board_name']." -> {$this->topic['title']}", 'JS' => 1, 'NAV' => $this->nav, ) ); }
Thêm dzô bên dưới
CODE
//FastReply Mod //-------------------------------------------------------------- // MOD: Extended Fast Reply // QUICK REPLY BOX FUNCTIONS (MODIFED, FROM POST MODULE) //-------------------------------------------------------------- /*-------------------------------------------------------------------------*/ // HTML: Post body. // ------------------ // Returns the HTML for post area, code buttons and // post icons /*-------------------------------------------------------------------------*/ function html_post_body($raw_post="") { global $ibforums; $ibforums->lang['the_max_length'] = $ibforums->vars['max_post_length'] * 1024; return $this->qreply_html->postbox_buttons($raw_post); } /*-------------------------------------------------------------------------*/ // HTML: name fields. // ------------------ // Returns the HTML for either text inputs or membername // depending if the member is a guest. /*-------------------------------------------------------------------------*/ function html_name_field() { global $ibforums; return $ibforums->member['id'] ? $this->qreply_html->nameField_reg() : $this->qreply_html->nameField_unreg( $ibforums->input[UserName] ); } /*-------------------------------------------------------------------------*/ // HTML: checkboxes // ------------------ // Returns the HTML for sig/emo/track boxes /*-------------------------------------------------------------------------*/ function html_checkboxes($tid="", $fid="") { global $ibforums, $DB; $default_checked = array( 'sig' => 'checked="checked"', 'emo' => 'checked="checked"', 'tra' => $ibforums->member['auto_track'] ? 'checked="checked"' : '' ); // Make sure we're not previewing them and they've been unchecked! if ( isset( $ibforums->input['enablesig'] ) AND ( ! $ibforums->input['enablesig'] ) ) { $default_checked['sig'] = ""; } if ( isset( $ibforums->input['enableemo'] ) AND ( ! $ibforums->input['enableemo'] ) ) { $default_checked['emo'] = ""; } if ( isset( $ibforums->input['enabletrack'] ) AND ( ! $ibforums->input['enabletrack'] ) ) { $default_checked['tra'] = ""; } else if ( isset( $ibforums->input['enabletrack'] ) AND ( $ibforums->input['enabletrack'] == 1 ) ) { $default_checked['tra'] = 'checked="checked"'; } $this->output = str_replace( '<!--IBF.EMO-->' , $this->qreply_html->get_box_enableemo( $default_checked['emo'] ) , $this->output ); $this->output = str_replace( '<!--IBF.SIG-->' , $this->qreply_html->get_box_enablesig( $default_checked['sig'] ) , $this->output ); if ( $ibforums->cache['forum_cache'][$fid]['use_html'] and $ibforums->cache['group_cache'][ $ibforums->member['mgroup'] ]['g_dohtml'] ) { $this->output = str_replace( '<!--IBF.HTML-->' , $this->qreply_html->get_box_html( array( intval($ibforums->input['post_htmlstatus']) => ' selected="selected"' ) ), $this->output ); } if ( $tid and $ibforums->member['id'] ) { $DB->simple_construct( array( 'select' => 'trid', 'from' => 'tracker', 'where' => "topic_id=$tid AND member_id=".$ibforums->member['id'] ) ); $DB->simple_exec(); if ( $DB->get_num_rows() ) { $this->output = str_replace( '<!--IBF.TRACK-->',$this->qreply_html->get_box_alreadytrack(), $this->output ); } else { $this->output = str_replace( '<!--IBF.TRACK-->', $this->qreply_html->get_box_enabletrack( $default_checked['tra'] ), $this->output ); } } } /*-------------------------------------------------------------------------*/ // HTML: add smilie box. // ------------------ // Inserts the clickable smilies box /*-------------------------------------------------------------------------*/ function html_add_smilie_box($in_html="") { global $ibforums, $DB; $show_table = 0; $count = 0; $smilies = "<tr align='center'>\n"; //------------------------------ // Get the smilies from the DB //------------------------------ if ( ! is_array( $ibforums->cache['emoticons'] ) ) { $ibforums->cache['emoticons'] = array(); $DB->simple_construct( array( 'select' => 'typed,image,clickable,emo_set', 'from' => 'emoticons' ) ); $DB->simple_exec(); while ( $r = $DB->fetch_row() ) { $ibforums->cache['emoticons'][] = $r; } } foreach( $ibforums->cache['emoticons'] as $a_id => $elmo ) { if ( $elmo['emo_set'] != $ibforums->skin['_emodir'] ) { continue; } if ( ! $elmo['clickable'] ) { continue; } $show_table++; $count++; //------------------------------ // Make single quotes as URL's with html entites in them // are parsed by the browser, so ' causes JS error :o //------------------------------ if (strstr( $elmo['typed'], "'" ) ) { $in_delim = '"'; $out_delim = "'"; } else { $in_delim = "'"; $out_delim = '"'; } $smilies .= "<td><a href={$out_delim}javascript:emoticon($in_delim".$elmo['typed']."$in_delim){$out_delim}><img src=\"".$ibforums->vars['EMOTICONS_URL']."/".$elmo['image']."\" alt='smilie' border='0' /></a> </td>\n"; if ($count == $ibforums->vars['emo_per_row']) { $smilies .= "</tr>\n\n<tr align='center'>"; $count = 0; } } if ($count != $ibforums->vars['emo_per_row']) { for ($i = $count; $i < $ibforums->vars['emo_per_row']; ++$i) { $smilies .= "<td> </td>\n"; } $smilies .= "</tr>"; } $table = $this->qreply_html->smilie_table(); if ($show_table != 0) { $table = preg_replace( "/<!--THE SMILIES-->/", $smilies, $table ); $in_html = preg_replace( "/<!--SMILIE TABLE-->/", $table, $in_html ); } return $in_html; } //FastReply Mod
// ***************************************************
// 2: Sửa Skin
// Dzô Admin CP > Skins & Templates > Skin Manager >
// Edit Root Skin Template HTML => Topic View => quick_reply_box_open
// ***************************************************
Thay đoạn
CODE
<script type="text/javascript"> <!-- function emo_pop() { window.open('index.{ipb.vars['php_ext']}?act=legends&CODE=emoticons&s={ipb.session_id}','Legends','width=250,height=500,resizable=yes,scrollbars=yes'); } //--> </script> <br /> <div align='left' id='qr_open' style="display:$show;position:relative;"> <form name='REPLIER' action="{ipb.script_url}" method='post'> <input type='hidden' name='act' value='Post' /> <input type='hidden' name='CODE' value='03' /> <input type='hidden' name='f' value='$fid' /> <input type='hidden' name='t' value='$tid' /> <input type='hidden' name='st' value='{ipb.input['st']}' /> <input type='hidden' name='enabletrack' value='{ipb.member['auto_track']}' /> <input type='hidden' name='auth_key' value='$key' /> <!-- TITLE DIV --> <div class="tableborder"> <div class='maintitle'><{CAT_IMG}> {ipb.lang['qr_title']}</div> <div class="tablepad" align="center"> <textarea cols='70' rows='8' name='Post' class='textarea' tabindex="1"></textarea> <br /><br /> <a href='javascript:emo_pop();'>{ipb.lang['show_emo']}</a> | <input type='checkbox' name='enableemo' value='yes' class="checkbox" checked="checked" /> {ipb.lang['qr_add_smilie']} | <input type='checkbox' name='enablesig' value='yes' class="checkbox" checked="checked" /> {ipb.lang['qr_add_sig']} <br /><br /> <input type='submit' name='submit' value='{ipb.lang['qr_submit']}' class='button' tabindex="2" accesskey="s" /> <input type='submit' name='preview' value='{ipb.lang['qr_more_opts']}' class='button' /> <input type='button' name='qrc' onclick="ShowHide('qr_open','qr_closed');" value='{ipb.lang['qr_closeit']}' class='button' /> </div> </div> </form> </div>
Bằng đoạn này
CODE
<!--IBF.REPLY_JAVA--> <br /> <div align='left' id='qr_open' style="display:$show;position:relative;"> <form name='REPLIER' action="{ipb.script_url}" method='post'> <input type='hidden' name='act' value='Post' /> <input type='hidden' name='CODE' value='03' /> <input type='hidden' name='f' value='$fid' /> <input type='hidden' name='t' value='$tid' /> <input type='hidden' name='st' value='{ipb.input['st']}' /> <input type='hidden' name='enabletrack' value='{ipb.member['auto_track']}' /> <input type='hidden' name='auth_key' value='$key' /> <!-- TITLE DIV --> <div class="tableborder"> <div class='maintitle'><{CAT_IMG}> {ipb.lang['qr_title']}</div> <table cellpadding="0" cellspacing="0" width="100%"> <!--IBF.NAME_FIELD--> <!--IBF.POST_BOX--> <tr> <td class='pformstrip' align='center' style='text-align:center' colspan="2"> <input type="submit" name="submit" value="{ipb.lang['submit_reply']}" tabindex='7' class='button' accesskey='s' /> <input type="submit" name="preview" value="{ipb.lang['button_preview']}" tabindex='8' class='button' /> </td> </tr> </table> </div> </form> </div>
--------------------
Nhóm bạn bè:
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:
Ghost
Nov 6 2005, 06:45 PM
IF Master
Thành viên : 271
Nhập : 22-October 05
Bài viết : 54
Tiền mặt : 18
Thanked: 1
Cấp bậc : 6
------
Giới tính : Female
Đến từ : Nha ba xa tui
------
Bạn bè: 0
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin
Skin mình không có
Edit Root Skin Template HTML => Topic View => quick_reply_box_open thì làm sao bây giờ? Có cách nào khác khôgn Admin?
Đừng kêu mình thay skin nha, hack lai nhiêu đó mod chắc chết wá. Giúp mình cách khác với Admin ui, mình đã hack cho topic.php rồi.
Thanks Admin nhiều
--------------------
Nhóm bạn bè:
Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây
--------------------
Cảnh cáo: (0 %)
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:
Tacaza
Nov 6 2005, 06:59 PM
The chALLeNgER
Thành viên : 1
Nhập : 3-July 05
Bài viết : 3,022
Tiền mặt : 1,210
Thanked: 1571
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
Bạn dùng ipb phiên bản mấy? Nếu 2.1 thì cấu trúc trong ACP sẽ hơi khác một chút
Cái này đâu phải do skin bạn. Skin và các chức năng trong acp không hề liên quan đến nhau.
Nếu bạn dùng bản share của 3T thì sẽ ko có phần này đâu
--------------------
Nhóm bạn bè:
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:
Tacaza
Nov 6 2005, 07:37 PM
The chALLeNgER
Thành viên : 1
Nhập : 3-July 05
Bài viết : 3,022
Tiền mặt : 1,210
Thanked: 1571
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
Ko có cái này trong acp thì ta edit trực tiếp file skin_topic.php luôn thôi. Vô skin_topic tìm phần dưới
CODE
//=========================================================================== // quick_reply_box_open //===========================================================================
để chỉnh sửa.
Việc chỉnh sửa trực tiếp trong file skin sẽ khác so với chỉnh sửa trong acp. Bạn hãy so sánh đoạn code hiện thời trong file này (đây sẽ là đoạn code mà bạn sẽ phải chỉnh sửa):
CODE
<script type="text/javascript"> <!-- function emo_pop(){ window.open("index.{$ibforums->vars['php_ext']}?act=legends&CODE=emoticons&s={$ibforums->session_id}","Legends","width=250,height=500,resizable=yes,scrollbars=yes"); } --> </script> <div id="qr_open" style="display: $show; position: relative;"> <br /> <form name="REPLIER" action="{$ibforums->base_url}" method="post"> <input type="hidden" name="act" value="Post" /> <input type="hidden" name="CODE" value="03" /> <input type="hidden" name="f" value="$fid" /> <input type="hidden" name="t" value="$tid" /> <input type="hidden" name="st" value="{$ibforums->input['st']}" /> <input type="hidden" name="auth_key" value="$key" /> <!-- TITLE DIV --> <div class="borderwrap"> <div class="maintitle"><{CAT_IMG}> {$ibforums->lang['qr_title']}</div> <div style='padding:6px' align="center"> <textarea cols="70" rows="8" name="Post" class="textarea" tabindex="1"></textarea><br /> <a href="javascript:emo_pop();"><img src="{$ibforums->vars['img_url']}/facee.gif" border="0"></a> | EOF; //startif if ( $ibforums->member['auto_track'] == "" or $ibforums->member['auto_track'] == '0' ) { $IPBHTML .= <<<EOF <input type="checkbox" name="enabletrack" value="1" class="checkbox" />{$ibforums->lang['qr_add_email']} | EOF; }//endif else { $IPBHTML .= <<<EOF <input type="checkbox" name="enabletrack" value="1" class="checkbox" checked="checked" />{$ibforums->lang['qr_add_email']} | EOF; }//endelse $IPBHTML .= <<<EOF <input type="checkbox" name="enableemo" value="yes" class="checkbox" checked="checked" />{$ibforums->lang['qr_add_smilie']} | <input type="checkbox" name="enablesig" value="yes" class="checkbox" checked="checked" />{$ibforums->lang['qr_add_sig']} <br /> <br /> <div class="darkrow3"> <input type="submit" name="submit" value="{$ibforums->lang['qr_submit']}" class="button" tabindex="2" accesskey="s" /> <input type="submit" name="preview" value="{$ibforums->lang['qr_more_opts']}" class="button" /> <input type="button" name="qrc" onclick="ShowHide('qr_open','qr_closed');" value="{$ibforums->lang['qr_closeit']}" class="button" /> </div> </div> </div> </form> </div>
với đoạn code bình thường phải có trong acp mà mình đã đăng ở trên, sẽ thấy có nhiều chỗ giống nhau. Bạn hãy so sánh và thay bằng đoạn code mới.
Hiện giờ mình bận quá nên không chỉ cặn kẽ được. Bạn hãy tự tìm hiểu và thay thôi. Việc tự mày mò cũng sẽ giúp bạn hiểu thêm về ipb đó
Have fun!
Chú ý: backup tất cả những thứ cần chỉnh sửa trước khi chỉnh sửa.
--------------------
Nhóm bạn bè:
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:
binlat
Dec 17 2005, 11:35 PM
Thực tập viên
Thành viên : 646
Nhập : 11-December 05
Bài viết : 14
Tiền mặt : 44
Thanked: 0
Cấp bậc : 2
------
Giới tính : Male
------
Bạn bè: 0
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin
Bạn có thể share file topic.php này cho mình không ? Mình copy như bạn rồi nhưng đến đoạn$this->output = str_replace( "<!--IBF.QUICK_REPLY_CLOSED-->", $this->html->quick_reply_box_closed(), $this->output ); $this->output = str_replace( "<!--IBF.QUICK_REPLY_OPEN-->" , $this->html->quick_reply_box_open($this->topic['forum_id'], $this->topic['tid'], $show, $this->md5_check), $this->output ); thì nó bị lỗi
--------------------
Nhóm bạn bè:
Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây
Cảnh cáo: (0 %)
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:
Tacaza
Dec 18 2005, 12:04 AM
The chALLeNgER
Thành viên : 1
Nhập : 3-July 05
Bài viết : 3,022
Tiền mặt : 1,210
Thanked: 1571
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
Lỗi gì bạn cứ post lên đây để mọi người cùng xem và góp ý giải quyết.
File thì có share bạn cũng ko thể dùng đc vì diễn đàn mình hack nhiều mod khác nữa. Giờ thay vào diễn đàn bạn đảm bảo lỗi ngay
--------------------
Nhóm bạn bè:
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:
binlat
Dec 18 2005, 12:51 AM
Thực tập viên
Thành viên : 646
Nhập : 11-December 05
Bài viết : 14
Tiền mặt : 44
Thanked: 0
Cấp bậc : 2
------
Giới tính : Male
------
Bạn bè: 0
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin
Bạn ơi,vào kiểm tra forum của mình với,xem nó lỗi làm sao,không biết lỗi gì,ko chỉnh sửa,tự nhiên bị >.< . www.atomixvn.com/forum không khắc phục được nhanh thì thành viên nó giết tôi mất >.< .Nếu cần thì tôi sẽ đưa cả pass admin cho bạn .Nick yahoo của tôi là binlat2001,dang online
--------------------
Nhóm bạn bè:
Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây
Cảnh cáo: (0 %)
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:
Tacaza
Dec 18 2005, 10:21 AM
The chALLeNgER
Thành viên : 1
Nhập : 3-July 05
Bài viết : 3,022
Tiền mặt : 1,210
Thanked: 1571
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
Đêm qua mình đi ngủ sớm nên ko xem bài cuối của bạn
giờ vào thấy các table trong cơ sở dữ liệu ko tồn tại. CSDL của bạn lỗi gì vậy?
--------------------
Nhóm bạn bè:
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:
Tacaza
Jan 5 2006, 10:08 AM
The chALLeNgER
Thành viên : 1
Nhập : 3-July 05
Bài viết : 3,022
Tiền mặt : 1,210
Thanked: 1571
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
Bản 3T chỉ khác ở chỗ là ko có skin trong ACP thôi. Việc chỉnh sửa skin trong acp & trên file skin khác nhau một chút. Để biết cách chỉnh sửa cho nhanh, bạn hãy xem bài này:
http://vnvista.com/forums/index.php?showtopic=1399
--------------------
Nhóm bạn bè:
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:
Invision Power Board 2.0.2 © 2024 IPS, Inc.
Licensed to: VnVista.com