Autor Tópico: Ocultar Links  (Lida 5477 vezes)

0 Membros e 2 Visitantes estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Ocultar Links
« em: 23 de Maio de 2010, 09:19 »
Mod Name:: Yassak-mourning
Created By: !!kaos!!
Latest Version: 1.1.8
Download: http://custom.simplemachines.org/mods/index.php?mod=1674

./index.php

Código: [Seleccione]
'who' => array('Who.php', 'Who'),
Adicionar
Código: [Seleccione]
'yassak' => array('yassak.php', 'yassak'),

./Sources/Subs.php

Código: [Seleccione]
array(
            'tag' => 'iurl',
            'type' => 'unparsed_content',
            'content' => '<a href="$1">$1</a>',
            'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array('<br />' => ''));'),
         ),
         array(
            'tag' => 'iurl',
            'type' => 'unparsed_equals',
            'before' => '<a href="$1">',
            'after' => '</a>',
            'validate' => create_function('&$tag, &$data, $disabled', '
               if (substr($data, 0, 1) == '#')
                  $data = '#post_' . substr($data, 1);'),
            'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
            'disabled_after' => ' ($1)',
         ),

Código: [Seleccione]
array(
            'tag' => 'iurl',
            'type' => 'unparsed_content',
            'content' => $user_info['is_guest'] ? $txt['yassak_izinyok'] . " " . '<a href="' . $scripturl . '?action=yassak">$1</a>' : '<a href="$1">$1</a>',
            'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array('<br />' => ''));'),
         ),
         array(
            'tag' => 'iurl',
            'type' => 'unparsed_equals',
            'before' => $user_info['is_guest'] ? $txt['yassak_izinyok'] . " " . '<a href="' . $scripturl . '?action=yassak">' : '<a href="$1">',
            'after' => '</a>',
            'validate' => create_function('&$tag, &$data, $disabled', '
               if (substr($data, 0, 1) == '#')
                  $data = '#post_' . substr($data, 1);'),
            'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
            'disabled_after' => $user_info['is_guest'] ?&nbsp; '' :&nbsp; ' ($1)',
         ),

Código: [Seleccione]
         array(
            'tag' => 'url',
            'type' => 'unparsed_content',
            'content' => '<a href="$1" target="_blank">$1</a>',
            'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array('<br />' => ''));'),
         ),
         array(
            'tag' => 'url',
            'type' => 'unparsed_equals',
            'before' => '<a href="$1" target="_blank">',
            'after' => '</a>',
            'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
            'disabled_after' => ' ($1)',
         ),

Código: [Seleccione]
         array(
            'tag' => 'url',
            'type' => 'unparsed_content',
            'content' => $user_info['is_guest'] ? $txt['yassak_izinyok'] . " " . '<a href="' . $scripturl . '?action=yassak">$1</a>' : '<a href="$1" target="_blank">$1</a>',
            'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array('<br />' => ''));'),
         ),
         array(
            'tag' => 'url',
            'type' => 'unparsed_equals',
            'before' => $user_info['is_guest'] ? $txt['yassak_izinyok'] . " " . '<a href="' . $scripturl . '?action=yassak">' : '<a href="$1" target="_blank">',
            'after' => '</a>',
            'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
            'disabled_after' => $user_info['is_guest'] ?&nbsp; '' : ' ($1)',
         ),

./Themes/default/languages/Modifications.teuidioma.php

Código: [Seleccione]
?>
Código: [Seleccione]
//Begin Yassak Link By !!kaos!! translate candidosa2
$txt['welcome_guests'] = 'Bem-vindo Visitante';
$txt['yassak_link'] = 'Desculpa';
$txt['yassak_izinyok'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para ver links.';
$txt['yassak_gormek_icin'] = 'para ver o link.';
$txt['yassak_uyeol_girisyap'] = '<a href="' . $scripturl . '?action=register">Registar-se</a>&nbsp;or&nbsp;<a href="' . $scripturl . '?action=login">LEntrar</a>';
// End Yassak Link By !!kaos!! Suporte smfpt.net