Pagina 1 van 1

Admin Registration Notify werkt niet OPGELOST

Geplaatst: 22 apr 2005, 18:35
door Muiter

Code: Selecteer alles

## MOD Title: Admin Registration Notify
## MOD Author: 	mosymuis < mods@mosymuis.nl > (Rens van Dongen) http://mods.mosymuis.nl
##
## MOD Description: This mod will send a notification email to
##		all admins when a new user has joined the forum.
##		This can be turned off in the admincp.
Deze wil bij mij niet werken helaas. Waar zou de fout kunnen zitten?

Geplaatst: 22 apr 2005, 19:02
door Stef
Wát werkt er niet? :roll:

Geplaatst: 22 apr 2005, 20:10
door Muiter
Stef schreef:Wát werkt er niet? :roll:
Er wordt geen e-mail verstuurd naar de beheerder zoals aangegeven in het ACP.

Geplaatst: 23 apr 2005, 11:58
door Luuk
Heb je het wel ingeschakeld staan?

Geplaatst: 24 apr 2005, 10:43
door Muiter
Luuk schreef:Heb je het wel ingeschakeld staan?
Uiteraard.

Geplaatst: 04 mei 2005, 20:46
door Muiter
Het probleem is dat deze mod een conflict geeft met de 'Resend Activation' mod. Hoe is dit op te lossen?

Geplaatst: 05 mei 2005, 08:58
door Stef
Welke regels schrijft hij over?

Om het bij te houden, gaat je andere topic op slot.

Geplaatst: 05 mei 2005, 09:41
door Muiter
Stef schreef:Welke regels schrijft hij over?
Geen.

Admin Registration Notify:

Code: Selecteer alles

#
#-----[ COPY ]------------------------------------------
#
copy phpbb_root_path/language/lang_english/email/admin_new_user.tpl
copy phpbb_root_path/language/lang_dutch/email/admin_new_user.tpl

# 
#-----[ SQL ]------------------------------------------ 
# or run the included db_update.php
# change phpbb_ to the database prefix you use
#
INSERT INTO phpbb_config VALUES ('registration_notify', 1);

# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_board.php

# 
#-----[ FIND ]------------------------------------------ 
# 
$activation_admin = ( $new['require_activation'] == USER_ACTIVATION_ADMIN ) ? "checked=\"checked\"" : "";

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
$registration_notify_none = ( $new['registration_notify'] == USER_REGISTRATION_NOTIFY_NONE ) ? "checked=\"checked\"" : "";
$registration_notify_mod = ( $new['registration_notify'] == USER_REGISTRATION_NOTIFY_MOD ) ? "checked=\"checked\"" : "";
$registration_notify_admin = ( $new['registration_notify'] == USER_REGISTRATION_NOTIFY_ADMIN ) ? "checked=\"checked\"" : "";

# 
#-----[ FIND ]------------------------------------------ 
# 
	"L_ACCT_ACTIVATION" => $lang['Acct_activation'],

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	"L_REGISTRATION_NOTIFY" => $lang['Registration_notify'],
	"L_MOD" => $lang['Moderator'],

# 
#-----[ FIND ]------------------------------------------ 
# 
	"ACTIVATION_ADMIN_CHECKED" => $activation_admin,

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	"REGISTRATION_NOTIFY_NONE" => USER_REGISTRATION_NOTIFY_NONE,
	"REGISTRATION_NOTIFY_NONE_CHECKED" => $registration_notify_none,
	"REGISTRATION_NOTIFY_MOD" => USER_REGISTRATION_NOTIFY_MOD,
	"REGISTRATION_NOTIFY_MOD_CHECKED" => $registration_notify_mod,
	"REGISTRATION_NOTIFY_ADMIN" => USER_REGISTRATION_NOTIFY_ADMIN,
	"REGISTRATION_NOTIFY_ADMIN_CHECKED" => $registration_notify_admin,

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/constants.php

# 
#-----[ FIND ]------------------------------------------ 
# 
define('USER_ACTIVATION_ADMIN', 2);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
define('USER_REGISTRATION_NOTIFY_NONE', 0);
define('USER_REGISTRATION_NOTIFY_MOD', 2);
define('USER_REGISTRATION_NOTIFY_ADMIN', 1);

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
#
				$email_template = 'user_welcome';
			}

			include($phpbb_root_path . 'includes/emailer.'.$phpEx);
			$emailer = new emailer($board_config['smtp_delivery']);

