<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="./contrib/xsl/modx.prosilver.en.xsl"?>
<!-- 
	NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.
-->
<!--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="en">Prime User Topics</title>
		<description lang="en">Adds a "Search user's topics" link next to the "Search user's posts" link on the user profile page.</description>
		<author-notes lang="en">Support is given for both prosilver and subsilver2 templates. If you are using other templates then you may need to modify the template instructions to fit your templates. Instructions for subsilver2 are located in the templates directory.

Creating, maintaining, and updating MODs requires a lot of time and effort, so if you like this MOD and have the desire to express your thanks through a donation, that would be greatly appreciated. My Paypal ID is primehalo@gmail.com, or contact me for my mailing address. The suggested donation amount for this MOD is $1.00 (but any amount will help).</author-notes>
		<author-group>
			<author>
				<realname>Ken F. Innes IV</realname>
				<email>primehalo@gmail.com</email>
				<username>primehalo</username>
				<homepage><![CDATA[http://www.absoluteanime.com/admin/mods.htm#user_topics]]></homepage>
			</author>
		</author-group>
		<mod-version>1.0.0b</mod-version>
		<installation>
			<level>easy</level>
			<time>180</time>
			<target-version>3.0.7-PL1</target-version>
		</installation>
		<history>
			<entry>
				<date>2008-08-23</date>
				<rev-version>1.0.0</rev-version>
				<changelog lang="en">
					<change>Initial release</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-09-13</date>
				<rev-version>1.0.0a</rev-version>
				<changelog lang="en">
					<change>Added Spanish, Italian, and Traditional Chinese translations.</change>
				</changelog>
			</entry>
			<entry>
				<date>2010-10-15</date>
				<rev-version>1.0.0b</rev-version>
				<changelog lang="en">
					<change>Added a Russian translation.</change>
				</changelog>
			</entry>
		</history>
		<link-group>
			<link type="template" href="contrib/template - subsilver2.xml" realname="subsilver2" lang="en">subsilver2</link>
			<link type="language" href="contrib/language - es.xml" realname="es" lang="en">Spanish</link>
			<link type="language" href="contrib/language - it.xml" realname="it" lang="en">Italian</link>
			<link type="language" href="contrib/language - ru.xml" realname="ru" lang="en">Russian</link>
			<link type="language" href="contrib/language - zh.xml" realname="zh" lang="en">Traditional Chinese</link>
		</link-group>
	</header>
	<action-group>
		<copy>
			<file from="root/language/en/mods/prime_user_topics.php" to="language/en/mods/prime_user_topics.php" />
		</copy>
		<open src="memberlist.php">
			<edit>
				<find><![CDATA[	$username = $data['username'];]]></find>
				<action type="before-add"><![CDATA[//-- mod: Prime User Topics -------------------------------------------------//
	$user->add_lang('mods/prime_user_topics');
//-- end: Prime User Topics -------------------------------------------------//]]></action>
			</edit>
			<edit>
				<find><![CDATA[		'U_SEARCH_USER'	=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$user_id&amp;sr=posts") : '',]]></find>
				<action type="after-add"><![CDATA[//-- mod: Prime User Topics -------------------------------------------------//
		'U_SEARCH_USER_TOPICS'	=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$user_id&amp;sr=topics&amp;sf=firstpost") : '',
//-- end: Prime User Topics -------------------------------------------------//]]></action>
			</edit>
		</open>

		<open src="styles/prosilver/template/memberlist_view.html">
			<edit>
				<find><![CDATA[<strong><a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a></strong>]]></find>
				<inline-edit>
					<inline-find><![CDATA[<strong><a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a></strong>]]></inline-find>
					<inline-action type="after-add"><![CDATA[<!-- IF U_SEARCH_USER_TOPICS --> | <strong><a href="{U_SEARCH_USER_TOPICS}">{L_PRIME_SEARCH_USER_TOPICS}</a></strong><!-- ENDIF -->]]></inline-action>
				</inline-edit>
			</edit>
		</open>
	</action-group>
</mod>
