Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems > vBulletin Template Modifications

Reply 
 
LinkBack Thread Tools Display Modes
Old 01-12-2007, 11:31 AM   #1
vBulletin Owner
 
Sofia's Avatar
 
Join Date: Apr 2007
Posts: 26
Sofia has a spectacular aura about
Wink More bbcode in Quick Reply and Quick Edit

Description
  • This template modification allows to add certain bbcodes in quick_reply and the quick edit.
Conception
  • Author Of Hack : Sofia
Installation

----------------------------------------------------------------
Quick Reply

----------------------------------------------------------------
  • In the template showthread_quickreply
To add justify left, center and justify right
find :

PHP Code:
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td
Add below :

PHP Code:
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
                <
td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
                <
td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td




To add html, php and code,


Insert it in the continuation :

PHP Code:
<if condition="$show['code_bbcode']">
                <
td><div class="imagebutton" id="{$editorid}_cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" width="21" height="20" alt="$vbphrase[wrap_code_tags]" /></div></td>
            </if>
            <if 
condition="$show['html_bbcode']">
                <
td><div class="imagebutton" id="{$editorid}_cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.gif"  width="21" height="20" alt="$vbphrase[wrap_html_tags]" /></div></td>
            </if>
            <if 
condition="$show['php_bbcode']">
                <
td><div class="imagebutton" id="{$editorid}_cmd_wrap0_php"><img src="$stylevar[imgdir_editor]/php.gif" width="21" height="20" alt="$vbphrase[wrap_php_tags]" /></div></td>
            </if> 



To add size font :


Add this :

PHP Code:
<if condition="$show['size_bbcode']">
                <
td><div class="imagebutton" id="{$editorid}_popup_fontsize" title="$vbphrase[sizes]">
                    <
table cellpadding="0" cellspacing="0" border="0">
                    <
tr>
                        <
td class="popup_feedback"><div id="{$editorid}_size_out" style="width:25px">&nbsp;</div></td>
                        <
td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                    </
tr>
                    </
table>
                </
div></td>
            </if> 



To add font,
Add this
PHP Code:
<if condition="$show['font_bbcode']">
                <
td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
                    <
table cellpadding="0" cellspacing="0" border="0">
                    <
tr>
                        <
td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
                        <
td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                    </
tr>
                    </
table>                
                </
div></td>
            </if> 
_________________________________________

There is another means so effective if you wish to resume the complete of your interface of edition of posts (except for smileys).

In the template showthread_quickreply

Of the first line until :

PHP Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"></textarea>
    </if>
</
div


Replace the preceding code by that :

Open template "editor_toolbar_on" and find this




PHP Code:
<div id="$editorid" class="vBulletin_editor"
Until

PHP Code:
<td class="controlbar"><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea></td>
        <if 
condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
    </
tr>
    </
table>

</
div
The smiley cannot be posted because they are attached to the
clientscript


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

Quick Edit

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


In the template postbit_quickedit,
  • To add font, find :
PHP Code:
<td><div class="imagebutton" id="{$editorid}_cmd_bold"><img src="$stylevar[imgdir_editor]/bold.gif" width="21" height="20" alt="$vbphrase[bold]" /></div></td
Add below :

PHP Code:
<if condition="$show['font_bbcode']">
                <
td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
                    <
table cellpadding="0" cellspacing="0" border="0">
                    <
tr>
                        <
td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
                        <
td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                    </
tr>
                    </
table>                
                </
div></td>
            </if> 
  • To add size, insert this code :
PHP Code:
<if condition="$show['size_bbcode']">
                <
td><div class="imagebutton" id="{$editorid}_popup_fontsize" title="$vbphrase[sizes]">
                    <
table cellpadding="0" cellspacing="0" border="0">
                    <
tr>
                        <
td class="popup_feedback"><div id="{$editorid}_size_out" style="width:25px">&nbsp;</div></td>
                        <
td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                    </
tr>
                    </
table>
                </
div></td>
            </if> 
  • To add php, html and code, insert :
PHP Code:
<if condition="$show['code_bbcode']">
                <
td><div class="imagebutton" id="{$editorid}_cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" width="21" height="20" alt="$vbphrase[wrap_code_tags]" /></div></td>
            </if>
            <if 
condition="$show['html_bbcode']">
                <
td><div class="imagebutton" id="{$editorid}_cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.gif"  width="21" height="20" alt="$vbphrase[wrap_html_tags]" /></div></td>
            </if>
            <if 
condition="$show['php_bbcode']">
                <
td><div class="imagebutton" id="{$editorid}_cmd_wrap0_php"><img src="$stylevar[imgdir_editor]/php.gif" width="21" height="20" alt="$vbphrase[wrap_php_tags]" /></div></td>
            </if> 
  • To add justify left, center and justify right, find :
PHP Code:
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td
Add above :

PHP Code:
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
                <
td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
                <
td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td
  • To add bbcodes personalized
find :

PHP Code:
php]<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td
Add below :

PHP Code:
$vBeditTemplate[extrabuttons
Attached Images
File Type: jpg 1.JPG (28.4 KB, 9 views)
Sofia is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 01-12-2007, 11:41 AM   #2
Supporters
vBulletin Owner
 
Code Monkey's Avatar
 
Join Date: Aug 2006
Posts: 1,292
Blog Entries: 1
Code Monkey will become famous soon enough
Very cool Sofia. Once I am done overhauling one of my other sites I may just do that here. Any screan shots of it? Thanks again for your submission.
__________________
rapidshare downloads
Code Monkey is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems > vBulletin Template Modifications

Tags
bbcode, edit, quick, reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Click before using Quick Reply? Soliloquy Troubleshooting vBulletin Problems 16 08-26-2008 11:47 AM
Similes in quick reply box Yogesh Sarkar Troubleshooting vBulletin Problems 4 03-10-2008 01:54 PM
Quick Reply Dimensions lazserus Troubleshooting vBulletin Problems 4 10-19-2007 02:20 PM
problem with quick reply safronelectronics Troubleshooting vBulletin Problems 7 02-10-2007 04:44 PM
Quick Reply RedMatrix Feedback and Suggestions 12 01-22-2007 09:16 PM


All times are GMT -8. The time now is 07:23 PM.