#
#-----[ AFTER, ADD ]------------------------------------------
#
			if ( $board_config['registration_notify'] )
			{
				$sql = "SELECT user_email, user_lang
					FROM " . USERS_TABLE . "
					WHERE user_level" . (($board_config['registration_notify'] == USER_REGISTRATION_NOTIFY_ADMIN) ? " = " : " >= ") . ADMIN;

				if ( !($result = $db->sql_query($sql)) )
				{
					message_die(GENERAL_ERROR, 'Could not select Administrators', '', __LINE__, __FILE__, $sql);
				}

				while ($row = $db->sql_fetchrow($result))
				{
					$emailer->from($board_config['board_email']);
					$emailer->replyto($board_config['board_email']);

					$emailer->email_address(trim($row['user_email']));
					$emailer->use_template("admin_new_user", $row['user_lang']);
					$emailer->set_subject($lang['New_user_registration']);

					$emailer->assign_vars(array(
						'SITENAME' => $board_config['sitename'],
						'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)),
						'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']),

						'U_PROFILE' => $server_url . '?mode=viewprofile&' . POST_USERS_URL . '=' . $user_id)
					);
					$emailer->send();
					$emailer->reset();
				}
				$db->sql_freeresult($result);
			}

# 
#-----[ OPEN ]------------------------------------------ 
# Make sure to edit this file for every theme you use!
#
templates/subSilver/admin/board_config_body.tpl 

# 
#-----[ FIND ]------------------------------------------ 
# 
		<td class="row2"><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED} />{L_NONE}&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED} />{L_USER}&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED} />{L_ADMIN}</td>
	</tr>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	<tr>
		<td class="row1">{L_REGISTRATION_NOTIFY}</td>
		<td class="row2"><input type="radio" name="registration_notify" value="{REGISTRATION_NOTIFY_NONE}" {REGISTRATION_NOTIFY_NONE_CHECKED} />{L_NONE}&nbsp; &nbsp;<input type="radio" name="registration_notify" value="{REGISTRATION_NOTIFY_MOD}" {REGISTRATION_NOTIFY_MOD_CHECKED} />{L_MOD}&nbsp; &nbsp;<input type="radio" name="registration_notify" value="{REGISTRATION_NOTIFY_ADMIN}" {REGISTRATION_NOTIFY_ADMIN_CHECKED} />{L_ADMIN}</td>
	</tr>

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Admin Registration Notify mod
$lang['New_user_registration'] = 'New user registration';

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Admin Registration Notify mod
$lang['Registration_notify'] = 'Send notify email on new user registrations';

#
#-----[ OPEN ]------------------------------------------
# Only if you have the Dutch language pack installed
#
language/lang_dutch/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Admin Registration Notify mod
$lang['New_user_registration'] = 'Nieuwe leden registratie';

#
#-----[ OPEN ]------------------------------------------
# Only if you have the Dutch language pack installed
#
language/lang_dutch/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Admin Registration Notify mod
$lang['Registration_notify'] = 'Stuur een mailtje bij nieuwe leden registraties';

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Resend Activation:

Code: Selecteer alles

#
#-----[ COPY ]------------------------------------------
#
copy root/templates/profile_resendactivation.tpl to templates/profile_resendactivation.tpl
copy root/includes/usercp_sendactivation.php to includes/usercp_sendactivation.php
copy root/language/lang_english/email/user_activate_resend.tpl to language/lang_english/email/user_activate_resend.tpl

# 
#-----[ OPEN ]------------------------------------------------
# 
login.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
		'L_SEND_PASSWORD' => $lang['Forgotten_password'],

# 
#-----[ AFTER, ADD ]----------------------------------------- 
#
		'L_SEND_ACTIVATION' => $lang['Resend_Activation'],

# 
#-----[ FIND ]------------------------------------------------ 
# 
		'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),

# 
#-----[ AFTER, ADD ]----------------------------------------- 
#
		'U_SEND_ACTIVATION' => append_sid("profile.$phpEx?mode=resendactivation"),

# 
#-----[ OPEN ]------------------------------------------------
# 
profile.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
else if ( $mode == 'activate' )
	{
		include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx);
		exit;
	}

