Ir para conteúdo

Como remover o Aviso que Precisa de Licença no Painel de Admin.


Guest Lucky

Posts Recomendados

Vá para admin-> skin_cp-> cp_skin_global.php e encontrar:

 

 

if( !$this->settings['ipb_reg_number'] )
{
$this->lang->words['license_missing_info'] = sprintf( $this->lang->words['license_missing_info'], $this->settings['base_url'] . 'app=core&module=tools§ion=licensekey' );
$extra_class = 'force_license';
$license_html = <<


{$this->lang->words['license_missing_header']}

{$this->lang->words['license_missing_info']}

HTML;
}
else
{
$licenseData = $this->cache->getCache( 'licenseData' );
if( ( !$licenseData OR !$licenseData['key']['_expires'] OR $licenseData['key']['_expires'] < IPS_UNIX_TIME_NOW and $licenseData['key']['_expires'] != -1 ) AND !IPSCookie::get( 'ignore-license-notice' ) )
{
$extra_class = 'expired_license';
$license_html = <<



{$this->lang->words['license_expired_header']}

{$this->lang->words['license_expired_info']}

HTML;
}
}



 

e substituí-lo por esse:

 

 

/*
if( !$this->settings['ipb_reg_number'] )
{
$this->lang->words['license_missing_info'] = sprintf( $this->lang->words['license_missing_info'], $this->settings['base_url'] . 'app=core&module=tools§ion=licensekey' );
$extra_class = 'force_license';
$license_html = <<


{$this->lang->words['license_missing_header']}

{$this->lang->words['license_missing_info']}

HTML;
}
else
{
$licenseData = $this->cache->getCache( 'licenseData' );
if( ( !$licenseData OR !$licenseData['key']['_expires'] OR $licenseData['key']['_expires'] < IPS_UNIX_TIME_NOW and $licenseData['key']['_expires'] != -1 ) AND !IPSCookie::get( 'ignore-license-notice' ) )
{
$extra_class = 'expired_license';
$license_html = <<



{$this->lang->words['license_expired_header']}

{$this->lang->words['license_expired_info']}

HTML;
}
}
*/



 

Salve e vá para Admin -> applications -> core -> extensions -> dashboardNotifications.php e encontrar:

 

