View Full Version : Admin ơi mình đang cần mod Show Smilies in Quickreply ?
danlam
01-02-2010, 03:01 PM
Admin ơi mình đang cần mod Show Smilies in Quickreply, admin co thi share với nha min? Thanks truoc nha
admin
01-02-2010, 05:49 PM
MOD Smilies Popup Box in Quick Reply
Mở file includes/functions_editor.php tìm dòng thứ 545-550 có đoạn code sau:
if ($editor_type == 'qr' OR $editor_type == 'qr_small')
{
// no smilies
}
else if ($allowsmilie AND $show['editor_toolbar'])
{
Thay thế băng đoạn code:
/* if ($editor_type == 'qr' OR $editor_type == 'qr_small')
{
// no smilies
}
else */if ($allowsmilie AND $show['editor_toolbar'])
{
Mở template showthread_quickreply tìm dòng:
<vb:if condition="$show['quote_bbcode']">
<li class="editor_control_group_item">
<img src="{vb:stylevar imgdir_editor}/quote.png" class="imagebutton" id="{vb:raw editorid}_cmd_wrap0_quote" width="20" height="20" alt="{vb:rawphrase wrap_quote_tags}" />
</li>
</vb:if>
Thêm code sau vào bên dưới:
<!- BEGIN: eSe7en - Smilies at quick reply -->
<li class="popupmenu menubutton smilies imagemenu nomouseover nohovermenu" id="{vb:raw editorid}_popup_smilie"><div class="popupctrl"><img src="{vb:stylevar imgdir_editor}/smilie.png" alt="{vb:rawphrase smilies}" width="20" height="20" /></div>
<ul class="editorpopupbody popupbody popuphover">
<li style="display:none"> </li>
{vb:raw smiliepopup}
<vb:if condition="$show['moresmilies']"><li class="category" id="moresmilies"><div>{vb:rawphrase show_all_smilies}</div></li></vb:if>
</ul>
</li>
<!- END: eSe7en - Smilies at quick reply -->
Chúc thành công!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.