Ik heb het dus weer opnieuw geïnstalleerd maar krijg deze fout:
Parse error: parse error in /data/members/free/tripod/nl/w/a/l/waltdisneydvdforum/htdocs/phpBB2/includes/bbcode.php(89) : eval()'d code on line 40
Bij een nieuw bericht. Dit staat er op regel 40 bij includes/bbcode.php:
Code: Selecteer alles
$hotkeys = array('', 'd', 'e', 'g', 'h', 'j', 'k', 'm', 'n', 'r', 't', 'v', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
Dit is de file van Spoiler_MOD_1.0:
Code: Selecteer alles
#################################################################
## MOD Title: Serienboard - spoiler BBcode Mod
## MOD Author: drphlox < drphlox@serienboard.com > (Christoph Reichert) http://www.serienboard.com/forum
##
## MOD Description:
## Adds a spoiler and a spoiler tag to your forum
## Text between tags is invisible till you highlight this block of text.
## spoiler Tag creates a block of invisible text, like the code tag. It can be read when highlighted.
## The spoiler tag has a button in the posting entry window for easy use.
## A Button for the spoiler tag will follow in later versions.
##
## MOD Version: 1.0.0
##
## Installation Level: medium to easy
## Installation Time: 15 Minutes
## Files To Edit: includes/bbcode.php
## templates/subSilver/bbcode.tpl,
## templates/subSilver/posting_body.tpl
## templates/SpacePilot3K/SpecePilot3K.css (optional)
## templates/SpacePilot3K/bbcode.tpl (optional)
## templates/SpacePilot3K/posting_body.tpl (optional)
## posting.php
## language/lang_english/lang_main.php
## language/lang_german/lang_main.php
##
## Included Files: (n/a)
##############################################################
## This mod enhances the spoiler BBcode MOD of Damien Heiser < damien@thenitelife.com >
## It adds the Textblock functionality, and parts for the SpacePilot3K Style.
## In Subsilver spoilertext will be white, on white background, for SpacePilot we used black on black.
## BEWARE: it does not work with older Opera Browsers.
## If you use other Styles than subSilver and SpacePilot3K, you have to modify the files of these styles accordingly.
## If you have other languages than above, apply patch to language files accordingly.
## WARNING: If you already added additional buttons for custom BBcodes this patch WILL NOT WORK!!!
## (you have to modify the parts for the buttons: posting_body.tpl, posting.php and lang_main.php to reflect the changes you made to these files before)
##############################################################
## Authors Notes: tested with phpBB2 ver 2.0.2/2.0.6/2.08 and addtional SpacePilot3K Style
## THIS MOD WON'T WORK WITH EASY MOD INSTALLER! YOU HAVE TO MADE CHANGES ON YOUR OWN!!!
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
// [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);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin 'spoiler BBcode MOD'
// [spoiler] and [/spoiler] 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'
// Begin 'spoiler in text BBcode MOD'
// [spoiler] and [/spoiler] for spoiler-text in side normal text
$text = str_replace("[spoiler:$uid]", $bbcode_tpl['spoiler_open'], $text);
$text = str_replace("[/spoiler:$uid]", $bbcode_tpl['spoiler_close'], $text);
// End 'spoiler in text BBcode MOD'
#
#-----[ FIND ]------------------------------------------
#
// [b] and [/b] for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin 'spoiler BBcode MOD'
// [spoiler] and [/spoiler] for setting spoiler-textblocks
$text = preg_replace("#\[spoiler\](.*?)\[/spoiler\]#si", "[spoiler:$uid]\\1[/spoiler:$uid]", $text);
// End 'spoiler BBcode MOD'
// Begin 'spoiler in text BBcode MOD'
// [spoiler] and [/spoiler] for setting spoiler-text inside normal text
$text = preg_replace("#\[spoiler\](.*?)\[/spoiler\]#si", "[spoiler:$uid]\\1[/spoiler:$uid]", $text);
// End 'spoiler in text 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;"><b>spoiler:</b></span></td>
</tr>
<tr>
<td style="font-size: 11px; color: #FAFAFA; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px"><!-- END spoiler_open -->
<!-- BEGIN spoiler_close -->
</td>
</tr>
</table>
<!-- END spoiler_close -->
<!-- BEGIN spoiler_open --><span style="color: FAFAFA; background-color: FAFAFA"><!-- END spoiler_open -->
<!-- BEGIN spoiler_close --></span><!-- END spoiler_close -->
#
#-----[ OPEN ]------------------------------------------
# This Part is optional. Only do this, when Space Template is installed. For all other Templates (except subSilver) do it accordingly. Maybe you have to made little changes on your own particularly at the "replace with" locations!
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
r_help = "{L_BBCODE_R_HELP}";
#
#-----[ FIND ]------------------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
','
','[img]','[/img]','
','');
#
#-----[ REPLACE WITH ]------------------------------------------
#
bbtags = new Array('
','','
','','
','','
','
','
','
','
','[img]','[/img]','
','','
- Spoiler: bekijk
- ','
');
#
#-----[ FIND ]------------------------------------------
#
<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>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<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>
#
#-----[ FIND ]------------------------------------------
#
<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
#
#-----[ REPLACE WITH ]------------------------------------------
#
<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
#
#-----[ FIND ]------------------------------------------
#
</select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ REPLACE WITH ]------------------------------------------
#
</select> {L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ OPEN ]------------------------------------------
# This Part is optional. Only do this, when Space Template is installed. For all other Templates (except subSilver) do it accordingly. Maybe you have to made little changes on your own particularly at the "color" locations!
templates/SpacePilot3K/SpacePilot3K.css
#
#-----[ FIND ]------------------------------------------
#
/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/* These lines are for the spoiler mod, each row must
have the color changed to match the background */
.spoiler {
color: #014669;
background-color: #014669;
border: #FFFFFF;
border-style: solid;
border-left-width: 1px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
}
#
#-----[ OPEN ]------------------------------------------
# This Part is optional. Only do this, when Space Template is installed. For all other Templates (except subSilver) do it accordingly. Maybe you have to made little changes on your own particularly at the "color" locations!
templates/SpacePilot3K/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;"><b>spoiler:</b></span></td>
</tr>
<tr>
<td class="spoiler"><!-- END spoiler_open -->
<!-- BEGIN spoiler_close -->
</td>
</tr>
</table>
<!-- END spoiler_close -->
<!-- BEGIN spoiler_open --><span style="color: 000000; background-color: 000000"><!-- END spoiler_open -->
<!-- BEGIN spoiler_close --></span><!-- END spoiler_close -->
#
#-----[ OPEN ]------------------------------------------
# This Part is optional. Only do this, when Space Template is installed. For all other Templates (except subSilver) do it accordingly. Maybe you have to made little changes on your own particularly at the "replace with" locations!
templates/SpacePilot3K/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
r_help = "{L_BBCODE_R_HELP}";
#
#-----[ FIND ]------------------------------------------
#
bbtags = new Array('
','','
','','
','','
','
','
','
','
','[img]','[/img]','
','');
#
#-----[ REPLACE WITH ]------------------------------------------
#
bbtags = new Array('
','','
','','
','','
','
','
','
','
','[img]','[/img]','
','','
- Spoiler: bekijk
- ','
');
#
#-----[ FIND ]------------------------------------------
#
<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>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<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>
#
#-----[ FIND ]------------------------------------------
#
<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
#
#-----[ REPLACE WITH ]------------------------------------------
#
<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
#
#-----[ FIND ]------------------------------------------
#
</select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ REPLACE WITH ]------------------------------------------
#
</select> {L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ OPEN ]------------------------------------------
# Once again this is for all Templates!
posting.php
#
#-----[ FIND ]------------------------------------------
#
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_BBCODE_R_HELP' => $lang['bbcode_r_help'],
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['bbcode_f_help'] = "Font size: [size=x-small]small text[/size]";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['bbcode_r_help'] = "spoiler inside text:
- Spoiler: bekijk
- spoiler text
(alt+r)";
#
#-----[ OPEN ]------------------------------------------
# Only do this if German language is installed. For all other languages do it accordingly.
language/lang_german/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['bbcode_f_help'] = "Schriftgröße: [size=x-small]Kleiner Text[/size]";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['bbcode_r_help'] = "spoiler im Text:
- Spoiler: bekijk
- spoiler Text
(alt+r)";
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM [/code]
Maar ik snap dus werkelijk niets meer vanaf
Code: Selecteer alles
#
#-----[ OPEN ]------------------------------------------
# This Part is optional. Only do this, when Space Template is installed. For all other Templates (except subSilver) do it accordingly. Maybe you have to made little changes on your own particularly at the "replace with" locations!
templates/subSilver/posting_body.tpl
Alvast bedankt.