close

Вход

Забыли?

вход по аккаунту

?

SpoilerphpBB2

код для вставкиСкачать
Добавляет bbcode cпойлера в phpBB 2.0.x
нОХЯЮМХЕ: дНАЮБКЪЕР bbcode ЯОНИКЕПЮ БХДЮ
[spoiler]ЯЙПШРШИ РЕЙЯР[/spoiler]
[spoiler="мЮХЛЕМНБЮМХЕ"]ЯЙПШРШИ РЕЙЯР[/spoiler]
хмярпсйжхъ
#-----[ нрйпшрэ ]-----------------------------------------#
includes/bbcode.php
#
#-----[ мюирх ]-----------------------------------------#
$bbcode_tpl['quote_open'] = str_replace('{L_QUOTE}',
$lang['Quote'], $bbcode_tpl['quote_open']);
#
#-----[ оняке, днаюбхрэ ]-----------------------------------------#
// Begin Spoiler BBcode Mod
$bbcode_tpl['spoiler_open'] = str_replace('{L_SPOILER}',
$lang['Spoiler'], $bbcode_tpl['spoiler_open']);
$bbcode_tpl['spoiler_username_open'] = str_replace('{L_SPOILER}',
$lang['Spoiler'], $bbcode_tpl['spoiler_username_open']);
$bbcode_tpl['spoiler_username_open'] = str_replace('{USERNAME}',
'\\1', $bbcode_tpl['spoiler_username_open']);
// End Spoiler BBCode
#
#-----[ мюирх ]-----------------------------------------#
// [b] and [/b] for bolding text.
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text);
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);
#
#-----[ оепед, днаюбхрэ ]-----------------------------------------#
// Start Spoiler BBCode Mod
// [spoiler] and [/spoiler] for entering spoiled text.
$text = str_replace("[spoiler:$uid]", $bbcode_tpl['spoiler_open'],
$text);
$text = str_replace("[/spoiler:$uid]",
$bbcode_tpl['spoiler_close'], $text);
$text = preg_replace("/\[spoiler:$uid=\"(.*?)\"\]/si",
$bbcode_tpl['spoiler_username_open'], $text);
// Start Spoiler BBCode Mod
#
#-----[ мюирх ]-----------------------------------------#
// [b] and [/b] for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si",
"[b:$uid]\\1[/b:$uid]", $text);
#
#-----[ оепед, днаюбхрэ ]-----------------------------------------#
// Begin Spoiler BBcode Mod
// [spoiler] and [/spoiler] for setting spoiler-textblocks
$text = bbencode_first_pass_pda($text, $uid, '[spoiler]',
'[/spoiler]', '', false, '');
$text = bbencode_first_pass_pda($text, $uid,
'/\[spoiler=\\\\"(.*?)\\\\"\]/is', '[/spoiler]', '', false, '',
"[spoiler:$uid=\\\"\\1\\\"]");
// End Spoiler BBcode Mod
#
#-----[ нрйпшрэ ]-----------------------------------------#
templates/subSilver/bbcode.tpl
#
#-----[ мюирх ]-----------------------------------------#
<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->
#
#-----[ оепед, днаюбхрэ ]-----------------------------------------#
<!-- 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">
<span class="genmed"><b>{L_SPOILER}:</b></span> <input type="button"
value="оНЙЮГЮРЭ" style="width:60px;fontsize:10px;margin:0px;padding:0px;" onClick="var el =
this.parentNode.parentNode.getElementsByTagName('div')[2]; var v =
el.style.display != 'none'; el.style.display = v ? 'none' : 'block';
this.value = (v ? 'оНЙЮГЮРЭ' : 'яЙПШРЭ'); ">
</div>
<div class="code" style="padding: 5px;">
<div style="display: none;">
<!-- END spoiler_open -->
<!-- BEGIN spoiler_close -->
</div>
</div>
</div>
</span>
</td>
</tr>
</table>
<!-- END spoiler_close -->
<!-- BEGIN spoiler_username_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">
<span class="genmed"><b>{USERNAME}:</b></span> <input type="button"
value="оНЙЮГЮРЭ" style="width:60px;fontsize:10px;margin:0px;padding:0px;" onClick="var el =
this.parentNode.parentNode.getElementsByTagName('div')[2]; var v =
el.style.display != 'none'; el.style.display = v ? 'none' : 'block';
this.value = (v ? 'оНЙЮГЮРЭ' : 'яЙПШРЭ'); ">
</div>
<div class="code" style="padding: 5px;">
<div style="display: none;">
<!-- END spoiler_username_open -->
<!-- BEGIN spoiler_username_close -->
</div>
</div>
</div>
</span>
</td>
</tr>
</table><!-- END spoiler_username_close -->
#
#-----[ нрйпшрэ ]-----------------------------------------#
templates/subSilver/posting_body.tpl
#
#-----[ мюирх ]-----------------------------------------#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ оняке, днаюбхрэ ]-----------------------------------------#
r_help = "{L_BBCODE_R_HELP}";
#
#-----[ мюирх ]-----------------------------------------#
('[b]','[/b]','[i]','[/i]',
#
#-----[ б щрни кхмхх мюирх ]------------------------------------------
#
'[/url]'
#
#-----[ оняке, днаюбхрэ ]-----------------------------------------# If you have other added BBcode then move this to the last place.
,'[spoiler]','[/spoiler]'
#
#-----[ мюирх ]-----------------------------------------#
<td><span class="genmed">
<input type="button" class="button" accesskey="w"
name="addbbcode16" value="URL" style="text-decoration: underline; width:
40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>
#
#-----[ оняке, днаюбхрэ ]-----------------------------------------#If you already have an '18' BBcode, manually change '18' to the next
even number that you haven't got. e.g. '20'
<td><span class="genmed">
<input type="button" class="button" accesskey="r"
name="addbbcode18" value="Spoiler" style="width: 60px"
onClick="bbstyle(18)" onMouseOver="helpline('r')" />
</span></td>
#
#-----[ мюирх ]-----------------------------------------#
<select name="addbbcode18"
onChange="bbfontstyle('[color=' +
this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value
+ ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
#
#-----[ гюлемхрэ мю ]-----------------------------------------#
<select name="addbbcode20"
onChange="bbfontstyle('[color=' +
this.form.addbbcode18.options[this.form.addbbcode20.selectedIndex].value
+ ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
#
#-----[ мюирх ]-----------------------------------------#
</select> &nbsp;{L_FONT_SIZE}:<select
name="addbbcode20" onChange="bbfontstyle('[size=' +
this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value
+ ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ гюлемхрэ мю ]-----------------------------------------#
</select> &nbsp;{L_FONT_SIZE}:<select
name="addbbcode20" onChange="bbfontstyle('[size=' +
this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value
+ ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ нрйпшрэ ]-----------------------------------------#
posting.php
#
#-----[ мюирх ]-----------------------------------------#
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
#-----[ оняке, днаюбхрэ ]-----------------------------------------#
'L_BBCODE_R_HELP' => $lang['bbcode_r_help'],
#
#-----[ нрйпшрэ ]-----------------------------------------#
language/lang_english/lang_main.php
#
#-----[ мюирх ]-----------------------------------------#
$lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
#
#-----[ оняке, днаюбхрэ ]-----------------------------------------#
$lang['bbcode_r_help'] = "Text inside Spoiler: [spoiler]spoiler
text[/spoiler] (alt+r)";
#
#-----[ мюирх ]-----------------------------------------#
$lang['Code'] = 'Code'; // comes before bbcode code output.
#
#-----[ оняке, днаюбхрэ ]-----------------------------------------#
$lang['Spoiler'] = 'Spoiler'; // comes before bbcode spoiler output.
#
#-----[ нрйпшрэ ]-----------------------------------------#
language/lang_russian/lang_main.php
#
#-----[ мюирх ]-----------------------------------------#
$lang['bbcode_f_help'] = 'пЮГЛЕП ЬПХТРЮ: [size=x-small]ЛЮКЕМЭЙХИ
РЕЙЯР[/size]';
#
#-----[ оняке, днаюбхрэ ]-----------------------------------------#
$lang['bbcode_r_help'] = "яЙПШРШИ РЕЙЯР: [spoiler]ЯЙПШРШИ РЕЙЯР[/spoiler]
(alt+r)";
#
#-----[ мюирх ]-----------------------------------------#
$lang['Code'] = 'йНД'; // comes before bbcode code output.
#
#-----[ оняке, днаюбхрэ ]-----------------------------------------#
$lang['Spoiler'] = 'яЙПШРШИ РЕЙЯР'; // comes before bbcode spoiler
output.
#
#-----[ янупюмхрэ бяе тюикш ]-----------------------------------------#
Автор
suncrash
Документ
Категория
Информационные технологии
Просмотров
26
Размер файла
8 Кб
Теги
spoilerphpbb2
1/--страниц
Пожаловаться на содержимое документа