##############################################################
## MOD Title: 		phpBB SEO No Duplicate 0.6.4 => 0.6.6 update
## MOD Author: 		dcz <n/a> http://www.phpbb-seo.com/
## MOD Description: 	This are the update steps for the phpBB SEO No Duplicate 0.6.4 => 0.6.6 update.
## 			Check http://www.phpbb-seo.com/en/phpbb-seo-toolkit/phpbb3-seo-no-duplicate-t1225.html
## 			for the latest version or to get help with this MOD.
##
## MOD Version: 	1.0
##
## Installation Level: 	Easy
## Installation Time: 	3 Minutes
## Files To Edit: 	2
##			viewforum.php
##			includes/functions_display.php.
##
## Included Files:	0
##
##############################################################
## Author Notes:
## _____________
##
## This are the update steps for the phpBB SEO No Duplicate 0.6.4 => 0.6.6 update.
##
## LICENSE: http://opensource.org/osi3.0/licenses/lgpl-license.php GNU Lesser General Public License
##
##############################################################
## MOD History:
##
##	2011-07-18 - 1.0
##		- First version released
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

viewforum.php

#
#-----[ FIND ]------------------------------------------
#

			'U_LAST_POST' => @$phpbb_seo->seo_opt['no_dupe']['on'] ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . (($row['forum_id']) ? $row['forum_id'] : $forum_id) . '&amp;t=' . $topic_id . '&amp;start=' . @intval($phpbb_seo->seo_opt['topic_last_page'][$topic_id])) . '#p' . $row['topic_last_post_id'] : append_sid("{$phpbb_root_path}viewtopic.$phpEx", $view_topic_url_params . '&amp;p=' . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'],


#
#-----[ REPLACE WITH ]------------------------------------------
#

			'U_LAST_POST' => !empty($phpbb_seo->seo_opt['no_dupe']['on']) ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $topic_forum_id . '&amp;t=' . $topic_id . '&amp;start=' . @intval($phpbb_seo->seo_opt['topic_last_page'][$topic_id])) . '#p' . $row['topic_last_post_id'] : append_sid("{$phpbb_root_path}viewtopic.$phpEx", $view_topic_url_params . '&amp;p=' . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'],

#
#-----[ OPEN ]------------------------------------------
#

includes/functions_display.php

#
#-----[ FIND ]------------------------------------------
#

	if (@$phpbb_seo->seo_opt['no_dupe']['on']) {

#
#-----[ REPLACE WITH ]------------------------------------------
#

	if (!empty($phpbb_seo->seo_opt['no_dupe']['on'])) {

#
#-----[ FIND ]------------------------------------------
#

		if (@$phpbb_seo->seo_opt['no_dupe']['on']) {

#
#-----[ REPLACE WITH ]------------------------------------------
#

		if (!empty($phpbb_seo->seo_opt['no_dupe']['on'])) {


#
#-----[ FIND ]------------------------------------------
#

				if (@$phpbb_seo->seo_opt['no_dupe']['on']) {
					$forum_rows[$parent_id]['topic_id'] = $row['topic_id'];
					$forum_rows[$parent_id]['topic_title'] = $row['topic_title'];
					$forum_rows[$parent_id]['topic_type'] = $row['topic_type'];
					$forum_rows[$parent_id]['forum_password'] = $row['forum_password'];
					if (!empty($row['topic_url'])) {
						$forum_rows[$parent_id]['topic_url'] = $row['topic_url'];
					}
				}

#
#-----[ REPLACE WITH ]------------------------------------------
#

				if (!empty($phpbb_seo->seo_opt['no_dupe']['on'])) {
					$forum_rows[$parent_id]['topic_id'] = $row['topic_id'];
					$forum_rows[$parent_id]['topic_title'] = $row['topic_title'];
					$forum_rows[$parent_id]['topic_type'] = $row['topic_type'];
					$forum_rows[$parent_id]['forum_password'] = $row['forum_password'];
					$forum_rows[$parent_id]['topic_url'] = isset($row['topic_url']) ? $row['topic_url'] : '';
				}

#
#-----[ FIND ]------------------------------------------
#

			if (@$phpbb_seo->seo_opt['no_dupe']['on'] && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id_last_post'])) {
				$phpbb_seo->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$forum_id]);


#
#-----[ REPLACE WITH ]------------------------------------------
#

			if (!empty($phpbb_seo->seo_opt['no_dupe']['on']) && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id_last_post'])) {
				$phpbb_seo->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$row['forum_id_last_post']]);

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
