Seite 1 von 2
Funktionen bei BB aber keine Knöpfe!
Verfasst: 17.10.2006 23:32
von achim89
Ich funktionen für BBCodes eigebaut wie fett oder unterstrichen
aber leider werden für "center" "shadow" "glow" "youtube" keine buttons angezeigt die dann zum beispiel bei klick
anzeigen sollen
kann mir bitte jemand weiterhelfen?
Verfasst: 17.10.2006 23:37
von SoLo1905
1. KB:frage_recht
2. in die passende stelle in der posting_body.tpl

in der suche = die antwort wo genau, wenn du es nicht wissen solltest
Code: Alles auswählen
<td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="BUTTONTEXT" style="text-decoration: none; width: 40px" onClick="javascript:bbfontstyle('[beispiel]', '[/beispiel]');" onMouseOver="" /></span></td>
Verfasst: 17.10.2006 23:40
von achim89
ich hab die suche schon benutzt
ich fand eine antwort mit bbcode.tpl und da waren alle einträge vorhanden
da fand ich mich nicht zurecht
DANKE!

Verfasst: 17.10.2006 23:54
von SoLo1905
Öffne
posting_body.tpl
Finde
Code: Alles auswählen
<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>
Füge darunter
Code: Alles auswählen
<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode16" value="Youtube" style="text-decoration: none; width: 40px" onClick="javascript:bbfontstyle('[youtube]','[/youtube]');" onMouseOver="" />
</span></td>
Füge darunter
Code: Alles auswählen
<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode16" value="center" style="text-decoration: none; width: 40px" onClick="javascript:bbfontstyle('[center]','[/center]');" onMouseOver="" />
</span></td>
Füge darunter
Code: Alles auswählen
<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode16" value="glow" style="text-decoration: none; width: 40px" onClick="javascript:bbfontstyle('[glow]','[/glow]');" onMouseOver="" />
</span></td>
Füge darunter
Code: Alles auswählen
<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode16" value="Shadow" style="text-decoration: none; width: 40px" onClick="javascript:bbfontstyle('[shadow]','[/shadow]');" onMouseOver="" />
</span></td>
Verfasst: 17.10.2006 23:57
von achim89
danke nochmal

Verfasst: 18.10.2006 13:38
von SoLo1905
hat alles geklappt?
Verfasst: 18.10.2006 13:52
von achim89
ja, der youtube und center gehen, die anderen net, is ja auch egal
hauptsache ecenter und youtube, weil glow braucht man nich wirklich
Verfasst: 18.10.2006 14:17
von SoLo1905
ehm musst du beim posten [glow]text[/glow] oder wie ist das?? sollte eigentlich gehen... kann auch sein das nur [glow] oder so ist^^ wie bei bbcode [br]
Verfasst: 18.10.2006 14:19
von achim89
ne, normalerweise
[glow=red]für roten text[/glow]
Verfasst: 18.10.2006 14:30
von SoLo1905
glow blue usw. gibt es auch??
dann musst du anstadt
Code: Alles auswählen
<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode16" value="Glow" style="text-decoration: none; width: 40px" onClick="javascript:bbfontstyle('[glow]','[/glow]');" onMouseOver="" />
</span></td>
dieses machen für z.B: rot
Code: Alles auswählen
<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode16" value="Glow" style="text-decoration: none; width: 40px" onClick="javascript:bbfontstyle('[glow=red]','[/glow]');" onMouseOver="" />
</span></td>