##############################################################
## MOD Title: 		phpBB SEO Zro dupilcate MAJ 0.4.0RC1 => 0.4.0
## MOD Author: 		dcz <n/a> http://www.phpbb-seo.com/
## MOD Description: 	Ceci est la procdure de mise  jour du MOD phpBB SEO Zro dupilcate pour la transition version 0.4.0RC4=1 => 0.4.0.
## 			Rendez-vous sur http://www.phpbb-seo.com/forums/zero-duplicate-phpbb3/zero-duplicate-phpbb3-seo-vt1502.html
## 			pour toujours obtenir la dernire version ou de l'aide pour ce 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:
## _____________
##
## Voici les instructions de mise  jour : phpBB3 SEO Mod Zro dupilcate 0.4.0RC1 => 0.4.0
##
##############################################################
## 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 POUR VOTRE FORUM <<<<<
_____________________________________________

La procdure d'installation qui suit est trs simple et ne devrait pas poser de problmes.
Elle est reuiese avec les mod rewrite phpBB SEO 0.4.0 stable.
 
#
#-----[ 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
