============================================================================================================================
Modification Title: BB Code Buttons In Quick Reply

Version: 1.1

Author: WormHole

Updated By: John Briggs

Description:
This modification will provide BB Code buttons in the Quick Reply box.

Copyright:  2010 XMB Garage. All Rights Reserved.

Compatibility: XMB 1.9.8 SP4

Install Note: Before adding this modification to your forum you should back up all files related to this modification.

License Note: This modification is released under the GPL v3 License. A copy is provided with this software package.

Author Notes:
This modification is developed and released for use with XMB 1.9.8 SP4 which is provided by XMBGarage.com.
Please backup your files, templates and database before installing this modification.
Neither XMB Garage nor the author can be held responsible if your board stops functioning properly due to you installing this modification.
============================================================================================================================
=======
Step 1:
=======
=========================
Edit File: include/functions.inc.php
=========================
==========
Find Code:
==========

global $imgdir, $bbinsert, $altbg1, $altbg2, $lang, $SETTINGS, $THEME, $spelling_lang;

================
Replace Code With:
================

global $imgdir, $bbinsert, $altbg1, $altbg2, $lang, $SETTINGS, $THEME, $spelling_lang, $qrcolspan;

============================================================================================================================
=======
Step 2:
=======
===================
Edit File: viewthread.php
===================
==========
Find Code:
==========

loadtemplates(


================
Replace Code With:
================

loadtemplates(

'functions_bbcodeinsert',

==========
Find Code:
==========

eval('$bbcodescript = "'.template('functions_bbcode').'";');

===============
Add Code Below:
===============

// BB Code Buttons In Quick Reply Mod Begin
$qrcolspan = 'colspan="2"';
$bbcodeinsert = bbcodeinsert();
// BB Code Buttons In Quick Reply Mod End

============================================================================================================================
=======
Step 3:
=======
=================
Edit File: header.php
=================
==========
Find Code:
==========

$othertid = '';

===============
Add Code Below:
===============

// BB Code Buttons In Quick Reply Mod Begin
$qrcolspan = '';
// BB Code Buttons In Quick Reply Mod End

============================================================================================================================
=======
Step 4:
=======
===============================
Go To Administration Panel --> Templates
===============================

============================
Edit Template: viewthread_quickreply
============================
==========
Find Code:
==========

$captchapostcheck

===============
Add Code Below:
===============

$bbcodeinsert

============================================================================================================================
=======
Step 5:
=======
===============================
Go To Administration Panel --> Templates
===============================
============================
Edit Template: functions_bbcodeinsert
============================
==========
Find Code:
==========

<td bgcolor="$THEME[altbg2]">

================
Replace Code With:
================

<td $qrcolspan bgcolor="$THEME[altbg2]">

============================================================================================================================
Enjoy!