============================================================================================================================
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:  2009 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 Note:
This modification is developed and released for use with XMB 1.9.8 SP4 which is provided by XMBGarage.com.

============================================================================================================================
=======
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:
==========

'functions_bbcode',

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

'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!