# 
#-----[ AFTER, ADD ]----------------------------------------- 
#
	else if ( $mode == 'resendactivation' )
	{
		include($phpbb_root_path . 'includes/usercp_sendactivation.'.$phpEx);
		exit;
	}
# 
#-----[ OPEN ]------------------------------------------------
# 
language/lang_english/lang_main.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
$lang['Forgotten_password'] = 'I forgot my password';

# 
#-----[ AFTER, ADD ]----------------------------------------- 
#
$lang['Resend_Activation'] = 'Resend Activation';

# 
#-----[ FIND ]------------------------------------------------ 
# 
$lang['Password_updated'] = 'A new password has been created; please check your e-mail for details on how to activate it.';

# 
#-----[ AFTER, ADD ]----------------------------------------- 
#
$lang['New_activation_sent'] = 'A new activation key has been sent; please check your e-mail for details on how to activate it.';

# 
#-----[ OPEN ]------------------------------------------------
# 
templates/subSilver/login_body.tpl

# 
#-----[ FIND ]------------------------------------------------ 
# 
{L_SEND_PASSWORD}</a></span></td>

# 
#-----[ INLINE, FIND ]----------------------------------------- 
#
</a>

# 
#-----[ AFTER, ADD ]----------------------------------------- 
#
<br><a href="{U_SEND_ACTIVATION}" class="gensmall">{L_SEND_ACTIVATION}</a>

# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------------- 
# 
# EoM
Stef schreef:Om het bij te houden, gaat je andere topic op slot.
Top :thumb:

Geplaatst: 05 mei 2005, 11:01
door Stef
Weet je zeker dat ze met elkaar in conflict komen?
Ik zie namelijk niet 1,2,3 een zelfde variabele oid.

Geplaatst: 05 mei 2005, 11:09
door Muiter
Stef schreef:Weet je zeker dat ze met elkaar in conflict komen?
Ik zie namelijk niet 1,2,3 een zelfde variabele oid.
Het is net getest op een nieuwe instalatie, de mods apart werken goed, samen werken ze geen van beiden. Kan het probleem in één van de toegevoegde files zitten?

Geplaatst: 08 mei 2005, 20:12
door Muiter
Ik heb de 'Admin Registration Notify' verwijder maar blijf met het probleem zitten dat er de melding 'Onjuiste activeringscode' verschijnt terwijl de code wel juist is. In welk bestand kan/moet dit probleem zitten?

Geplaatst: 09 mei 2005, 18:14
door Muiter
Kan het te maken hebben met 'send pm on registration' mod?

In usercp_register.php:

Code: Selecteer alles

	$sql = "UPDATE " . USERS_TABLE . " 
		SET user_new_privmsg = '1', user_last_privmsg = '9999999999'
				WHERE user_id = $user_id";
		if ( !($result = $db->sql_query($sql)) )
        {
		    message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
        }

        $register_pm_subject = $lang['register_pm_subject'];
        $register_pm = $lang['register_pm'];
        $privmsgs_date = date("U");
        $sql = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES ('0', '" . str_replace("\'", "''", addslashes(sprintf($register_pm_subject,$board_config['sitename']))) . "', '2', " . $user_id . ", " . $privmsgs_date . ", '0', '1', '1', '0')";
        if ( !$db->sql_query($sql) )
		{
			message_die(GENERAL_ERROR, 'Could not insert private message sent info', '', __LINE__, __FILE__, $sql);
		}

		$privmsg_sent_id = $db->sql_nextid();
		$privmsgs_text = $lang['register_pm_subject'];
        //
        $sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_text) VALUES ($privmsg_sent_id, '" . str_replace("\'", "''", addslashes(sprintf($register_pm,$board_config['sitename'],$board_config['sitename']))) . "')";
        if ( !$db->sql_query($sql) )
		{
			message_die(GENERAL_ERROR, 'Could not insert private message sent text', '', __LINE__, __FILE__, $sql);
		}

Geplaatst: 09 mei 2005, 19:08
door Muiter
Dit is mijn profile.php

Code: Selecteer alles

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_PROFILE);
init_userprefs($userdata);
//
// End session management
//

// session id check
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
	$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];
}
else
{
	$sid = '';
}

//
// Set default email variables
//
$script_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path']));
$script_name = ( $script_name != '' ) ? $script_name . '/profile.'.$phpEx : 'profile.'.$phpEx;
$server_name = trim($board_config['server_name']);
$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/';

