Abra admin/applications/core/modules_public/global/login.php e localize:
Código PHP:
if( $method == 'show' )
{
$this->registry->getClass('output')->redirectScreen( $true_words, $this->settings['base_url'] );
}
else
{
$this->registry->getClass('output')->silentRedirect( $this->settings['board_url'] . '/index.php' );
}
Para mandar o novo usuário para os Termos de Uso, substitua por:
Código PHP:
if( $method == 'show' AND $this->request['fromreg'] != 1 )
{
$this->registry->getClass('output')->redirectScreen( $true_words, $this->settings['base_url'] );
}
else if ( $method == 'show' AND $this->request['fromreg'] == 1 )
{
$this->registry->getClass('output')->redirectScreen( $true_words, $this->settings['base_url']."app=tos" );
}
else
{
$this->registry->getClass('output')->silentRedirect( $this->settings['board_url'] . '/index.php' );
}
Agora vamos fazer com que após o membro concordar com os termos ele seja redirecionado a index do forum:
Abra o arquivo admin\applications_addon\other\tos\modules_public\ tos\form.php e localize:
Código PHP:
$this->registry->getClass('output')->redirectScreen( $this->lang->words['tos_agreed'], "{$this->memberData['sostos_url']}" );
Altere para:
Código PHP:
$this->registry->getClass('output')->redirectScreen( $this->lang->words['tos_agreed'], $this->settings['base_url'] );
créditos: Adriano
Fonte: SOSInvision