Go Back   vBulletin Modification Discussions > Free vBulletin Modification Releases > vBulletin Template Modifications
Home Register FAQ Members List Calendar Mark Forums Read
vBSEO Info Tags

About This Page: This is a discussion on More bbcode in Quick Reply and Quick Edit within the vBulletin Template Modifications forums, part of the Free vBulletin Modification Releases category, at vBulletin Modification Discussions. Description This template modification allows to add certain bbcodes in quick_reply and the quick edit. Conception Author Of Hack : Sofia Installation ---------------------------------------------------------------- Quick Reply ----------------------------------------------------------------


Comment
 
LinkBack Release Tools
Sofia
vBulletin is good !
Sofia's Avatar

vBulletin Version: 3.6.x
 

Mod Version: 3.6.4
 

Released: 01-12-2007
 

Installs: 9
 

Last Update: 01-11-2007
 

Rating:
 
Supported
DB Changes
Installer Included
Uses Plugins
Manual Template Changes
Automated Template Changes
Code Changes
Additional Files
Is a Beta!
Release
Attached Images
File Type: jpg 1.JPG (28.4 KB, 8 views)

Release Tools
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-12-2007, 01:41 PM   #2 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,236
Code Monkey is on a distinguished road
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.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Comment
Tags: , , ,





Currently Active Users Viewing This Release: 1 (0 members and 1 guests)
 
Release Tools

Posting Rules
You may not post new releases
You may not post comment
You may not post attachments
You may not edit your posts

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


A vBSkinworks Design Recoded By vBModder.
All Code Distributed On This Site is © 2006 by it's author.
Search Engine Optimization by vBSEO 3.1.0

All times are GMT -7. The time now is 12:37 PM.
Online Users 29
Registered 0
Guests 29
Members 3914
Active Members 162
Threads 1855
Posts 7346
Top poster: Code Monkey (2236)
Welcome to our newest member, xer321
Most users ever online was 235, 04-11-2007 at 09:59 AM.
Speak Out! vBulletin gets the web talking!


vBulletin Setup SEO

vBulletin graphics resource images