<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="./modx/1.2.5.xsl" ?>
<!--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.5.xsd">
	<header>
	
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
		
		<title lang="en-gb">ReIMG Image Resizer</title>
		
		<description lang="en-gb">Resizes user-posted images, including or excluding signatures, that are too large, optionally overlaying a zoom button to view the original-sized image (optionally in a lightbox or even using Highslide JS).</description>
		
		<author-notes lang="en-gb"><![CDATA[This MOD depends on client-side javascript support. However, it will not break without javascript, there will simply be less functionality (i.e. too large images will not be resized after all).
		
This MOD has been tested successfully with the following browsers:

* Internet Explorer 6, 7, 8, 9
* Firefox 1.0, 1.5, 2, 3, 3.5, 4.0
* Opera 9.27, 9.5, 9.6
* Safari 3.1, 4
* Mozilla 1.7
* Google Chrome 2.0.172.37
* Konqueror 4.2.2
* Epiphany 2.26.3

Since this MOD was not designed for any of these browsers specifically, any other W3C (semi-)compliant browser should also work.

Included with this MOD are two versions of the reimg.js and litebox.js javascript files:

1. In root/reimg/ you will find the compressed versions, which are smaller in file size and will download more quickly. (For more information visit http://javascriptcompressor.com/.)
2. In contrib/js_original/ you will find the original javascript files with reasonably documented source code, which is more easily hackable/editable.

By default the compressed versions are installed to optimize for speed.

To change settings go to ACP -> .MODS
Additional zooming methods are available but the libraries will need downloading.]]></author-notes>
		
		<author-group>
			<author>
				<realname>David Colon</realname>
				<username>DavidIQ</username>
				<email>davidiq@phpbb.com</email>
				<homepage>http://www.davidiq.com/</homepage>
				<contributions-group>
					<contributions status="current" position="Current Developer"></contributions>
				</contributions-group>
			</author>
			<author>
				<realname>Theo Niessink</realname>
				<username>TaleTN</username>
				<email>theo@taletn.com</email>
				<homepage>http://www.taletn.com/</homepage>
				<contributions-group>
					<contributions status="past" position="Original Author"></contributions>
				</contributions-group>
			</author>
		</author-group>
		
		<mod-version>2.0.1</mod-version>
		
		<installation>
			<level>easy</level>
			<time>300</time>
			<target-version>3.0.10</target-version>
		</installation>

		<history>
			<entry>
				<date>2011-03-27</date>
				<rev-version>2.0.0</rev-version>
				<changelog lang="en-gb">
					<change>New ReIMG version!</change>
				</changelog>
			</entry>
			<entry>
				<date>2012-01-02</date>
				<rev-version>2.0.1</rev-version>
				<changelog lang="en-gb">
					<change>Added XHTML-compliancy switch.</change>
					<change>Fixed loading image bug (was not showing).</change>
					<change>Actually use the correct methods for enlarging images when button is not used.</change>
					<change>Redo hook so that using define('LOAD_REIMG', true); actually loads ReIMG in other pages.</change>
					<change>3.0.10 release</change>
					<change>Bug fix: Resize message details in MCP</change>
					<change>Bug fix: Resolve undefined index errors</change>
					<change>Bug fix: Properly show horizontal scrollbar on oversized images</change>
					<change>Add proper handling of external pages</change>
				</changelog>
			</entry>
		</history>
		
		<link-group>
			<link type="template" lang="en-gb" href="contrib/subsilver2.xml">subsilver2 Edits</link>
			<link type="contrib" lang="en-gb" href="contrib/update_to_2_0_1.xml">Update to 2.0.1</link>
			<link type="language" lang="en-gb" href="contrib/pl.xml">Polish Translation</link>
			<link type="language" lang="en-gb" href="contrib/fr.xml">French Translation</link>
			<link type="language" lang="en-gb" href="contrib/hr.xml">Croatian Translation</link>
		</link-group>
	</header>

	<action-group>

		<copy>
			<file from="root/adm/*.*" to="adm/*.*" />
			<file from="root/includes/*.*" to="includes/*.*" />
			<file from="root/language/en/*.*" to="language/en/*.*" />
			<file from="root/reimg/*.*" to="reimg/*.*" />
			<file from="root/styles/*.*" to="styles/*.*" />
			<file from="root/umil/*.*" to="umil/*.*" />
			<file from="root/install_reimg.php" to="install_reimg.php" />
		</copy>
	
		<open src="styles/prosilver/template/overall_header.html">
			<edit>
				<find><![CDATA[</head>]]></find>
				<action type="before-add"><![CDATA[<!-- INCLUDE mods/reimg_content.html -->]]></action>
			</edit>
		</open>

		<open src="styles/prosilver/template/ucp_pm_viewmessage_print.html">
			<edit>
				<find><![CDATA[</head>]]></find>
				<action type="before-add"><![CDATA[<!-- INCLUDE mods/reimg_content.html -->]]></action>
			</edit>
		</open>

		<open src="styles/prosilver/template/viewtopic_print.html">
			<edit>
				<find><![CDATA[</head>]]></find>
				<action type="before-add"><![CDATA[<!-- INCLUDE mods/reimg_content.html -->]]></action>
			</edit>
		</open>

		<php-installer>install_reimg.php</php-installer>

		<diy-instructions lang="en-gb">Remember to refresh your template(s) and purge your cache.</diy-instructions>

	</action-group>
</mod>

