SMF 1.1.x (Móbulos Manual) > SMF 1.1.x Módulos Manual

Spoiler BBCODE v1.1.1 - 1.1.X

(1/1)

candidosa2:
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: ---array( 'tag' => 'white', 'before' => '<span style="color: white;">', 'after' => '</span>', ),
--- Fim de Código ---


--- Código: ---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>',            ),
--- Fim de Código ---


--- Código: ---$disabled['email'] = true; $disabled['flash'] = true;
--- Fim de Código ---


--- Código: ---// Disable spoiler if on 'printer friendly page' $disabled['spoiler'] = true;
--- Fim de Código ---



./Themes/default/Post.template.php


--- Código: ---'flash' => array('code' => 'flash',
--- Fim de Código ---


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



./Themes/default/style.css


--- Código: ---a:link
--- Fim de Código ---


--- Código: ---.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;}
--- Fim de Código ---



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


--- Código: ---?>
--- Fim de Código ---


--- Código: ---$txt['spoiler'] = 'Spoiler';
$txt['spoiler_default_for'] = 'Esconder';
$txt['spoiler_for'] = 'para';
$txt['spoiler_hide_button'] = 'Esconder';
$txt['spoiler_show_button'] = 'Mostrar';
--- Fim de Código ---


"spoiler.gif" colocar na seguinte pasta"./Themes/default/images/bbc"

Navegação

[0] Índice de mensagens

Ir para versão completa