Autor Tópico: Spoiler BBCODE v1.1.1 - 1.1.X  (Lida 6815 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
Spoiler BBCODE v1.1.1 - 1.1.X
« em: 24 de Fevereiro de 2011, 01:36 »
Mod Name:   Spoiler BBCODE v1.1.3
Link Mod : http://custom.simplemachines.org/mods/index.php?mod=2330
Created By:  William L
Type:    Posting
Latest Version:    1.1.3
Compatible With: 1.1.11, 2.0 RC2, 2.0 RC3



Configuração Manual é para 1.1.x

/Sources/Subs.php

Código: [Seleccione]
array( 'tag' => 'white', 'before' => '<span style="color: white;">', 'after' => '</span>', ),
Código: [Seleccione]
array( 'tag' => 'spoiler', 'before' => '<div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><b>' . $txt['spoiler'] . '</b> ' . $txt['spoiler_for'] . ' <i>' . $txt['spoiler_default_for'] . '</i>: <input type="button" value="' . $txt['spoiler_show_button'] . '" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName(' . "'div'" . ')[1].getElementsByTagName(' . "'div'" . ')[0].style.display != ' . "''" . ') { this.parentNode.parentNode.getElementsByTagName(' . "'div'" . ')[1].getElementsByTagName(' . "'div'" . ')[0].style.display = ' . "''" . ';        this.innerText = ' . "''" . '; this.value = ' . "'$txt[spoiler_hide_button]'" . '; } else { this.parentNode.parentNode.getElementsByTagName(' . "'div'" . ')[1].getElementsByTagName(' . "'div'" . ')[0].style.display = ' . "'none'" . '; this.innerText = ' . "''" . '; this.value = ' . "'$txt[spoiler_show_button]'" . '; }"></div><div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none;">', 'after' => '</div></div></div>',            ), array( 'tag' => 'spoiler', 'type' => 'unparsed_equals', 'before' => '<div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><b>' . $txt['spoiler'] . '</b> ' . $txt['spoiler_for'] .' <i>$1</i>: <input type="button" value="' . $txt['spoiler_show_button'] . '" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName(' . "'div'" . ')[1].getElementsByTagName(' . "'div'" . ')[0].style.display != ' . "''" . ') { this.parentNode.parentNode.getElementsByTagName(' . "'div'" . ')[1].getElementsByTagName(' . "'div'" . ')[0].style.display = ' . "''" . ';        this.innerText = ' . "''" . '; this.value = ' . "'$txt[spoiler_hide_button]'" . '; } else { this.parentNode.parentNode.getElementsByTagName(' . "'div'" . ')[1].getElementsByTagName(' . "'div'" . ')[0].style.display = ' . "'none'" . '; this.innerText = ' . "''" . '; this.value = ' . "'$txt[spoiler_show_button]'" . '; }"></div><div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none;">', 'after' => '</div></div></div>',            ),
Código: [Seleccione]
$disabled['email'] = true; $disabled['flash'] = true;
Código: [Seleccione]
// Disable spoiler if on 'printer friendly page' $disabled['spoiler'] = true;


./Themes/default/Post.template.php

Código: [Seleccione]
'flash' => array('code' => 'flash',
Código: [Seleccione]
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => $txt['spoiler']),


./Themes/default/style.css

Código: [Seleccione]
a:link
Código: [Seleccione]
.alt2{background: #E1E4F2;color: #000000;}.button{font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}.smallfont{font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}


./Themes/default/languages/Modifications.teuiodioma.php

Código: [Seleccione]
?>
Código: [Seleccione]
$txt['spoiler'] = 'Spoiler';
$txt['spoiler_default_for'] = 'Esconder';
$txt['spoiler_for'] = 'para';
$txt['spoiler_hide_button'] = 'Esconder';
$txt['spoiler_show_button'] = 'Mostrar';


"spoiler.gif" colocar na seguinte pasta"./Themes/default/images/bbc"
« Última modificação: 24 de Fevereiro de 2011, 01:39 por candidosa2 »