Seite 1 von 1

Was mach ich mit meinen BBCodes falsch?

Verfasst: 08.05.2008 14:14
von Mirakle
Habe über die Files BBCode.html und posting_buttons.html neue BBCodes hinzugefügt. Aber irgendwie funzt des net.

Posting_Buttons.html

Code: Alles auswählen

Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[flash=]', '[/flash]','[size=]','[/size]','[left]','[/left]','[center]','[/center]','[right]','[/right]','[font=]','[/font]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
var imageTag = false;

// Helpline messages
var help_line = {
b: '{LA_BBCODE_B_HELP}',
i: '{LA_BBCODE_I_HELP}',
u: '{LA_BBCODE_U_HELP}',
q: '{LA_BBCODE_Q_HELP}',
c: '{LA_BBCODE_C_HELP}',
l: '{LA_BBCODE_L_HELP}',
o: '{LA_BBCODE_O_HELP}',
p: '{LA_BBCODE_P_HELP}',
w: '{LA_BBCODE_W_HELP}',
s: '{LA_BBCODE_S_HELP}',
f: '{LA_BBCODE_F_HELP}',
e: '{LA_BBCODE_E_HELP}',
d: '{LA_BBCODE_D_HELP}',
t: '{LA_BBCODE_T_HELP}',
ft: '[font=Schriftart]TEXT[/font]',
al: '[left]TEXT[/left]',
ac: '[center]TEXT[/center]',
ar: '[right]TEXT[/right]',

zoom ------------bissi was weg gelassen :)

<span class="genmed nowrap"><select style="height:18px; background-color:#BDDAF3" class="gensmall" name="addbbcode77" onchange="bbfontstyle('[font=' + this.form.addbbcode77.options[this.form.addbbcode77.selectedIndex].value + ']', '[/font]');this.form.addbbcode77.selectedIndex = 0;" onmouseover="helpline('ft');" onmouseout="helpline('tip');">
<option selected="selected" value="">Schriftart:</option>
<option style="font-family: Arial" value="Arial">Arial</option>
<option style="font-family: Arial Black" value="Arial Black">Arial Black</option>
<option style="font-family: Century Gothic" value="Century Gothic">Century Gothic</option>
<option style="font-family: Comic Sans MS" value="Comic Sans MS">Comic Sans MS</option>
<option style="font-family: Georgia" value="Georgia">Georgia</option>
<option style="font-family: Verdana" value="Verdana">Verdana</option>
<option style="font-family: Courier New" value="Courier New">Courier New</option>
<option style="font-family: Times New Roman" value="Times New Roman">Times New Roman</option>
<option style="font-family: Trebuchet MS" value="Trebuchet MS">Trebuchet MS</option>
<option style="font-family: Impact" value="Impact">Impact</option>
</select></span>
<img src="http://onfire.homeip.net/pics/images/left1.gif" height="25" type="image" border="1" accesskey="al" name="addlitsitem" onclick="bbstyle(22)" onmouseover="helpline('al')" onmouseout="helpline('tip')" />
<img src="http://onfire.homeip.net/pics/images/center1.gif" height="25" type="image" border="1" accesskey="ac" name="addlitsitem" onclick="bbstyle(24)" onmouseover="helpline('ac')" onmouseout="helpline('tip')" />
<img src="http://onfire.homeip.net/pics/images/right1.gif" height="25" type="image" border="1" accesskey="ar" name="addlitsitem" onclick="bbstyle(26)" onmouseover="helpline('ar')" onmouseout="helpline('tip')" />[/code]

bbcode.html

Code: Alles auswählen

<!-- BEGIN size --><span style="font-size: {SIZE}%; line-height: normal">{TEXT}</span><!-- END size -->

<!-- BEGIN font --><span style="font-family: {FONT}">{TEXT}</span><!-- END font -->

<!-- BEGIN left --><div align="left">{TEXT}</div><!-- END left -->

<!-- BEGIN center --><div align="center">{TEXT}</div><!-- END center -->

<!-- BEGIN right --><div align="right">{TEXT}</div><!-- END right -->

<!-- BEGIN img --><img src="{URL}" alt="{L_IMAGE}" /><!-- END img -->
Wenn ich nun im Editor Texte mit font oder left center right formatieren möchte kommt dabei nur das hier raus:

[font=Arial Black]test[/font]
[left]test[/left]
[center]test[/center]
[right]test[/right]

Ich weis mir keinen Rat, habe schon daran gedacht evtl. mal im .css die Fontfamilien per Style vor zu istallieren, aber sie werden ja ebenfalls schon in der dropdownliste richtig ausgegeben wobei ich sehe das es funktionieren könnte. Aber im Editor gehts net.

Ich muss doch nicht wirklich jeden der Befehle in den Custom BBCode Editor hauen oder?

Hat einer von Euch nen Plan warum das net funzen will?

Mira

Verfasst: 08.05.2008 14:36
von Mirakle
Also ich habe jetzt mal den Weg inclusive der custom BBCodes gemacht jetzt funzt es einwandfrei. Darf diese halt nur nicht anzeigen.

Verfasst: 05.02.2009 00:32
von dieweltist
Doch, die darfst Du anzeigen, wenn Du die gewünschten BB-Codes einfach nur über den Adminbereich (BEITRÄGE) hinzufügst, anstatt Dateien zu verändern. Siehe dazu hier: Klick!. Übrigens werde ich in Kürze im diesbezüglichen verlinkten Thread BB-Codes für Dropdownlisten veröffentlichen.