<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.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.2.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
		<title lang="en">Simple Image Upload - SubSilver2 template</title>
		<description lang="en">This mod integrates image hosting with phpBB3. It makes image upload very simple. All images are hosted on remote image hosting service, not on your forum. When user uploads image, script creates a thumbnail for image and appends bbcode to post user is typing. User doesn't need to know anything about bbcode. And this mod is very simple to install.</description>
		<author-notes lang="en">If you run into any problems or have any questions feel free to email me at admin@postimage.org</author-notes>
		<author-group>
			<author>
				<email>admin@postimage.org</email>
				<username>Sium</username>
				<homepage>http://www.postimage.org</homepage>
			</author>
		</author-group>
		<mod-version>1.2.0</mod-version>
		<installation>
			<level>easy</level>
			<time>60</time>
			<target-version>3.0.5</target-version>
		</installation>
		<link-group>
		<link type="parent" href="install.xml" lang="en">Main Install File</link>
		</link-group>
	</header>
	<action-group>
		<copy>
			<file from="root/styles/subsilver2/template/addform.html" to="styles/subsilver2/template/addform.html"/>
		</copy>
		<open src="styles/subsilver2/template/posting_body.html">
			<edit>
			  <find><![CDATA[{MESSAGE}</textarea>]]></find>
			  <action type="after-add"><![CDATA[<br />&nbsp;&bull;&nbsp;<a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb3&amp;tpl=subsilver2&amp;lang=english&amp;forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">{L_POSTIMAGE}</a>]]></action>
			</edit>
		</open>
		<diy-instructions lang="en">After completing and saving the file edits, the phpBB Template Cache
will need to be cleared before the modifications can be seen on the
live site.
This can be completed by logging into your forums ACP, clicking the
Styles tab, then clicking Refresh for your selected template.

Once you see the message "Template cache cleared successfully" the mod
should be successfully installed.</diy-instructions>
	</action-group>
</mod>