if( ! $this->settings['ipb_reg_number'] )
{
$entries[] = array( $this->lang->words['lc_title_nokey'], sprintf( $this->lang->words['lc_msg_nokey'], "{$this->settings['base_url']}module=tools§ion=licensekey" ) );
}
else
{
/* Is the Spam Service Working?
if ( $this->settings['spam_service_enabled'] )
{
$GOT_SPAM_ERROR = false;
/* Are we entitled to it?
$licenseData = $this->cache->getCache( 'licenseData' );
if ( is_array( $licenseData['ipbMain'] ) && count( $licenseData['ipbMain'] ) )
{
foreach ( $licenseData['ipbMain'] as $data )
{
if ( $data['name'] == 'Spam Monitoring Service' && $data['status'] != 'Ok' )
{
$disableLink = $this->settings['base_url'] . "app=core&module=settings§ion=settings&do=findsetting&key=spamservice";
if ( is_numeric( $data['_expires'] ) && time() > $data['_expires'] )
{
$entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_expired'], $disableLink ) );
}
else
{
$entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_unavailable'], $disableLink ) );
}
$GOT_SPAM_ERROR = true;
break;
}
}
}
if ( ! $GOT_SPAM_ERROR )
{
/* Get last 5 logs, and if all 5 are errors, show message
$_errors = 0;
$_entries = 0;
$_lastError = '';
$this->DB->build( array( 'select' => 'log_code, log_msg', 'from' => 'spam_service_log', 'order' => 'id DESC', 'limit' => 5 ) );
$this->DB->execute();
while( $_r = $this->DB->fetch() )
{
$_entries++;
if( $_r['log_code'] === '0' )
{
$_errors++;
if( !$_lastError )
{
$_lastError = $_r['log_msg'];
}
}
}
if( $_entries > 0 && $_errors == $_entries )
{
$entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_error_msg'], $_lastError ) );
}
}
}
/* If it's disabled, are we entitiled to it?
else
{
$licenseData = $this->cache->getCache( 'licenseData' );
if ( is_array( $licenseData['ipbMain'] ) && count( $licenseData['ipbMain'] ) )
{
foreach ( $licenseData['ipbMain'] as $data )
{
if ( $data['name'] == 'Spam Monitoring Service' && $data['status'] == 'Ok' )
{
$entries[] = array( $this->lang->words['spam_service_disabled'], $this->lang->words['spam_service_disabled_msg'] );
break;
}
}
}
}
}

 

 

e Substitua por esse:

 

/* if( ! $this->settings['ipb_reg_number'] )
{
$entries[] = array( $this->lang->words['lc_title_nokey'], sprintf( $this->lang->words['lc_msg_nokey'], "{$this->settings['base_url']}module=tools§ion=licensekey" ) );
}
else
{
/* Is the Spam Service Working?
if ( $this->settings['spam_service_enabled'] )
{
$GOT_SPAM_ERROR = false;
/* Are we entitled to it?
$licenseData = $this->cache->getCache( 'licenseData' );
if ( is_array( $licenseData['ipbMain'] ) && count( $licenseData['ipbMain'] ) )
{
foreach ( $licenseData['ipbMain'] as $data )
{
if ( $data['name'] == 'Spam Monitoring Service' && $data['status'] != 'Ok' )
{
$disableLink = $this->settings['base_url'] . "app=core&module=settings§ion=settings&do=findsetting&key=spamservice";
if ( is_numeric( $data['_expires'] ) && time() > $data['_expires'] )
{
$entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_expired'], $disableLink ) );
}
else
{
$entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_unavailable'], $disableLink ) );
}
$GOT_SPAM_ERROR = true;
break;
}
}
}
if ( ! $GOT_SPAM_ERROR )
{
/* Get last 5 logs, and if all 5 are errors, show message
$_errors = 0;
$_entries = 0;
$_lastError = '';
$this->DB->build( array( 'select' => 'log_code, log_msg', 'from' => 'spam_service_log', 'order' => 'id DESC', 'limit' => 5 ) );
$this->DB->execute();
while( $_r = $this->DB->fetch() )
{
$_entries++;
if( $_r['log_code'] === '0' )
{
$_errors++;
if( !$_lastError )
{
$_lastError = $_r['log_msg'];
}
}
}
if( $_entries > 0 && $_errors == $_entries )
{
$entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_error_msg'], $_lastError ) );
}
}
}
/* If it's disabled, are we entitiled to it?
else
{
$licenseData = $this->cache->getCache( 'licenseData' );
if ( is_array( $licenseData['ipbMain'] ) && count( $licenseData['ipbMain'] ) )
{
foreach ( $licenseData['ipbMain'] as $data )
{
if ( $data['name'] == 'Spam Monitoring Service' && $data['status'] == 'Ok' )
{
$entries[] = array( $this->lang->words['spam_service_disabled'], $this->lang->words['spam_service_disabled_msg'] );
break;
}
}
}
}
}
*/

 

 

Salve e Pronto.

Versões suportadas para remover o Aviso chato.

3.3 e 3.4

Link para o comentário
Compartilhar em outros sites

Participe da Conversa

Você pode postar agora e se cadastrar mais tarde. Se você tiver uma conta, a class='ipsType_brandedLink' href='https://gamersboard.com.br/login/' data-ipsDialog data-ipsDialog-size='medium' data-ipsDialog-title='Sign In Now'>acesse agora para postar com sua conta.
Observação: sua postagem exigirá aprovação do moderador antes de ficar visível.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.

Processando...
×
×
  • Criar Novo...