Code: Alles auswählen
#
#-----[ ÖFFNEN ]------------------------------------------
#
# includes/bbcode.php
#
#-----[ FINDE ]------------------------------------------
#
// [i] and [/i] for italicizing text.
$text = str_replace("[i:$uid]", $bbcode_tpl['i_open'], $text);
$text = str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text);
#
#-----[ DARUNTER EINFÜGEN ]--------------------------------------------------
#
// [ralign] and [/ralign]
$text = str_replace("[ralign:$uid]", $bbcode_tpl['ralign_open'], $text);
$text = str_replace("[/ralign:$uid]", $bbcode_tpl['ralign_close'], $text);
#
#-----[ FINDE ]------------------------------------------
#
// [i] and [/i] for italicizing text.
$text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);
#
#-----[ DARUNTER EINFÜGEN ]--------------------------------------------------
#
// [ralign] and [/ralign]
$text = preg_replace("#\[ralign\](.*?)\[/ralign\]#si", "[ralign:$uid]\\1[/ralign:$uid]", $text);
#
#-----[ ÖFFNEN ]------------------------------------------
#
# posting.php/privmsg.php
#
#-----[ FINDE ]------------------------------------------
#
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
#-----[ DARUNTER EINFÜGEN ]--------------------------------------------------
#
# NOTIZ: Überprüfe, das "y" nicht schon benutzt wird.
'L_BBCODE_Y_HELP' => $lang['bbcode_y_help'],
#
#-----[ ÖFFNEN ]------------------------------------------
#
# languages/lang_german/lang_main.php
#
#-----[ FINDE ]------------------------------------------
#
$lang['bbcode_f_help'] = 'Schriftgrösse: [size=x-small]kleiner text[/size]';
#
#-----[ DARUNTER EINFÜGEN ]--------------------------------------------------
#
# NOTIZ: Überprüfe, das "y" nicht schon benutzt wird.
$lang['bbcode_y_help'] = 'Rechtsbündig: [ralign]text[/ralign] (alt+y)';
#
#-----[ ÖFFNEN ]------------------------------------------
#
# templates/xxx/bbcode.tpl
#
#-----[ FINDE ]------------------------------------------
#
<!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open -->
<!-- BEGIN i_close --></span><!-- END i_close -->
#
#-----[ DARUNTER EINFÜGEN ]--------------------------------------------------
#
<!-- BEGIN ralign_open --><div align="right"><!-- END ralign_open -->
<!-- BEGIN ralign_close --></div><!-- END ralign_close -->
#
#-----[ ÖFFNEN ]------------------------------------------
#
# templates/subSilver/posting_body.tpl
#
#-----[ FINDE ]------------------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ DARUNTER EINFÜGEN ]--------------------------------------------------
#
# NOTIZ: Überprüfe, das "y" nicht schon benutzt wird.
y_help = "{L_BBCODE_Y_HELP}";
#
#-----[ FINDE ]------------------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
','
','[img]','[/img]','
','');
#
#-----[ FINDE in dieser Zeile ]------------------------------------------
#
'
',''
#
#-----[ DANACH EINFÜGEN ]--------------------------------------------------
#
# NOTIZ: Die Reihenfolge muss dieselbe sein, wie die Buttons angeordnet sind.
,'[ralign]','[/ralign]'
#
#-----[ FINDE ]------------------------------------------
#
<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>
#
#-----[ DARUNTER EINFÜGEN ]--------------------------------------------------
#
NOTIZ: Wenn weitere BBcodes installiert sind, muss die Ziffer bei addbbcodeXX in zweier Schritten und in richtiger Abfolge erhöht werden.
Überprüfe, das "y" nicht schon benutzt wird.
<td><span class="genmed">
<input type="button" class="button" accesskey="y" name="addbbcode18" value=" Align R " style="width: 60px" onClick="bbstyle(18)" onMouseOver="helpline('y')" />
</span></td>
#
#-----[ FINDE ]------------------------------------------
#
<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
#
#-----[ MIT FOLGENDEM ERSETZEN ]--------------------------------------------------
#
NOTIZ: Wenn weitere BBcodes installiert sind, muss die Ziffer bei addbbcodeXX in zweier
Schritten und in richtiger Abfolge erhöht werden.
<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
#
#-----[ FINDE ]------------------------------------------
#
</select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ MIT FOLGENDEM ERSETZEN ]--------------------------------------------------
#
NOTIZ: Wenn weitere BBcodes installiert sind, muss die Ziffer bei addbbcodeXX in zweier
Schritten und in richtiger Abfolge erhöht werden.
</select> {L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ FINDE und erhöhe colspan-Wert ]--------------------------------------------------
#
# nach obigem Code sind bei einigen Tabellenspalten noch colspan-Werte gesetzt, die du
# gegebenfalls um x erhöhen musst (x = Anzahl der neuen BBcodes)[/code]