$server_url = $server_protocol . $server_name . $server_port . $script_name;

// -----------------------
// Page specific functions
//
function gen_rand_string($hash)
{
	$chars = array( 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F', 'g', 'G', 'h', 'H', 'i', 'I', 'j', 'J',  'k', 'K', 'l', 'L', 'm', 'M', 'n', 'N', 'o', 'O', 'p', 'P', 'q', 'Q', 'r', 'R', 's', 'S', 't', 'T',  'u', 'U', 'v', 'V', 'w', 'W', 'x', 'X', 'y', 'Y', 'z', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
	
	$max_chars = count($chars) - 1;
	srand( (double) microtime()*1000000);
	
	$rand_str = '';
	for($i = 0; $i < 8; $i++)
	{
		$rand_str = ( $i == 0 ) ? $chars[rand(0, $max_chars)] : $rand_str . $chars[rand(0, $max_chars)];
	}

	return ( $hash ) ? md5($rand_str) : $rand_str;
}
//
// End page specific functions
// ---------------------------

//
// Start of program proper
//
if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
	$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
	$mode = htmlspecialchars($mode);

	if ( $mode == 'viewprofile' )
	{
		include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
		exit;
	}
	
	// Visible-Invisible Switch
	  else if ( $mode == 'switch_status' )
  {
    $switch_status = "UPDATE ". USERS_TABLE ."
      SET user_allow_viewonline = ". ( ( $userdata['user_allow_viewonline'] ) ? 0 : 1 ) ."
      WHERE user_id = ". $userdata['user_id'] ;
    if( !$db->sql_query($switch_status) )
    {
      message_die(GENERAL_ERROR, 'Could not update online status', '', __LINE__, __FILE__, $switch_status);
    }  
    redirect(append_sid("index.$phpEx", true));
  }
	
	else if ( $mode == 'editprofile' || $mode == 'register' )
	{
		if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
		{
			redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true));
		}

		include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
		exit;
	}
	
	// Start Signature Edit
	else if ( $mode == 'signature' )
	{
		if ( !$userdata['session_logged_in'] && $mode == 'signature' )
		{
			$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
			header($header_location . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=signature", true));
			exit;
		}

		include($phpbb_root_path . 'includes/usercp_signature.'.$phpEx);
		exit;
	}
	
	// End Signature Edit
	
	else if ( $mode == 'confirm' )
	{
		
		// Visual Confirmation
		if ( $userdata['session_logged_in'] )
		{
			exit;
		}

		include($phpbb_root_path . 'includes/usercp_confirm.'.$phpEx);
		exit;
	}
	else if ( $mode == 'sendpassword' )
	{
		include($phpbb_root_path . 'includes/usercp_sendpasswd.'.$phpEx);
		exit;
	}
	else if ( $mode == 'activate' )
	{
		include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx);
		exit;
	}
	// Start Resend Activation
	else if ( $mode == 'resendactivation' )
	{
		include($phpbb_root_path . 'includes/usercp_sendactivation.'.$phpEx);
		exit;
	}
	// End Resend Activation
	else if ( $mode == 'email' )
	{
		include($phpbb_root_path . 'includes/usercp_email.'.$phpEx);
		exit;
	}
}

redirect(append_sid("index.$phpEx", true));
In welk bestand kan het probleem anders zitten?

Geplaatst: 10 mei 2005, 19:58
door Muiter
Ik heb nu ook de 'resend activation' verwijderd maar nog steeds het probleem van de onjuiste melding 'De activerings code is onjuist'
Ik hoop niet dat ik opnieuw moet beginnen want dat zou zonde zijn van alle avonden werk.

Dit zijn de enige codes die op dit moment zijn toegevoegd aan profile.php

Code: Selecteer alles

else if ( $mode == 'switch_status' )
  {
    $switch_status = "UPDATE ". USERS_TABLE ."
      SET user_allow_viewonline = ". ( ( $userdata['user_allow_viewonline'] ) ? 0 : 1 ) ."
      WHERE user_id = ". $userdata['user_id'] ;
    if( !$db->sql_query($switch_status) )
    {
      message_die(GENERAL_ERROR, 'Could not update online status', '', __LINE__, __FILE__, $switch_status);
    }  
    redirect(append_sid("index.$phpEx", true));
  }

