<?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.5.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>

		<title lang="de">Paypalseite</title>
		<title lang="en">Paypalsite</title>

		<description lang="en">Adds a paypalsite to your forum</description>

		<description lang="de">Fügt dem Forum eine Paypalseite hinzu</description>

		<author-notes lang="en">For paypal donations you need an account at Paypal</author-notes>
		<author-notes lang="de">Um Spenden per Paypal empfangen zu können, benötigt man einen Account bei Paypal</author-notes>

		<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.5</mod-version>

		<installation>
			<level>easy</level>
			<time>600</time>

			<target-version>3.0.9</target-version>
		</installation>

		<history>
			<entry>
				<date>2011-07-31</date>
				<rev-version>1.0.5</rev-version>
				<changelog lang="en">
					<change>Files without unix endings, encoding of language files corrected, copyright in language file, paypal button in english</change>
				</changelog>
				<changelog lang="de">
					<change>Unix Zeilenenden entfernt, Kodierung der Sprachdateien korrigiert, Für das Copyright eine Sprachvariable angelegt, Paypalbutton in englisch</change>
				</changelog>
			</entry>
			<entry>
				<date>2011-07-10</date>
				<rev-version>1.0.4</rev-version>
				<changelog lang="en">
					<change>Paypal-Email now in language file and the opportunity to select the currency</change>
				</changelog>
				<changelog lang="de">
					<change>Paypal-Email wurde in die Sprachdatei ausgelagert und es gibt die Möglichkeit der Währungsauswahl</change>
				</changelog>
			</entry>
			<entry>
				<date>2011-02-02</date>
				<rev-version>1.0.3</rev-version>
				<changelog lang="en">
					<change>MODX-Update to 1.2.5 and little repacking of mod</change>
				</changelog>
				<changelog lang="de">
					<change>MODX-Update auf Version 1.2.5 und ein wenig neu verpackt die Mod</change>
				</changelog>
			</entry>
			<entry>
				<date>2009-07-08</date>
				<rev-version>1.0.2</rev-version>
				<changelog lang="en">
					<change>MODX-Update to 1.2.2 and pagetitle added in paypal.php</change>
				</changelog>
				<changelog lang="de">
					<change>MODX-Update auf 1.2.2 und Seitentitel hinzugefügt in paypal.php</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-11-02</date>
				<rev-version>1.0.1</rev-version>
				<changelog lang="en">
					<change>MODX-Update to 1.2.1 and updated file infos</change>
				</changelog>
				<changelog lang="de">
					<change>MODX-Update auf 1.2.1 und Dateiinfos aktualisiert</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-08-08</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="language" href="contrib/language/de.xml" lang="en">german language files</link>
			<link type="language" href="contrib/language/de.xml" lang="de">Deutsche Sprachdateien</link>
			<link type="contrib" href="contrib/update 1.0.0 to 1.0.1/update 1.0.0 to 1.0.1.xml" lang="en">Update from 1.0.0 to 1.0.1</link>
			<link type="contrib" href="contrib/update 1.0.0 to 1.0.1/update 1.0.0 to 1.0.1.xml" lang="de">Update von 1.0.0 nach 1.0.1</link>
			<link type="contrib" href="contrib/update 1.0.1 to 1.0.2/update 1.0.1 to 1.0.2.xml" lang="en">Update from 1.0.1 to 1.0.2</link>
			<link type="contrib" href="contrib/update 1.0.1 to 1.0.2/update 1.0.1 to 1.0.2.xml" lang="de">Update von 1.0.1 nach 1.0.2</link>
			<link type="contrib" href="contrib/update 1.0.2 to 1.0.3/update 1.0.2 to 1.0.3.xml" lang="en">Update from 1.0.2 to 1.0.3</link>
			<link type="contrib" href="contrib/update 1.0.2 to 1.0.3/update 1.0.2 to 1.0.3.xml" lang="de">Update von 1.0.2 nach 1.0.3</link>
			<link type="contrib" href="contrib/update 1.0.3 to 1.0.4/update 1.0.3 to 1.0.4.xml" lang="en">Update from 1.0.3 to 1.0.4</link>
			<link type="contrib" href="contrib/update 1.0.3 to 1.0.4/update 1.0.3 to 1.0.4.xml" lang="de">Update von 1.0.3 nach 1.0.4</link>
			<link type="contrib" href="contrib/update 1.0.4 to 1.0.5/update 1.0.4 to 1.0.5.xml" lang="en">Update from 1.0.4 to 1.0.5</link>
			<link type="contrib" href="contrib/update 1.0.4 to 1.0.5/update 1.0.4 to 1.0.5.xml" lang="de">Update von 1.0.4 nach 1.0.5</link>
		</link-group>
	</header>

	<action-group>
		<copy>
			<file from="root/paypal.php" to="paypal.php" />
			<file from="root/language/en/mods/paypal.php" to="language/en/mods/paypal.php" />
			<file from="root/styles/prosilver/template/paypal.html" to="styles/prosilver/template/paypal.html" />
			<file from="root/images/paypal-button.gif" to="images/paypal-button.gif" />
		</copy>


		<open src="includes/functions.php">
			<edit>
				<find><![CDATA[	// Which timezone?
	$tz = ($user->data['user_id'] != ANONYMOUS) ? strval(doubleval($user->data['user_timezone'])) : strval(doubleval($config['board_timezone']));]]></find>
				<action type="after-add"><![CDATA[$user->add_lang('mods/paypal');]]></action>
			</edit>

			<edit>
				<find><![CDATA[		'L_ONLINE_EXPLAIN'	=> $l_online_time,]]></find>
				<action type="after-add"><![CDATA[		'U_PAYPAL'			=> append_sid("{$phpbb_root_path}paypal.$phpEx"),]]></action>
			</edit>
		</open>
		<open src="styles/prosilver/template/overall_header.html">
			<edit>
				<find><![CDATA[				<li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>]]></find>
				<action type="before-add"><![CDATA[				<li class="icon-register"><a href="{U_PAYPAL}" title="{L_PAYPAL}">{L_PAYPAL}</a></li>]]></action>
			</edit>
		</open>

		<diy-instructions lang="en">In the last step there have to be two changes in the language files language/xx/mods/paypal.php

		1st: email "test@testuser.de" has to be changed in your own paypalaccount email!
		2nd: "Your donation title" has to be changed in your own wished title, e.g. "your donation to XYZ"!

And now don't forget to purge the cache!</diy-instructions>

		<diy-instructions lang="de">Als letzten Schritt müssen noch zwei kleine Änderungen in den Sprachdateien language/xx/mods/paypal.php vorgenommen werden.

		1. Die E-Mail "test@testuser.de" muss durch deine eigene Paypalaccount E-Mailadresse ersetzt werden!
		2. Der Titel "Your donation title" muss durch einen eigenen Titel ersetzt werden, z.B. "Spende an XYZ"!

Ganz zum Ende natürlich nicht vergessen den Cache zu leeren!</diy-instructions>
	</action-group>

</mod>

