Back to vBulletin 4.x Add-ons

Smilies Popup Box in Quick Reply
Mod Version: 1.00, by eSe7en

vB Version: 4.0.0 Rating: (3 votes - 4.67 average) Installs: 47
Released: 10 Jan 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes Re-usable Code  

Purpose:
Add Smilies Button in the toolbar of the quick reply box.

How to mod:
1. In the file 'includes/functions_editor.php', locate these lines (Line No. 545-550 in vB 4.0.0):

PHP Code:
    if ($editor_type == 'qr' OR $editor_type == 'qr_small')
    {
        
// no smilies
    
}
    else if (
$allowsmilie AND $show['editor_toolbar'])
    { 
2. Uncomment the first conditional part by including it between '/* ...... */' or replace as the following:

PHP Code:
/*    if ($editor_type == 'qr' OR $editor_type == 'qr_small')
    {
        // no smilies
    }
    else */
if ($allowsmilie AND $show['editor_toolbar'])
    { 
3.Open the template 'showthread_quickreply' and locate the following lines:

Code:
                <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>
and add the following lines after them:

Code:
<!- 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">&nbsp;</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 -->
That's it Folcks

Download

No files for download.

Screenshots

Click image for larger version
Name:	qr.png
Views:	1093
Size:	10.9 KB
ID:	109631  


vblts.ru supports vBulletin®, 2022-2024