##############################################################
## MOD Title: 		Zero duplicate 0.4.0RC1 => 0.4.0 update
## MOD Author: 		dcz <n/a> http://www.phpbb-seo.com/
## MOD Description: 	This are the update steps for the phpBB SEO Zero duplicate 0.4.0RC1 => 0.4.0 update.
## 			Check http://www.phpbb-seo.com/boards/phpbb3-zero-duplicate/phpbb3-seo-zero-duplicate-vt1220.html
## 			for the latest version or to get help with this MOD
##
## MOD Version: 	1.0
##
## Installation Level: 	(Eazy)
## Installation Time: 	4 Minutes
## Files To Edit: 	(2)
##			memberlist.php,
##			search.php.
##
## Included Files: n/a
##############################################################
## Author Notes:
## _____________
##
## This are the update steps for the phpBB3 SEO Zero duplicate 0.4.0RC1 => 0.4.0 update.
##
##############################################################
## MOD History:
##
##	2007-12-24 - 1.0
##		- First version released
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################


#
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#
_________________________________________
>>>>   INSTALLATION INSTRUCTIONS    <<<<<
_________________________________________

This update procedure is very easy and should not cause problem.
It is required for the 0.4.0 stable phpBB SEO mod rewrite.

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

memberlist.php

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

		// www.phpBB-SEO.com SEO TOOLKIT BEGIN
		if ( $user->data['is_registered'] ) {
			$phpbb_seo->seo_cond( !isset($_GET['explain']) );
		}
		if ( !$phpbb_seo->seo_opt['zero_dupe']['strict'] ) { // strict mode is here a bit faster
			if ( !$user->data['is_registered'] ) {
				$phpbb_seo->seo_cond( isset($_GET['explain']), false, 'do' );
			}
		}
		$phpbb_seo->page_url = $phpbb_seo->seo_path['phpbb_urlR'] . $phpbb_seo->seo_static['user'] . $user_id . $phpbb_seo->seo_ext['user'] . (!empty($_SID) ? '?sid=' . $_SID : '');
		$phpbb_seo->seo_chk_dupe($phpbb_seo->seo_path['uri'], $phpbb_seo->page_url);
		// www.phpBB-SEO.com SEO TOOLKIT END

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

		// www.phpBB-SEO.com SEO TOOLKIT BEGIN - Zero dupe
		if ( $user->data['is_registered'] ) {
			$phpbb_seo->seo_cond( !isset($_GET['explain']) );
		}
		if ( !$phpbb_seo->seo_opt['zero_dupe']['strict'] ) { // strict mode is here a bit faster
			if ( !$user->data['is_registered'] ) {
				$phpbb_seo->seo_cond( isset($_GET['explain']), false, 'do' );
			}
		}
		$phpbb_seo->page_url = str_replace('&amp;', '&', append_sid("memberlist.$phpEx?mode=viewprofile&u=$user_id" . (!empty($_SID) ? '&amp;sid=' . $_SID : '')));
		$phpbb_seo->seo_chk_dupe(urldecode(urldecode($phpbb_seo->seo_path['uri'])), urldecode(urldecode($phpbb_seo->page_url)));
		// www.phpBB-SEO.com SEO TOOLKIT END - Zero dupe

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

			if (!$group_row)
			{
				trigger_error('NO_GROUP');
			}

#
#-----[ AFTER, ADD ]------------------------------------------
#

			// www.phpBB-SEO.com SEO TOOLKIT BEGIN - Zero dupe
			if ( $user->data['is_registered'] ) {
				$phpbb_seo->seo_cond( !isset($_GET['explain']) );
			}
			if ( !$phpbb_seo->seo_opt['zero_dupe']['strict'] ) { // strict mode is here a bit faster
				if ( !$user->data['is_registered'] ) {
					$phpbb_seo->seo_cond( isset($_GET['explain']), false, 'do' );
				}
			}
			if ( empty($phpbb_seo->seo_url['group'][$group_row['group_id']]) ) {
				$phpbb_seo->seo_url['group'][$group_row['group_id']] = $phpbb_seo->format_url($group_row['group_name'], $phpbb_seo->seo_static['group']);
			}
			$phpbb_seo->page_url = str_replace('&amp;', '&', append_sid("memberlist.$phpEx?mode=group&g=" . $group_row['group_id'] . '&amp;start=' . $start . (!empty($_SID) ? '&amp;sid=' . $_SID : '')));
			$phpbb_seo->seo_chk_dupe($phpbb_seo->seo_path['uri'], $phpbb_seo->page_url);
			// www.phpBB-SEO.com SEO TOOLKIT END - Zero dupe

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

search.php

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

		$author = empty($author) ? $author_name : $author;

#
#-----[ AFTER, ADD ]------------------------------------------
#

		// www.phpBB-SEO.com SEO TOOLKIT BEGIN - Zero dupe
		$seo_search_params = (!empty($u_search) ? '?' . $u_search . '&amp;': '?') .  'start=' .  $phpbb_seo->seo_chk_start( $start, $per_page );
		$phpbb_seo->page_url = str_replace('&amp;', '&', append_sid(  "{$phpbb_root_path}search.$phpEx$seo_search_params") );
		if ( $user->data['is_registered'] ) {
			$phpbb_seo->seo_cond( !isset($_GET['explain']) );
		}
		if ( !$phpbb_seo->seo_opt['zero_dupe']['strict'] ) { // strict mode is here a bit faster
			if ( !$user->data['is_registered'] ) {
				$phpbb_seo->seo_cond( isset($_GET['explain']), false, 'do' );
			}
		}
		if (!$submit) {
			$phpbb_seo->seo_chk_dupe(urldecode(urldecode($phpbb_seo->seo_path['uri'])), urldecode(urldecode($phpbb_seo->page_url)));
		}
		// www.phpBB-SEO.com SEO TOOLKIT END - Zero dupe


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