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 ]-------------------------------------------------- 
# 
	// [center] and [/center] for centered text. 
	$text = str_replace("[center:$uid]", $bbcode_tpl['center_open'], $text);
	$text = str_replace("[/center:$uid]", $bbcode_tpl['center_close'], $text);
# 
#-----[ FINDE ]------------------------------------------ 
#
	// [i] and [/i] for italicizing text.
	$text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);
# 
#-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
# 
	// [center] and [/center] for centered text.
	$text = preg_replace("#\[center\](.*?)\[/center\]#si", "[center:$uid]\\1[/center:$uid]", $text);
# 
#-----[ ÖFFNEN ]------------------------------------------ 
#
# posting.php
# 
#-----[ FINDE ]------------------------------------------ 
#
	'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
# 
#-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
# 
	'L_BBCODE_Y_HELP' => $lang['bbcode_y_help'], 
# 
#-----[ ÖFFNEN ]------------------------------------------ 
#
# privmsg.php
# 
#-----[ FINDE ]------------------------------------------ 
#
	'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
# 
#-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
# 
	'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 ]-------------------------------------------------- 
# 
$lang['bbcode_y_help'] = 'Zentriert: [center]text[/center] (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 center_open --><div align="center"><!-- END center_open -->
	<!-- BEGIN center_close --></div><!-- END center_close -->
# 
#-----[ ÖFFNEN ]------------------------------------------ 
#
# templates/subSilver/posting_body.tpl
# 
#-----[ FINDE ]------------------------------------------ 
#
f_help = "{L_BBCODE_F_HELP}";
# 
#-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
# 
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 ]-------------------------------------------------- 
# 
,'[center]','[/center]'
# 
#-----[ 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 ]-------------------------------------------------- 
# 
# siehe "Notiz" am Anfang dieser Anleitung
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="y" name="addbbcode18" value=" Center " 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 ]-------------------------------------------------- 
#
# siehe "Notiz" am Anfang dieser Anleitung
			<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 ]-------------------------------------------------- 
#
# siehe "Notiz" am Anfang dieser Anleitung
			</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 ]-------------------------------------------------- 
# 
# siehe "Notiz" am Anfang dieser Anleitung
                    </span></td> 
                </tr> 
                <tr> 
                  <td colspan="9"> 
# 
#-----[ FINDE und erhöhe colspan-Wert ]-------------------------------------------------- 
# 
# siehe "Notiz" am Anfang dieser Anleitung
                </tr> 
                <tr> 
                  <td colspan="9"> <span class="gensmall"> 
# 
#-----[ FINDE und erhöhe colspan-Wert ]-------------------------------------------------- 
# 
# siehe "Notiz" am Anfang dieser Anleitung
                </tr> 
                <tr> 
                  <td colspan="9"><span class="gen"> 
[/code]
bin nach der Anleitung vorgegangen. Habs jetzt schon 2-3 mal durchgemacht.  
