<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<?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.1.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
		
		<title lang="de">Silvesterfeuerwerk</title>
		<title lang="en">New Year's Eve fireworks</title>
		
		<description lang="en">Adds a firework to your forum.</description>

		<description lang="de">Fügt dem Forum ein Feuerwerk für Silvester hinzu.</description>
		
		<author-group>
			<author>
				<realname>Daniel Metz</realname>
				<username>Metzle</username>

				<homepage>http://www.metzimods.de</homepage>
				<email>metzle@metzimods.de</email>
			</author>
		</author-group>	
		
		<mod-version>1.0.1</mod-version>
		
		<installation>
			<level>easy</level>
			<time>600</time>

			<target-version>3.0.4</target-version>
		</installation>

		<history>
			<entry>
				<date>2008-12-28</date>
				<rev-version>1.0.1</rev-version>
				<changelog lang="en">
					<change>Code optimized and placed another way</change>
				</changelog>
				<changelog lang="de">
					<change>Code umgestellt und optimiert</change>
				</changelog>
			</entry>	
			<entry>
				<date>2008-12-28</date>
				<rev-version>1.0.0</rev-version>
				<changelog lang="en">
					<change>First release</change>
				</changelog>
				<changelog lang="de">
					<change>Erste Veröffentlichung</change>
				</changelog>
			</entry>	
		</history>
		<link-group>
			<link type="style" href="contrib/subsilver2.xml" lang="en">install file for subsilver2</link>
			<link type="style" href="contrib/subsilver2.xml" lang="de">Installationsanleitung für subsilver2</link>		
			<link type="update" href="contrib/update/update_1.0.0_to_1.0.1.xml" lang="en">Update from 1.0.0 to 1.0.1</link>
			<link type="update" href="contrib/update/update_1.0.0_to_1.0.1.xml" lang="de">Update von 1.0.0 nach 1.0.1</link>
		</link-group>

	</header>
	
	<action-group>
		<copy>
			<file from="root/firework.js" to="firework.js" />
			<file from="root/images/fireimages/*.*" to="images/fireimages/*.*" />
		</copy>

		
		<open src="styles/prosilver/template/overall_header.html">
			<edit>
					<find><![CDATA[	window.onunload = function()
	{
		for (var i = 0; i < onunload_functions.length; i++)
		{
			eval(onunload_functions[i]);
		}
	}]]></find>
					<action type="after-add"><![CDATA[onload_functions.push('StartEffects();');]]></action>
			</edit>			
			<edit>
				<find><![CDATA[</head>]]></find>
				<action type="before-add"><![CDATA[<script type="text/JavaScript" SRC="firework.js"></script>
<script type="text/JavaScript">
<!--
function StartEffects()
{
JSFX.FireworkDisplay(15);
}
// -->
</script>]]></action>
			</edit>
		</open>	
	
		<diy-instructions lang="en">And now don't forget to purge the cache!</diy-instructions>
		
		<diy-instructions lang="de">Ganz zum Ende natürlich nicht vergessen den Cache zu leeren!</diy-instructions>
	</action-group>

</mod>

