<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="./contrib/xsl/modx.prosilver.en.xsl"?>
<!-- 
	NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.
-->
<!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.0.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
		<title lang="en">Prime Quick Reply</title>
		<description lang="en">Adds a quick-reply form to topic pages, making available most features found on the standard reply page. Can be configured from within the Administration Control Panel, and will safely work in conjunction with my other MODs, such as Prime Anti-bot, Prime Multi-Quote, and Prime Trash Bin.</description>
	    <author-notes lang="en">To enable, you must head to the Administration Control Panel and go to the Post Settings area.

Support is given for both prosilver and subsilver2 templates. If you are using other templates then you will need to modify the template instructions to fit your templates.

Creating, maintaining, and updating MODs requires a lot of time and effort, so if you like this MOD and have the desire to express your thanks through donations, that would be greatly appreciated. My Paypal ID is primehalo@gmail.com, or contact me for my mailing address. The suggested donation amount for this MOD is $5.00 (but any amount will help).</author-notes>
		<author-group>
			<author>
				<realname>Ken F. Innes IV</realname>
				<email>primehalo@gmail.com</email>
				<username>primehalo</username>
				<homepage><![CDATA[http://www.absoluteanime.com/admin/mods.htm#quick_reply]]></homepage>
			</author>
		</author-group>
		<mod-version>1.0.5</mod-version>
		<installation>
			<level>easy</level>
			<time>120</time>
			<target-version>3.0.2</target-version>
		</installation>
		<history>
			<entry>
				<date>2008-01-29</date>
				<rev-version>0.1.0</rev-version>
				<changelog lang="en">
					<change>Initial release</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-01-29</date>
				<rev-version>0.1.1</rev-version>
				<changelog lang="en">
					<change>Fixed a couple "Undefined variable" messages.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-01-29</date>
				<rev-version>0.1.2</rev-version>
				<changelog lang="en">
					<change>Fixed a bug where the "Notify me of replies" checkbox would not be set correctly.</change>
					<change>Added an ACP setting to hide the quick-reply options.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-01-30</date>
				<rev-version>0.1.3</rev-version>
				<changelog lang="en">
					<change>Don't display the Quote Post options if there are no quotable posts.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-02-09</date>
				<rev-version>0.1.4</rev-version>
				<changelog lang="en">
					<change>Fixed a minor mistake that prevented the Quote Last Post option from showing up.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-02-18</date>
				<rev-version>0.1.5</rev-version>
				<changelog lang="en">
					<change>Added the ability to lock the thread.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-02-18</date>
				<rev-version>0.1.5a</rev-version>
				<changelog lang="en">
					<change>Added a Brazilian Portuguese translation.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-02-26</date>
				<rev-version>0.1.5b</rev-version>
				<changelog lang="en">
					<change>Added a German translation.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-03-07</date>
				<rev-version>0.1.5c</rev-version>
				<changelog lang="en">
					<change>Added a Danish translation.</change>
					<change>Added a Slovak translation.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-03-27</date>
				<rev-version>0.1.5d</rev-version>
				<changelog lang="en">
					<change>Added a Russian translation.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-04-07</date>
				<rev-version>0.1.5e</rev-version>
				<changelog lang="en">
					<change>Updated installation instructions for phpBB 3.0.1.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-04-08</date>
				<rev-version>0.1.5f</rev-version>
				<changelog lang="en">
					<change>Added a French translation.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-04-14</date>
				<rev-version>0.1.6</rev-version>
				<changelog lang="en">
					<change>Fixed: an error message may have been displayed when viewing a topic with no posts.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-04-20</date>
				<rev-version>0.1.6a</rev-version>
				<changelog lang="en">
					<change>Added a Turkish translation.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-04-24</date>
				<rev-version>0.1.6b</rev-version>
				<changelog lang="en">
					<change>Added an Italian translation.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-06-16</date>
				<rev-version>0.1.7</rev-version>
				<changelog lang="en">
					<change>Fixed to work with the Enable Post Review option.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-06-25</date>
				<rev-version>1.0.0</rev-version>
				<changelog lang="en">
					<change>Repackaged for MODX 1.2.0.</change>
					<change>Added a minimum post count option.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-07-04</date>
				<rev-version>1.0.1</rev-version>
				<changelog lang="en">
					<change>Reduced the amount of code that needs to be added, thus simplifying the installation and making future updates easier.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-07-20</date>
				<rev-version>1.0.2</rev-version>
				<changelog lang="en">
					<change>Allow the user quick reply options to wrap instead of overflowing the display area.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-08-03</date>
				<rev-version>1.0.3</rev-version>
				<changelog lang="en">
					<change>Remember all settings when the "Remember form status" is active.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-08-13</date>
				<rev-version>1.0.4</rev-version>
				<changelog lang="en">
					<change>Fixed a bug that could cause an error message to be displayed on pages where all the posts had been deleted.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-08-27</date>
				<rev-version>1.0.4a</rev-version>
				<changelog lang="en">
					<change>Added a Hebrew translation.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-08-30</date>
				<rev-version>1.0.5</rev-version>
				<changelog lang="en">
			<change>Fixed a minor bug for subsilver2-based styles where,if the BBCode option was already checked, the color swatch would not show up unless the BBCode option was unchecked and then rechecked.</change>
				</changelog>
			</entry>
		</history>
		<link-group>
			<link type="template" href="contrib/template subsilver2.xml" lang="en">subsilver2</link>
			<link type="language" href="contrib/language da.xml" lang="en">Danish</link>
			<link type="language" href="contrib/language de.xml" lang="en">German</link>
			<link type="language" href="contrib/language fr.xml" lang="en">French</link>
			<link type="language" href="contrib/language it.xml" lang="en">Italian</link>
			<link type="language" href="contrib/language pt.xml" lang="en">Portuguese</link>
			<link type="language" href="contrib/language ru.xml" lang="en">Russian</link>
			<link type="language" href="contrib/language sk.xml" lang="en">Slovak</link>
			<link type="language" href="contrib/language tr.xml" lang="en">Turkish</link>
		</link-group>
	</header>
	<action-group>
		<copy>
			<file from="root/includes/prime_quick_reply.php" to="includes/prime_quick_reply.php" />
			<file from="root/language/en/mods/prime_quick_reply.php" to="language/en/mods/prime_quick_reply.php" />
			<file from="root/styles/prosilver/template/prime_quick_reply.html" to="styles/prosilver/template/prime_quick_reply.html" />
			<file from="root/styles/prosilver/template/prime_quick_reply.js" to="styles/prosilver/template/prime_quick_reply.js" />
		</copy>

		<open src="includes/acp/acp_board.php">
			<edit>
				<find><![CDATA[			break;

			case 'signature':]]></find>
				<action type="before-add"><![CDATA[//-- mod: Prime Quick Reply -------------------------------------------------//
				include($phpbb_root_path . 'includes/prime_quick_reply.' . $phpEx);
				$prime_quick_reply->display_acp_options($display_vars);
//-- end: Prime Quick Reply -------------------------------------------------//]]></action>
			</edit>
		</open>

		<open src="viewtopic.php">
			<edit>
				<find><![CDATA[	unset($rowset[$post_list[$i]]);]]></find>
				<action type="before-add"><![CDATA[//-- mod: Prime Quick Reply -------------------------------------------------//
	if (empty($row['post_deleted_time']))
	{
		if (!isset($prime_multi_quote_count) || $prime_multi_quote_count < 2)
		{
			unset($last_post); // Don't need to keep more than 1 post if we're not multi-quoting
		}
		$last_post[$row['post_id']] = array('post_text' => $row['post_text'], 'bbcode_uid' => $row['bbcode_uid'], 'username' => $row['username']);
	}
//-- end: Prime Quick Reply -------------------------------------------------//]]></action>
			</edit>

			<edit>
				<find><![CDATA[page_footer();]]></find>
				<action type="before-add"><![CDATA[//-- mod: Prime Quick Reply -------------------------------------------------//
include($phpbb_root_path . 'includes/prime_quick_reply.' . $phpEx);
$prime_quick_reply->display_form($topic_id, $forum_id, $topic_data, ($last_post = isset($last_post) ? $last_post : null));
//-- end: Prime Quick Reply -------------------------------------------------//]]></action>
			</edit>
		</open>

		<open src="styles/prosilver/template/viewtopic_body.html">
			<edit>
				<find><![CDATA[<!-- IF S_NUM_POSTS > 1 or PREVIOUS_PAGE -->]]></find>
				<action type="before-add"><![CDATA[<!-- IF QUICK_REPLY_ALLOWED --><!-- INCLUDE prime_quick_reply.html --><!-- ENDIF -->]]></action>
			</edit>
		</open>
	</action-group>
</mod>