Code: Selecteer alles

else if ( $mode == 'signature' )
	{
		if ( !$userdata['session_logged_in'] && $mode == 'signature' )
		{
			$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
			header($header_location . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=signature", true));
			exit;
		}

		include($phpbb_root_path . 'includes/usercp_signature.'.$phpEx);
		exit;
	}
Dit heb ik in ucercp_register gedaan:
paulus schreef:zoek in alle includes/usercp_**.php bestanden include en require en vervang door include_once en require_once.
Coppa verwijderd:

Code: Selecteer alles

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/usercp_register.php

# 
#-----[ FIND ]------------------------------------------ 
# 
function show_coppa()

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
function show_agreement()

# 
#-----[ FIND ]------------------------------------------ 
# 
		"AGREE_OVER_13" => $lang['Agree_over_13'],
		"AGREE_UNDER_13" => $lang['Agree_under_13'],

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

		'AGREE_TRUE' => $lang['Agree_true'],

# 
#-----[ FIND ]------------------------------------------ 
# 
		"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"),
		"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true"))

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
		'U_AGREE' => append_sid("profile.$phpEx?mode=register&agreed=true"))

#
#-----[ FIND ]------------------------------------------ 
# 
	include($phpbb_root_path . 'includes/page_header.'.$phpEx);

	show_coppa();
	
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
	include($phpbb_root_path . 'includes/page_header.'.$phpEx);

	show_agreement();

#
#-----[ FIND ]------------------------------------------ 
#
$coppa = ( empty($HTTP_POST_VARS['coppa']) && empty($HTTP_GET_VARS['coppa']) ) ? 0 : TRUE;

//
// Check and initialize some variables if needed
//

# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
//
// Check and initialize some variables if needed
//

#
#-----[ FIND ]------------------------------------------ 
#
if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )

# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN)

#
#-----[ FIND ]------------------------------------------ 
#
			if ( $coppa )
			{
				$message = $lang['COPPA'];
				$email_template = 'coppa_welcome_inactive';
			}
			else if ( $board_config['require_activation'] == USER_ACTIVATION_SELF )
			{
				$message = $lang['Account_inactive'];
				$email_template = 'user_welcome_inactive';
			}
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#

			if ( $board_config['require_activation'] == USER_ACTIVATION_SELF )
			{
				$message = $lang['Account_inactive'];
				$email_template = 'user_welcome_inactive';
			}

#
#-----[ FIND ]------------------------------------------ 
#
			if( $coppa )
			{
				$emailer->assign_vars(array(
					'SITENAME' => $board_config['sitename'],
					'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']),
					'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)),
					'PASSWORD' => $password_confirm,
					'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']),

					'FAX_INFO' => $board_config['coppa_fax'],
					'MAIL_INFO' => $board_config['coppa_mail'],
					'EMAIL_ADDRESS' => $email,
					'ICQ' => $icq,
					'AIM' => $aim,
					'YIM' => $yim,
					'MSN' => $msn,
					'WEB_SITE' => $website,
					'FROM' => $location,
					'OCC' => $occupation,
					'INTERESTS' => $interests,
					'SITENAME' => $board_config['sitename']));
			}
			else
			{
				$emailer->assign_vars(array(
					'SITENAME' => $board_config['sitename'],
					'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']),
					'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)),
					'PASSWORD' => $password_confirm,
					'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']),

					'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey)
				);
			}		

# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
				$emailer->assign_vars(array(
					'SITENAME' => $board_config['sitename'],
					'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']),
					'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)),
					'PASSWORD' => $password_confirm,
					'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']),

					'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey)
				);

#
#-----[ FIND ]------------------------------------------ 
#
display_avatar_gallery($mode,

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
$coppa, $username

# 
#-----[ IN-LINE REPLACE WITH ]------------------------------------------ 
#
$username

#
#-----[ FIND ]------------------------------------------ 
#
	include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);

	if ( !isset($coppa) )
	{
		$coppa = FALSE;
	}

# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
	include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);

Geplaatst: 12 mei 2005, 20:53
door Muiter
Kan iemand mij vertellen in welk bestand wordt bekeken of de activeringscode juist of onjuist is? Welke bestanden zou ik opnieuw moeten bewerken om er zeker van te zijn dat het wel goed gaat werken?