Mod Name: Redirect your users when they activate their account
Created By: babjusi
Type: Administrative
First Created:October 06, 2008, 11:50:29 AM
Last Modified:October 10, 2008, 01:39:18 PM
Latest Version:0.1
Compatible With:1.1.6, 2.0 Beta 4
Total Downloads:3191
Manual
$sourcedir/Register.php
Pesquisar
function Activate()
{
global $db_prefix, $context, $txt, $modSettings, $scripturl, $sourcedir;
Alterar Por
function Activate()
{
global $db_prefix, $context, $txt, $modSettings, $scripturl, $sourcedir;
//Let us redirect users to where we want after they activate their account
if (!empty($modSettings['enable_activate_account_redirection']) && !empty($modSettings['activate_account_redirection_url']))
$_SESSION['login_url'] = $modSettings['activate_account_redirection_url'];
$sourcedir/ModSettings.php
Pesquisar
array('check', 'allow_guestAccess'),
Adicionar
array('check', 'allow_guestAccess'),
'',
array('check', 'enable_activate_account_redirection',
&$txt['enable_activate_account_redirection']),
array('text', 'activate_account_redirection_url', '35',
&$txt['activate_account_redirection_url']),
'',
./Themes/default/languages/Modifications.portuguese.php
?>
Adicionar
// The start of the language strings
$txt['enable_activate_account_redirection'] = 'activar o redireccionamento conta mod';
$txt['activate_account_redirection_url'] = 'Digite a URL completa. <div class="smalltext">Este é o url onde seus membros serão redirecionados para ativar sua conta após</div>';
./Themes/default/languages/Help.english.php
?>
Adicionar
// The start of the language strings
$helptxt['enable_activate_account_redirection'] = 'Here you can enable and disable the activate account redirection mod.';
$helptxt['activate_account_redirection_url'] = 'Here you can enter the full url to where you want your members to be redirected to after they activate their account. The url can be internal or external';