Help - Search - Member List - Calendar
Full Version:

BBcode ở fast reply

VnVista Forum > Góc kiến thức > Thiết kế & phát triển website > Invision Power Board modifications + skins > IPB 2.1.x
Tacaza
Mở ./sources/action_public/topics.php

Tìm:

CODE

  $this->output = str_replace( "<!--IBF.QUICK_REPLY_OPEN-->"  , $this->ipsclass->compiled_templates['skin_topic']->quick_reply_box_open($this->topic['forum_id'], $this->topic['tid'], $show, $this->md5_check), $this->output );


Thêm dưới:

CODE
 //---------------------------------------------------
 //BBCodes in Fast Reply
  if ( ! $this->ipsclass->compiled_templates['skin_editors'] )
  {
   $this->ipsclass->load_template( 'skin_editors' );
  }
  $this->ipsclass->load_language( 'lang_editors' );

  $editor_html = $this->ipsclass->compiled_templates['skin_editors']->editor_std("", "Post", "650px", "250", "9", "1");

  $this->output = str_replace( "<!--BBCode-->", $editor_html, $this->output );
 //BBCodes in Fast Reply
 //---------------------------------------------------



Vào acp --> LOOK & FEEL -> Skin Manager -> your(s)skin(s) -> Edit Template HTML -> Post / PM Editor -> editor_std

Bấm nút mũi tên và chọn từ dropdown menu: Edit Data Variables

Tìm:

CODE

$text="", $form_field='post_content', $width, $height


Thay bằng:

CODE

$text="", $form_field='post_content', $width, $height, $rows='20', $bott_but


Save lại.

Tiếp ngay trong khung code của phần này:

Tìm:
CODE

<iframe width="154" height="104" id="cp" src="{ipb.vars['img_url']}/folder_rte_files/palette.html" marginwidth="0" marginheight="0" scrolling="no" style="visibility:hidden; display: none; position: absolute;"></iframe>


Thay =:

CODE
<iframe width="154" height="104" id="cp" src="{ipb.vars['img_url']}/folder_rte_files/palette.html" marginwidth="0" marginheight="0" scrolling="no" style="visibility:hidden; display: none; position: absolute; z-index: 1;"></iframe>



Tìm:

CODE

<textarea cols="80" rows="20" style='margin:0px;width:{$width}' id='postcontent' name="{$form_field}" tabindex="5" class="rteiframe">$text</textarea>


Thay =:

CODE

<textarea cols="80" rows="{$rows}" style='margin:0px;width:{$width}' id='postcontent' name="{$form_field}" tabindex="5" class="rteiframe">$text</textarea>


Tìm:

CODE

<div class="rteDiv" style="width:{$width}">
  <!-- Bottom Buttons -->
  <table cellpadding="0" cellspacing="0" style="padding:0px;margin:0px;" id='std-table-buttons' width="100%">
<tr>
 <td style="padding:0px;margin:0px;" align="left" width="1%" valign='top' nowrap="nowrap">
  <input type="button" value=" + " onclick='std_window_resize( 100  );' id="rtesizeplus"  class="rtebottombutton" />
  <input type="button" value=" - " onclick='std_window_resize( -100 );' id="rtesizeminus" class="rtebottombutton" />
</td>
 <td style="padding:0px;margin:0px;height:30px" align="right" valign='top' width="99%">
  <input type="button" value=" Initializing... " title='{ipb.lang['js_bbeasy_toggle']}' onclick='toggle_bbmode(); return false;' id="togglebbmode"  class="rtebottombutton" />
  <input type="button" value="{ipb.lang['js_check_length']}" title='{ipb.lang['js_check_length']}' onclick='check_length(); return false;' id="checklength"  class="rtebottombutton" />
 </td>
</tr>
</table>
<!-- / Bottom Buttons -->
 </div>



Thay bằng:

CODE

<if="bott_but==0">
<div class="rteDiv" style="width:{$width}">
  <!-- Bottom Buttons -->
  <table cellpadding="0" cellspacing="0" style="padding:0px;margin:0px;" id='std-table-buttons' width="100%">
<tr>
 <td style="padding:0px;margin:0px;" align="left" width="1%" valign='top' nowrap="nowrap">
  <input type="button" value=" + " onclick='std_window_resize( 100  );' id="rtesizeplus"  class="rtebottombutton" />
  <input type="button" value=" - " onclick='std_window_resize( -100 );' id="rtesizeminus" class="rtebottombutton" />
</td>
 <td style="padding:0px;margin:0px;height:30px" align="right" valign='top' width="99%">
  <input type="button" value=" Initializing... " title='{ipb.lang['js_bbeasy_toggle']}' onclick='toggle_bbmode(); return false;' id="togglebbmode"  class="rtebottombutton" />
  <input type="button" value="{ipb.lang['js_check_length']}" title='{ipb.lang['js_check_length']}' onclick='check_length(); return false;' id="checklength"  class="rtebottombutton" />
 </td>
</tr>
</table>
<!-- / Bottom Buttons -->
 </div>
</if>
<else>
<input type="hidden" name="any" value="any" id="togglebbmode" />
</else>


Save lại.

Vào LOOK & FEEL -> Skin Manager -> tu(s)skin(s) -> Edit Template HTML -> Topic View -> quick_reply_box_open

Tìm:

CODE
<form name="REPLIER" action="{ipb.script_url}" method="post">


Thay =:
CODE

<form id='postingform' action='{ipb.script_url}' method='post' name='REPLIER'>


Tìm:
CODE

 <textarea onmouseover='checkselection()' id='fastreplyarea' cols="70" rows="8" name="Post" class="textarea" tabindex="1"></textarea>


Thay =:

CODE

 <input type='hidden' name='bbmode' value='ezmode' />
 <input type='hidden' name='bbmode' value='normal' />
 <input type='hidden' name="tagcount" value="0" />
 <div style="width: 650px;"><!--BBCode--></div>


Done!
dankinhte
1 admin nhiệt tình tận tuỵ, cảm ơn admin nhiều nhé ! Hack được Mod nào nhớ send cho anh em dùng chung với admin nhé
email
hackmod na`y xong
ko post được bài nữa
là sao vậy
email
http://thich-dochua.net/lovebumbum/index.php?act=idx
quên mất link forum em này
xem hộ em với 23.gif
Tacaza
http://thich-dochua.net/lovebumbum/index.php?act=idx --> lỗi:


Fatal error: Call to undefined function: top_five_stats() in /home/.boogee/thich_dochua/thich-dochua.net/lovebumbum/sources/action_public/boards.php on line 168
email
hix
mình vừa hackmod
Tạo thêm bảng thống kê cho từng forum ở trong Forum View:
(A?nh hien gio ko hien thi duoc)
bị lỗi tùm lum rồui
phải làm sao đây
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018