<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="xml/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="en">phpBB3 partners</title>
		<description lang="en">Adds a partner site on your phpBB. The partners can be manage over a ACP modul and you can use all bb-codes in partner discription.</description>

    <author-group>
      <author>
		<username>djchrisnet</username>
		<realname>Christoph Kühl</realname>
		<homepage>http://www.mods.djchrisnet.de/</homepage>
		<email>mods@djchrisnet.de</email>
      </author>
    </author-group>
	
		<mod-version>0.0.1</mod-version>
		
		<installation>
			<level>easy</level>
			<time>300</time>
			<target-version>3.0.x</target-version>
		</installation>

    <history>
			<entry>
				<date>2008-10-19</date>
				<rev-version>0.0.1</rev-version>
				<changelog lang="en-gb">
					<change>Initial release</change>
				</changelog>
			</entry>
	</history>

  	<link-group>
		<link type="language" lang="en-gb" href="xml/de.xml">Manual for German language</link>
	</link-group>	
  </header>

  <action-group>
<copy>
    <file from="root/*" to="root/*" />
</copy>
<sql><![CDATA[CREATE TABLE IF NOT EXISTS `phpbb_partners` (
  `id` mediumint(8) NOT NULL auto_increment,
  `title` mediumtext collate utf8_bin NOT NULL,
  `url` varchar(255) collate utf8_bin NOT NULL,
  `image_url` varchar(255) collate utf8_bin NOT NULL,
  `counter` mediumint(9) NOT NULL,
  `position` tinyint(3) NOT NULL,
  `text` mediumtext character set utf8 collate utf8_unicode_ci NOT NULL,
  `bbcode_bitfield` varchar(255) collate utf8_bin NOT NULL,
  `bbcode_uid` varchar(8) collate utf8_bin NOT NULL,
  `enable_bbcode` tinyint(1) NOT NULL,
  `enable_smilies` tinyint(1) NOT NULL,
  `enable_magic_url` tinyint(1) NOT NULL,
  `enable_count` tinyint(1) NOT NULL,
  `aktiv` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1;]]></sql>
	 
	 <open src="includes/constants.php">
      <edit>
		  <find><![CDATA[// Additional tables]]></find>
		  <action type="after-add"><![CDATA[define('PARTNERS_TABLE',			$table_prefix . 'partners');]]></action>
	  </edit>
    </open>
	
	  <open src="includes/functions.php">
      <edit>
		  <find><![CDATA['U_PROFILE'				=> append_sid("{$phpbb_root_path}ucp.$phpEx"),]]></find>
		  <action type="after-add"><![CDATA['U_PARTNERS'			=> append_sid("{$phpbb_root_path}partners.$phpEx"),
		'L_PARTNERS'			=> $user->lang['PARTNERS'],]]></action>
	  </edit>
    </open>
	
	

	<open src="languages/de/common.php">
      <edit>
		  <find><![CDATA[
		'PAGE_OF'		=> 'Page <strong>%1$d</strong> of <strong>%2$d</strong>',
		'PASSWORD'		=> 'Password', ]]></find>
		  <action type="before-add"><![CDATA['PARTNERS'					=> 'Partner',]]></action>
		  </edit>
    </open>
	
	<open src="languages/de/acp/common.php">
      <edit>
		  <find><![CDATA[
		  'ACP_PRUNE_USERS'		=> 'Prune users',
		  'ACP_PRUNING'			=> 'Pruning', ]]></find>
		  <action type="after-add"><![CDATA['ACP_PA_TITLE'				=> 'phBB3 Partners',]]></action>
		  </edit>
    </open>
	
	<open src="styles/prosilver/template/overall_footer.html">
		<edit>
			<find><![CDATA[<li class="rightside"><a href="{U_TEAM}">{L_THE_TEAM}</a> &bull; ]]></find>
	<action type="after-add"><![CDATA[<a href="{U_PARTNERS}" title="{L_PARTNERS}">{L_PARTNERS}</a> &bull; ]]></action>
			</edit>
    </open>
	
  </action-group>
</mod>
