Autor Tópico: Redirecionar os utilizadores  (Lida 3268 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Redirecionar os utilizadores
« em: 07 de Janeiro de 2009, 08:22 »
$sourcedir/Register.php
Pesquisar
Código: [Seleccione]
function Activate()
{
global $db_prefix, $context, $txt, $modSettings, $scripturl, $sourcedir;

Adicionar
Código: [Seleccione]
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
Código: [Seleccione]
array('check', 'allow_guestAccess'),
Adicionar
Código: [Seleccione]
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_pt.php
Pesquisar
Código: [Seleccione]
?>
Adicionar
Código: [Seleccione]
// The start of the language strings portuguese translate Candidosa2
$txt['enable_activate_account_redirection'] = 'Activar conta redirecionamento ';
$txt['activate_account_redirection_url'] = 'Digite o URL completo. <div class="smalltext">Esta &eacute; a url onde seus membros ser&aacute; redirecionado para activar sua conta</div>';

./Themes/default/languages/Help.portuguese_pt.php
Pesquisar
Código: [Seleccione]
?>
Adicionar
Código: [Seleccione]
// The start of the language strings portuguese translate Candidosa2
$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';