Mod Name: Spoiler BBCODE v1.1.3
Link Mod :
http://custom.simplemachines.org/mods/index.php?mod=2330Created 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.phparray( 'tag' => 'white', 'before' => '<span style="color: white;">', 'after' => '</span>', ),
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>', ),
$disabled['email'] = true; $disabled['flash'] = true;
// Disable spoiler if on 'printer friendly page' $disabled['spoiler'] = true;
./Themes/default/P
ost.template.php'flash' => array('code' => 'flash',
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => $txt['spoiler']),
./Themes/default/
style.cssa:link
.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?>
$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"