<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="./modx/1.2.5.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.\nAlthough MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD.\nNo 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>
		<meta name="generator" content="MODX file generated with PP MODX Creator by tumba25 (online version)"/>
		<license><![CDATA[http://opensource.org/licenses/gpl-license.php GNU General Public License v2]]></license>
		<title lang="en"><![CDATA[AOS Who Visited a Topic]]></title>
		<title lang="es"><![CDATA[AOS Quien a Visitado un Tema]]></title>
		<description lang="en"><![CDATA[Displays the amount, users who have visited a topic and the times he has been visited, similar to a pop-up Who is online?, configurable from the ACP.]]></description>
		<description lang="es"><![CDATA[Muestra la cantidad, los usuarios que han visitado un tema y las veces que lo han visitado, con un pop-up similar al de ¿Quién está conectado?, configurable desde el ACP.]]></description>
		<author-notes lang="en"><![CDATA[Copyright 2011 Alorse - phpbb.alorse.net
Before adding this MOD to your forum, you should back up all files related to this MOD.
Note that this MOD users begin to run only after having been installed, does not apply to previous visits to the installation.]]></author-notes>
		<author-notes lang="es"><![CDATA[Copyright 2011 Alorse - phpbb.alorse.net
Antes de añadir este MOD a su foro, debería hacer una copia de todos los archivos relacionados con este MOD.
Tener en cuenta que este MOD empezará a contar los usuarios solamente luego de haber sido instalado, no aplica para visitas anteriores a la instalación.]]></author-notes>
		<author-group>
			<author>
				<realname><![CDATA[Fredo]]></realname>
				<username><![CDATA[Alorse]]></username>
				<homepage><![CDATA[http://phpbb.alorse.net/]]></homepage>
				<email><![CDATA[alorse@gmail.com]]></email>
			</author>
		</author-group>
		<mod-version>1.0.2.2</mod-version>
		<installation>
			<level>easy</level>
			<time>300</time>
			<target-version>3.0.9</target-version>
		</installation>
		<history>
			<entry>
				<date>2011-04-16</date>
				<rev-version>0.1.0</rev-version>
				<changelog lang="en">
					<change><![CDATA[Initial release for phpbb 3.0.8]]></change>
				</changelog>
				<changelog lang="es">
					<change><![CDATA[Versión inicial para phpbb 3.0.8]]></change>
				</changelog>
			</entry>
			<entry>
				<date>2011-04-18</date>
				<rev-version>0.1.1</rev-version>
				<changelog lang="en">
					<change><![CDATA[[Fix] Notice if any registered user has been the the topic.]]></change>
					<change><![CDATA[[Feature] Added ACP option to reset counters.]]></change>
					<change><![CDATA[[Feature] Added ACP option to see the version of the MOD.]]></change>
				</changelog>
				<changelog lang="es">
					<change><![CDATA[[Parche] Aviso si ningun usuario registrado ha visto el tema.]]></change>
					<change><![CDATA[[Función] Agregada opción al ACP para reiniciar contadores.]]></change>
					<change><![CDATA[[Función] Agregada opción al ACP para ver la versión del MOD.]]></change>
				</changelog>
			</entry>
			<entry>
				<date>2011-04-25</date>
				<rev-version>1.0.0</rev-version>
				<changelog lang="en">
					<change><![CDATA[[Change] Added settings for group permissions.]]></change>
					<change><![CDATA[[Feature] Install Compatible with AutoMOD.]]></change>
					<change><![CDATA[Submitted RC version.]]></change>
				</changelog>
				<changelog lang="es">
					<change><![CDATA[[Cambio] Agregada configuración para permisos de grupos.]]></change>
					<change><![CDATA[[Función] Instalador Compatible con AutoMOD.]]></change>
					<change><![CDATA[Presentada la versión RC.]]></change>
				</changelog>
			</entry>
			<entry>
				<date>2011-08-12</date>
				<rev-version>1.0.2</rev-version>
				<changelog lang="en">
					<change><![CDATA[Release for phpbb 3.0.9]]></change>
					<change><![CDATA[[Change] Have rewritten the function for count visits per user.]]></change>
					<change><![CDATA[[Feature] Added pop-up to view complete list with details.]]></change>
					<change><![CDATA[[New] Displays the last visit of each user.]]></change>
				</changelog>
				<changelog lang="es">
					<change><![CDATA[Versión para phpbb 3.0.9]]></change>
					<change><![CDATA[[Cambio] Reescrita la función de contar visitas por usuario.]]></change>
					<change><![CDATA[[Función] Agregado pop-up para ver lista completa con mas detalles.]]></change>
					<change><![CDATA[[Nuevo] Muestra la ultima visita de cada usuario.]]></change>
				</changelog>
			</entry>
			<entry>
				<date>2011-10-21</date>
				<rev-version>1.0.2.2</rev-version>
				<changelog lang="en">
					<change><![CDATA[[Feature] Delete ACP option to reset counters.]]></change>
					<change><![CDATA[[Fix] Fixed errors for template subsilver2.]]></change>
					<change><![CDATA[[Fix] Fixes reported by the phpBB MOD Team.]]></change>
				</changelog>
				<changelog lang="es">
					<change><![CDATA[[Función] Eliminada opción al ACP para reiniciar contadores.]]></change>
					<change><![CDATA[[Arreglo] Solucionados errores para plantilla subsilver2.]]></change>
					<change><![CDATA[[Arreglo] Cambios sugeridos por el Equipo de MODs de phpBB.]]></change>
				</changelog>
			</entry>
		</history>
		<link-group>
			<link type="language" href="./contrib/es.xml" lang="en">Install Spanish language pack</link>
			<link type="language" href="./contrib/es.xml" lang="es">Instalar paquete de idioma español</link>
			<link type="template" href="./contrib/subsilver2.xml" lang="en">Changes for Subsilver2 based style</link>
			<link type="contrib" href="./contrib/subsilver2.xml" lang="es">Cambios de estilo basados en subsilver2</link>
			<link type="contrib" href="./contrib/update_0.1.1_to_1.0.0.xml" lang="en">Update : From version 0.1.1 to 1.0.0</link>
			<link type="contrib" href="./contrib/update_0.1.1_to_1.0.0.xml" lang="es">Actualizar : de versión 0.1.1 a 1.0.0</link>
			<link type="contrib" href="./contrib/update_1.0.0_to_1.0.2.2.xml" lang="en">Update : From version 1.0.0 to 1.0.2.2</link>
			<link type="contrib" href="./contrib/update_1.0.0_to_1.0.2.2.xml" lang="es">Actualizar : de versión 1.0.0 a 1.0.2.2</link>
			<link type="contrib" href="./contrib/update_1.0.1_to_1.0.2.2.xml" lang="en">Update : From version 1.0.1 to 1.0.2.2</link>
			<link type="contrib" href="./contrib/update_1.0.1_to_1.0.2.2.xml" lang="es">Actualizar : de versión 1.0.1 a 1.0.2.2</link>
		</link-group>
	</header>
	<action-group>
		<copy>
			<file from="root/who_visited_a_topic_install.php" to="who_visited_a_topic_install.php"/>
			<file from="root/includes/who_visited_a_topic.php" to="includes/who_visited_a_topic.php"/>
			<file from="root/language/en/mods/info_acp_who_visited_a_topic.php" to="language/en/mods/info_acp_who_visited_a_topic.php"/>
			<file from="root/styles/prosilver/template/who_visited_a_topic.html" to="styles/prosilver/template/who_visited_a_topic.html"/>
			<file from="root/umil/*.*" to="umil/*.*"/>
		</copy>
		<open src="viewtopic.php">
			<edit>
				<find><![CDATA[unset($rowset, $user_cache);]]></find>
				<action type="after-add"><![CDATA[//-- MOD : AOS Who Visited a Topic - Start -----------------------------------------------//
        include($phpbb_root_path . 'includes/who_visited_a_topic.' . $phpEx);
        aos_who_visited_a_topic_init();
//-- MOD : AOS Who Visited a Topic - End -------------------------------------------------//]]></action>
			</edit>
		</open>
		<open src="includes/constants.php">
			<edit>
				<find><![CDATA[// Additional tables]]></find>
				<action type="after-add"><![CDATA[//-- MOD : AOS Who Visited a Topic - Start -----------------------------------------------//
define('TOPICS_VIEWS_TABLE',		$table_prefix . 'topics_views');
//-- MOD : AOS Who Visited a Topic - End -------------------------------------------------//]]></action>
			</edit>
		</open>
		<open src="includes/functions_admin.php">
			<edit>
				<find><![CDATA[	$table_ary = array(BOOKMARKS_TABLE, TOPICS_TRACK_TABLE, TOPICS_POSTED_TABLE, POLL_VOTES_TABLE, POLL_OPTIONS_TABLE, TOPICS_WATCH_TABLE, TOPICS_TABLE);]]></find>
				<inline-edit>
					<inline-find><![CDATA[, TOPICS_TABLE]]></inline-find>
					<inline-action type="after-add"><![CDATA[, TOPICS_VIEWS_TABLE]]></inline-action>
				</inline-edit>
			</edit>
		</open>
		<open src="includes/acp/acp_board.php">
			<edit>
				<find><![CDATA[			break;

			case 'signature':]]></find>
				<action type="before-add"><![CDATA[//-- MOD : AOS Who Visited a Topic - Start -----------------------------------------------//
				include($phpbb_root_path . 'includes/who_visited_a_topic.' . $phpEx);
				aos_display_acp_options($display_vars);
//-- MOD : AOS Who Visited a Topic - End -------------------------------------------------//]]></action>
			</edit>
		</open>
		<open src="styles/prosilver/template/viewtopic_body.html">
			<edit>
				<find><![CDATA[<!-- INCLUDE overall_footer.html -->]]></find>
				<action type="before-add"><![CDATA[<!-- MOD : AOS Who Visited a Topic - Start -->
<!-- IF S_WHO_VISITED_A_TOPIC -->
<h3><a href="{U_WVT}" onclick="window.open(this.href,'','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=500,height=300'); return false;">{L_WHO_VISITED_A_TOPIC}</a></h3>
<p><!-- IF NUM_VISITORS -->{NUM_VISITORS}<!-- IF NUM_VISITORS == 1 -->{L_USER_VISIT}<!-- ELSE -->{L_USER_VISITS}<!-- ENDIF --><!-- BEGIN visited_topic --><span title="{visited_topic.USER_LAST_VIEW_TIME}">{visited_topic.USER}</span><!-- IF VIEW_COUNT --> ({visited_topic.USER_VIEW_COUNT})<!-- ENDIF --><!-- IF not visited_topic.S_LAST_ROW -->, <!-- ENDIF --><!-- END visited_topic --><!-- IF NUM_USER_IN_TOPIC -->, ... [<a href="{U_WVT}" onclick="window.open(this.href,'','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=500,height=300'); return false;">{L_VIEW_MORE}</a>]<!-- ENDIF --><!-- ELSE -->{L_NONE_USER_VISIT}<!-- ENDIF --></p>
<!-- ENDIF -->
<!-- MOD : AOS Who Visited a Topic - End -->]]></action>
			</edit>
		</open>
		<php-installer><![CDATA[who_visited_a_topic_install.php]]></php-installer>
		<diy-instructions lang="en"><![CDATA[Log on to Administration Control Panel
#####################################################################
A) Database update:
	1) Once all the files have been modified and uploaded to your site you should point your browser at this location with the addition of /who_visited_a_topic_install.php
	2) Follow the instructions.
	3) You should remove/rename the install file (who_visited_a_topic_install.php) from your server.
#####################################################################
B) Purge the cache :
	1) Navigate to General Tab
	2) look at Purge the cache
	3) Click on "Run Now" button at right
	4) in the next screen, click on "Yes"
#####################################################################
C) Enjoy it !.]]></diy-instructions>
		<diy-instructions lang="es"><![CDATA[Inicie sesión en el Panel de Control de Administración
#####################################################################
A) Actualizar base de datos:
	1) Una vez que todos los archivos se han modificados y subidos a su sitio, debe apuntar su navegador a su dominio agregando /who_visited_a_topic_install.php
	2) Siga las instrucciones.
	3) Debe quitar o cambiar el nombre del archivo de instalación (who_visited_a_topic_install.php) de su servidor.
#####################################################################
B) purgar la caché:
	1) Vaya a la pestaña General
	2) Buscar "Limpiar la caché"
	3) Haga clic en "Ejecutar " a la derecha
	4) En la siguiente pantalla, haga clic en "Sí"
#####################################################################
C) Que lo disfruten!.]]></diy-instructions>
	</action-group>
</mod>
