Seite 2 von 2
Re: Hilfe bei BBCode
Verfasst: 12.05.2009 22:04
von Tim
Hallo 4seven,
ok habe ich gemacht, leider wird es auch in prosilver nicht angezeigt.
Ich zeige dir hier mal den Quellcodeauszug, vielleicht habe ich ja was falsch gemacht.
Code: Alles auswählen
// Define the bbCode tags
var bbcode = new Array();
var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
','
','[img]','[/img]','
','','[flash=]', '[/flash]','[size=]','[/size]'<input type="button" class="button2" name="Foto-Link" value="Foto-Link" onclick="bbfontstyle('[center]
Foto-Übersicht', '\n
1[/center]');this.form.addbbcode9999;" title="Foto-Link" /> <!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
var imageTag = false;[/code]
Re: Hilfe bei BBCode
Verfasst: 12.05.2009 22:11
von 4seven
sorry, gemeint war natürlich der unterste bereich der posting_buttons.html
Code: Alles auswählen
<input type="button" class="button2" name="Foto-Link" value="Foto-Link" onclick="bbfontstyle('[center][color=#0000FF][u][b]Foto-Übersicht', '[/b][/u][/color]\n[url=http://www.phpbb.de/community/viewtopic.php?p=1103879#p1103879]1[/url][/center]');this.form.addbbcode9999;" title="Foto-Link" />
<!-- BEGIN custom_tags -->
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
<!-- END custom_tags -->
</div>
<!-- ENDIF -->
ich mach mich dann an den aeroblue-code

Re: Hilfe bei BBCode
Verfasst: 12.05.2009 22:23
von Tim
Hallo 4seven,
ok, wenn ich es dort einfüge, erscheint es bei beiden Styles.
Bei prosilver funktioniert auch alles wunderbar. Wenn ich bei AeroBlue den Code so einbaue wie bei prosilver funktionieren leider die anderen BBCodes nicht mehr, also wenn man sie klickt werden sie nicht ins Textfeld übernommen.
Auch der BBCode URL scheint nicht mehr zu funktionieren, da die Fotoübersicht dort dann so aussieht:
Re: Hilfe bei BBCode
Verfasst: 12.05.2009 22:40
von 4seven
i know, bin schon dran am aero..
edit:
so, da hammas:
http://sekuro.se.funpic.de/phpbb/postin ... ly&f=2&t=1
für den style aeroblue:
Code: Alles auswählen
<input type="button" class="btnbbcode" name="Foto-Link" value="Foto-Link" onclick="bbfontstyle('[center][color=#0000FF][u][b]Foto-Übersicht', '[/b][/u][/color]\n[url=http://www.phpbb.de/community/viewtopic.php?p=1103879#p1103879]1[/url][/center]');this.form.addbbcode9999;" title="Foto-Link" />
<!-- IF S_BBCODE_ALLOWED and .custom_tags -->
<!-- BEGIN custom_tags -->
<input type="button" class="btnbbcode" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline('tip')"<!-- ENDIF --> />
<!-- END custom_tags -->
Re: Hilfe bei BBCode
Verfasst: 13.05.2009 06:58
von Tim
Guten morgen 4seven,
wenn ich das so einbaue, dann bekomme ich über Beitrag schreiben, wo normalerweise die BBCodes sind folgende Fehlermeldung:
Parse error: syntax error, unexpected $end in /home/www/web124/html/phpBB3/cache/tpl_AeroBlue_posting_buttons.html.php on line 81
In Zeile 81 steht nur
LG Tim
Re: Hilfe bei BBCode
Verfasst: 13.05.2009 10:53
von 4seven
du siehst doch, das es genauso bei mir funktioniert.
ergo, finde die stelle und es wird funktionieren.
das, was du beschreibst, ist ein einbaufehler.
ansonsten verlinke mal diese ominöse posting_buttons.html aus dem style aeroblue..
logischerweise bedeutet das hier einen ausschnitt und die stelle des einfügens:
Code: Alles auswählen
<input type="button" class="btnbbcode" name="Foto-Link" value="Foto-Link" onclick="bbfontstyle('[center][color=#0000FF][u][b]Foto-Übersicht', '[/b][/u][/color]\n[url=http://www.phpbb.de/community/viewtopic.php?p=1103879#p1103879]1[/url][/center]');this.form.addbbcode9999;" title="Foto-Link" />
<!-- IF S_BBCODE_ALLOWED and .custom_tags -->
<!-- BEGIN custom_tags -->
<input type="button" class="btnbbcode" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline('tip')"<!-- ENDIF --> />
<!-- END custom_tags -->
---------------------------
auf gut doitsch::
finde
Code: Alles auswählen
<!-- IF S_BBCODE_ALLOWED and .custom_tags -->
<!-- BEGIN custom_tags -->
<input type="button" class="btnbbcode" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline('tip')"<!-- ENDIF --> />
<!-- END custom_tags -->
davor füge ein
Code: Alles auswählen
<input type="button" class="btnbbcode" name="Foto-Link" value="Foto-Link" onclick="bbfontstyle('[center][color=#0000FF][u][b]Foto-Übersicht', '[/b][/u][/color]\n[url=http://www.phpbb.de/community/viewtopic.php?p=1103879#p1103879]1[/url][/center]');this.form.addbbcode9999;" title="Foto-Link" />
Re: Hilfe bei BBCode
Verfasst: 14.05.2009 07:05
von Tim
Hallo 4seven,
ah ja, da lag der Fehler, ich hatte den ganzen Code eingefügt, also diesen:
Code: Alles auswählen
<input type="button" class="button2" name="Foto-Link" value="Foto-Link" onclick="bbfontstyle('[center][color=#0000FF][u][b]Foto-Übersicht', '[/b][/u][/color]\n[url=http://www.phpbb.de/community/viewtopic.php?p=1103879#p1103879]1[/url][/center]');this.form.addbbcode9999;" title="Foto-Link" />
<!-- BEGIN custom_tags -->
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
<!-- END custom_tags -->
</div>
<!-- ENDIF -->
Jetzt funktioniert es aber, nachdem ich es verbessert habe.

Nur der Code, dass es nur für Moderatoren sichtbar ist, der funktioniert leider nicht. LG Tim
Re: Hilfe bei BBCode
Verfasst: 15.05.2009 14:58
von 4seven
probier mal das
Code: Alles auswählen
<!-- IF U_MCP -->
<input type="button" class="button2" name="Foto-Link" value="Foto-Link" onclick="bbfontstyle('[center][color=#0000FF][u][b]Foto-Übersicht', '[/b][/u][/color]\n[url=http://www.phpbb.de/community/viewtopic.php?p=1103879#p1103879]1[/url][/center]');this.form.addbbcode9999;" title="Foto-Link" />
<!-- ENDIF -->
Re: Hilfe bei BBCode
Verfasst: 16.05.2009 07:12
von Tim
Hallo 4seven, das klappt leider auch nicht. Es ist aber nicht weiter schlimm, die User können es ruhig sehen.

Ich danke dir für deine tolle Hilfe! LG Tim