<?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="de"><![CDATA[NV advanced last topic titles]]></title>
		<title lang="en"><![CDATA[NV advanced last topic titles]]></title>

		<author-notes lang="de"><![CDATA[Diese MOD benötigt php5.]]></author-notes>
		<author-notes lang="en"><![CDATA[This MOD required php5.]]></author-notes>

		<author-group>
			<author>
				<realname>Joas Schilling</realname>
				<email>nickvergessen@gmx.de</email>
				<username>nickvergessen</username>
				<homepage>http://www.flying-bits.org/</homepage>
			</author>
		</author-group>

		<mod-version>1.3.2</mod-version>

		<installation>
			<level>easy</level>
			<time>240</time>
			<target-version>3.0.8</target-version>
		</installation>

		<link-group>
			<link type="parent" lang="de" href="contrib/update_1_3_1_to_1_3_2/update.xml">Update von 1.3.1 auf 1.3.2</link>
			<link type="parent" lang="en" href="contrib/update_1_3_1_to_1_3_2/update.xml">Update from 1.3.1 to 1.3.2</link>
			<link type="language" lang="de" href="contrib/de.xml">Anleitung für das deutsche Sprachpaket</link>
			<link type="language" lang="en" href="contrib/de.xml">Manual for German Language-set</link>
			<link type="language" lang="de" href="contrib/fr.xml">Anleitung für das französische Sprachpaket</link>
			<link type="language" lang="en" href="contrib/fr.xml">Manual for French language-package</link>
			<link type="template" lang="de" href="contrib/subsilver2.xml">Anleitung für das Style subsilver2</link>
			<link type="template" lang="en" href="contrib/subsilver2.xml">Manual for subsilver2 Style</link>
		</link-group>

		<history>
			<entry>
				<date>2011-05-25</date>
				<rev-version>1.3.2</rev-version>
				<changelog lang="en">
					<change><![CDATA[[Fix] "This forum is protected." when topic was moved (Bug: #797)]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2011-01-13</date>
				<rev-version>1.3.1</rev-version>
				<changelog lang="en">
					<change><![CDATA[[Fix] Fix ignore permissions-option not working as intended.]]></change>
					<change><![CDATA[[Fix] Fix topic title is not overwritten by subforums.]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2010-11-15</date>
				<rev-version>1.3.0</rev-version>
				<changelog lang="en">
					<change><![CDATA[Update code to 3.0.8]]></change>
					<change><![CDATA[Change code to use a static class]]></change>
					<change><![CDATA[Add alternative language variable when title is blocked.]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2009-11-19</date>
				<rev-version>1.2.9</rev-version>
				<changelog lang="en">
					<change><![CDATA[Update installer to UMIL]]></change>
					<change><![CDATA[Update search-code to work with 3.0.6]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2008-12-26</date>
				<rev-version>1.2.8</rev-version>
				<changelog lang="en">
					<change><![CDATA[too much htmlspecialchars]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2008-12-24</date>
				<rev-version>1.2.7</rev-version>
				<changelog lang="en">
					<change><![CDATA[missed to add htmlspecialchars after decode]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2008-12-17</date>
				<rev-version>1.2.6</rev-version>
				<changelog lang="en">
					<change><![CDATA[corrected cut for html-chars]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2008-09-09</date>
				<rev-version>1.2.5</rev-version>
				<changelog lang="en">
					<change><![CDATA[wrong permissions]]></change>
					<change><![CDATA[Option to ignore permissions]]></change>
					<change><![CDATA[Option to ignore forum-password]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2008-05-08</date>
				<rev-version>1.2.4</rev-version>
				<changelog lang="en">
					<change><![CDATA[better link adjustments]]></change>
					<change><![CDATA[easy way to style]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2008-03-16</date>
				<rev-version>1.2.3</rev-version>
				<changelog lang="en">
					<change><![CDATA[fixed for mysqli]]></change>
					<change><![CDATA[consider the reading rights of the user]]></change>
					<change><![CDATA[made the link "bold"]]></change>
					<change><![CDATA[fixed dead links for shadow topics]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2007-12-14</date>
				<rev-version>1.2.2</rev-version>
				<changelog lang="en">
					<change><![CDATA[fixed for mysql < 4.1.3]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2007-12-02</date>
				<rev-version>1.2.1</rev-version>
				<changelog lang="en">
					<change><![CDATA[added index to the db for better speed on side build]]></change>
					<change><![CDATA[fixed some points to the coding guidelines]]></change>
				</changelog>
			</entry>

			<entry>
				<date>2007-10-15</date>
				<rev-version>1.2.0</rev-version>
				<changelog lang="en">
					<change><![CDATA[minor fix in template]]></change>
					<change><![CDATA[added acp-option]]></change>
					<change><![CDATA[no display on forum password]]></change>
					<change><![CDATA[renamed the mod]]></change>
				</changelog>
			</entry>
		</history>
	</header>

	<action-group>
		<copy>
			<file from="root/adm/style/acp_altt.html" to="adm/style/acp_altt.html" />
			<file from="root/adm/mods/nv_altt_version.php" to="adm/mods/nv_altt_version.php" />
			<file from="root/includes/mods/advanced_last_topic_titles.php" to="includes/mods/advanced_last_topic_titles.php" />
			<file from="root/includes/acp/acp_altt.php" to="includes/acp/acp_altt.php" />
			<file from="root/includes/acp/info/acp_altt.php" to="includes/acp/info/acp_altt.php" />
			<file from="root/language/en/mods/info_acp_altt.php" to="language/en/mods/info_acp_altt.php" />
			<file from="root/install/index.php" to="install/index.php" />
			<file from="root/umil/*.*" to="umil/*.*" />
		</copy>

		<open src="includes/functions_display.php">
			<edit>
				<find><![CDATA[		$sql_array['SELECT'] .= ', fa.user_id';
	}]]></find>
				<action type="after-add"><![CDATA[	if (!class_exists('phpbb_mods_advanced_last_topic_titles'))
	{
		include($phpbb_root_path . 'includes/mods/advanced_last_topic_titles.' . $phpEx);
	}
	phpbb_mods_advanced_last_topic_titles::initialise();
	$sql_array = phpbb_mods_advanced_last_topic_titles::inject_sql($sql_array);]]></action>
			</edit>

			<edit>
				<find><![CDATA[	while ($row = $db->sql_fetchrow($result))
	{
		$forum_id = $row['forum_id'];]]></find>
				<action type="after-add"><![CDATA[		$row = phpbb_mods_advanced_last_topic_titles::inject_forum_row($row);]]></action>
			</edit>

			<edit>
				<find><![CDATA[				$forum_rows[$parent_id]['forum_id_last_post'] = $forum_id;]]></find>
				<action type="after-add"><![CDATA[				$forum_rows = phpbb_mods_advanced_last_topic_titles::inject_forum_row_values($forum_rows, $parent_id, $row);]]></action>
			</edit>

			<edit>
				<find><![CDATA[			'U_LAST_POST'		=> $last_post_url)
		);]]></find>
				<action type="after-add"><![CDATA[		phpbb_mods_advanced_last_topic_titles::display_information($row);]]></action>
			</edit>
		</open>

		<open src="styles/prosilver/template/forumlist_body.html">
			<edit>
				<find><![CDATA[<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}]]></find>
				<inline-edit>
					<inline-find><![CDATA[<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn>]]></inline-find>
					<inline-action type="after-add"><![CDATA[ <!-- IF S_ALTT_ACTIVE --><!-- IF forumrow.ALTT_LINK_NAME_SHORT --><a <!-- IF ALTT_STYLE -->style="{ALTT_STYLE}"<!-- ENDIF --> href="{forumrow.U_ALTT_LINK}" title="{forumrow.ALTT_LINK_NAME}">{forumrow.ALTT_LINK_NAME_SHORT}</a><!-- ELSE -->{L_ALTT_PROTECTED}<!-- ENDIF --><br /><!-- ENDIF -->]]></inline-action>
				</inline-edit>
			</edit>
		</open>

		<diy-instructions lang="de"><![CDATA[Rufe install/index.php auf und führe den Installer aus

Leere den Cache im "Administrations-Bereich" (ACP) > "Allgemein" > "Den Cache leeren"

Aktualisiere deine Styles:
		"Administrations-Bereich" (ACP) > "Styles" > "Templates" > jedes > "Aktualisieren"]]></diy-instructions>
		<diy-instructions lang="en"><![CDATA[Browse to install/index.php and run the installer

Clear your cache in the "Administration Control Panel" (ACP) > "General" > "Purge the cache"

Refresh your Styles:
		"Administration Control Panel" (ACP) > "Styles" > "Templates" > each > "refresh"]]></diy-instructions>
	</action-group>
</mod>