#################################################################
## MOD İSMİ: Spoiler BBcode Mod
## MOD YAZARI: D2K < [email protected] > https://tik.lat/EsAX2
##
## MOD AÇIKLAMASI:
## Adds a spoiler tag to your forum.
## Has a button for showing or hiding the spoiler.
## The Spoiler Tag can contain URLs, Images etc. as normal posts can.
##
## MOD VERSİYONU: 1.0.0
##
## KURULUM SEVİYESİ : KOLAY
## KURULUM SÜRESİ : 5 DK
## Files To Edit: includes/bbcode.php
## templates/subSilver/bbcode.tpl,
## templates/subSilver/posting_body.tpl
## posting.php
## language/lang_english/lang_main.php
##
## Included Files: (n/a)
##############################################################
## This mod is the first version.
## I do not know anything about compatibility problems.
## If you use other Styles than subSilver, you have to modify the files of these styles accordingly.
## If you have other languages than English, apply patch to language files accordingly.
##############################################################
## Authors Notes: tested with phpBB2 v2.0.11
##This Mod is compatible with Easymod by Nuttzy
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
// and for bolding text.
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text);
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin 'SPOILER BBcode MOD'
//
for spoiler-textbocks
$text = str_replace("[spoiler:$uid]", $bbcode_tpl['spoiler_open'], $text);
$text = str_replace("[/spoiler:$uid]", $bbcode_tpl['spoiler_close'], $text);
// End 'SPOILER BBcode MOD'
#
#-----[ FIND ]------------------------------------------
#
// and for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin 'SPOILER BBcode MOD'
//
for setting spoiler-textblocks
$text = preg_replace("#\[spoiler\](.*?)\[/spoiler\]#si", "[spoiler:$uid]\\1[/spoiler:$uid]", $text);
// End 'SPOILER BBcode MOD'
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN spoiler_open -->
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td>
<span style="font-size: 11px;">
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
<b>Spoiler:</b> <input type="button" value="Show" style="width:45px;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 = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<p>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px">
<div style="display: none;">
<!-- END spoiler_open -->
<!-- BEGIN spoiler_close -->
</div>
</p>
</div>
</div>
</span>
</td>
</tr>
</table>
<!-- END spoiler_close -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
r_help = "{L_BBCODE_R_HELP}";
#
#-----[ FIND ]------------------------------------------
#
('','','','',
#
#-----[IN-LINE FIND ]------------------------------------------
#
'
## MOD İSMİ: Spoiler BBcode Mod
## MOD YAZARI: D2K < [email protected] > https://tik.lat/EsAX2
##
## MOD AÇIKLAMASI:
## Adds a spoiler tag to your forum.
## Has a button for showing or hiding the spoiler.
## The Spoiler Tag can contain URLs, Images etc. as normal posts can.
##
## MOD VERSİYONU: 1.0.0
##
## KURULUM SEVİYESİ : KOLAY
## KURULUM SÜRESİ : 5 DK
## Files To Edit: includes/bbcode.php
## templates/subSilver/bbcode.tpl,
## templates/subSilver/posting_body.tpl
## posting.php
## language/lang_english/lang_main.php
##
## Included Files: (n/a)
##############################################################
## This mod is the first version.
## I do not know anything about compatibility problems.
## If you use other Styles than subSilver, you have to modify the files of these styles accordingly.
## If you have other languages than English, apply patch to language files accordingly.
##############################################################
## Authors Notes: tested with phpBB2 v2.0.11
##This Mod is compatible with Easymod by Nuttzy
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
// and for bolding text.
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text);
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin 'SPOILER BBcode MOD'
//
and
$text = str_replace("[spoiler:$uid]", $bbcode_tpl['spoiler_open'], $text);
$text = str_replace("[/spoiler:$uid]", $bbcode_tpl['spoiler_close'], $text);
// End 'SPOILER BBcode MOD'
#
#-----[ FIND ]------------------------------------------
#
// and for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin 'SPOILER BBcode MOD'
//
and
$text = preg_replace("#\[spoiler\](.*?)\[/spoiler\]#si", "[spoiler:$uid]\\1[/spoiler:$uid]", $text);
// End 'SPOILER BBcode MOD'
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN spoiler_open -->
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td>
<span style="font-size: 11px;">
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
<b>Spoiler:</b> <input type="button" value="Show" style="width:45px;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 = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<p>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px">
<div style="display: none;">
<!-- END spoiler_open -->
<!-- BEGIN spoiler_close -->
</div>
</p>
</div>
</div>
</span>
</td>
</tr>
</table>
<!-- END spoiler_close -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
r_help = "{L_BBCODE_R_HELP}";
#
#-----[ FIND ]------------------------------------------
#
('','','','',
#
#-----[IN-LINE FIND ]------------------------------------------
#
'