BBCode Buttons sind nicht benutzbar

Alles zu Styles, Templates, Icons und Smilies für phpBB 3.0.x, sowie allgemeine Designfragen zur Integration von phpBB in bestehende Websites.
phpBB Styles Demo
Forumsregeln
Bei Style spezifischen Fragen ist der Stylename und die Downloadquelle des Styles erforderlich, besser noch die URL vom betroffenen Forum.
Antworten
OpusMagnum
Mitglied
Beiträge: 19
Registriert: 17.06.2012 15:55

BBCode Buttons sind nicht benutzbar

Beitrag von OpusMagnum »

Hallo liebes Forum!

Ich bin Nutzer von PhpBB3.0.7 PL1 und dem Style CoDFaction.
Installierte mods sind: portal 3 und mchat.
Mein Forum: FORUM

Zu meiner Frage: Meine BBCode-Buttons bei der erstellung oder editierung von posts funktionieren nicht mehr. Sie sind nicht anklickbar.




Hier der Code zur posting_buttons.html

Code: Alles auswählen

<tr valign="middle" align="{S_CONTENT_FLOW_BEGIN}">
	<td colspan="2">
		<script type="text/javascript">
		// <![CDATA[
		
		// 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]'<!-- 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}',
tip: '{L_STYLES_TIP}'
<!-- BEGIN custom_tags -->
,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
<!-- END custom_tags -->
}

// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>

<!-- IF S_BBCODE_ALLOWED -->
<input type="button" class="btnbbcode" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px;" onclick="bbstyle(0)" onmouseover="helpline('b')" onmouseout="helpline('tip')" />
<input type="button" class="btnbbcode" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px;" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" />
<input type="button" class="btnbbcode" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px;" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('tip')" />
<!-- IF S_BBCODE_QUOTE -->
<input type="button" class="btnbbcode" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('tip')" />
<!-- ENDIF -->
<input type="button" class="btnbbcode" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('tip')" />
<input type="button" class="btnbbcode" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('tip')" />
<input type="button" class="btnbbcode" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('tip')" />
<input type="button" class="btnbbcode" accesskey="t" name="addlitsitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" onmouseover="helpline('e')" onmouseout="helpline('tip')" />
<!-- IF S_BBCODE_IMG -->
<input type="button" class="btnbbcode" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" />
<!-- ENDIF -->
<!-- IF S_LINKS_ALLOWED -->
<input type="button" class="btnbbcode" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('tip')" />
<!-- ENDIF -->
<!-- IF S_BBCODE_FLASH -->
<input type="button" class="btnbbcode" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
<!-- ENDIF -->
<span class="genmed nowrap">{L_FONT_SIZE}: <select class="gensmall" name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" onmouseover="helpline('f')" onmouseout="helpline('tip')">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
<option value="150">{L_FONT_LARGE}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
<option value="200">{L_FONT_HUGE}</option>
<!-- ENDIF -->
<!-- ENDIF -->
</select></span>
<!-- ENDIF -->
</td>
</tr>
<!-- IF S_BBCODE_ALLOWED and .custom_tags -->
<tr valign="middle" align="{S_CONTENT_FLOW_BEGIN}">
<td colspan="2">
<!-- 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 -->
</td>
</tr>
<!-- ENDIF -->
<!-- IF S_BBCODE_ALLOWED -->
<tr>
<td<!-- IF $S_SIGNATURE or S_EDIT_DRAFT --> colspan="2"<!-- ENDIF -->><input type="text" readonly="readonly" name="helpbox" style="width:100%" class="helpline" value="{L_STYLES_TIP}" /></td>
<!-- IF not $S_SIGNATURE and not S_EDIT_DRAFT -->
<td class="genmed" align="center">{L_FONT_COLOR}</td>
<!-- ENDIF -->
</tr>
<!-- ENDIF -->[/code]

Ich kenne mich da leider wenig aus und finde einfach nicht den Fehler. Würde mich auch über eine kleine Erklärung warum der Fehler auftrat freuen. :)
Benutzeravatar
Crizzo
Administrator
Administrator
Beiträge: 12123
Registriert: 19.05.2005 21:45
Kontaktdaten:

Re: BBCode Buttons sind nicht benutzbar

Beitrag von Crizzo »

Hi,

hast du vielleicht JavaScript bei dir im Browser deaktiviert?

Wenn nein, erstell mal bitte einen Testaccount, damit wir uns das selbst anschauen können.

Grüße
OpusMagnum
Mitglied
Beiträge: 19
Registriert: 17.06.2012 15:55

Re: BBCode Buttons sind nicht benutzbar

Beitrag von OpusMagnum »

Habe ich aktiviert, leider funktioniert es dennoch nicht. Meine Benutzer klagen über gleiches Problem.

Hier mein Testaccount. Habe ihn gerade erstellt.

Benutzername: Testaccount
Passwort: Testmich1

Forenlink: FORUM
Benutzeravatar
Crizzo
Administrator
Administrator
Beiträge: 12123
Registriert: 19.05.2005 21:45
Kontaktdaten:

Re: BBCode Buttons sind nicht benutzbar

Beitrag von Crizzo »

Hi,

du hast Fehler im JS-Code der für die Buttons verantwortlich ist.

Code: Alles auswählen

Zeitstempel: 20.06.2012 12:23:27
Fehler: initInsertions is not defined
Quelldatei: http://www.giantoaks.de/zmealarp/posting.php?mode=post&f=19
Zeile: 1

Zeitstempel: 20.06.2012 12:23:28
Fehler: helpline is not defined
Quelldatei: http://www.giantoaks.de/zmealarp/posting.php?mode=post&f=19
Zeile: 1

Zeitstempel: 20.06.2012 12:23:29
Fehler: storeCaret is not defined
Quelldatei: http://www.giantoaks.de/zmealarp/posting.php?mode=post&f=19
Zeile: 1
Helpline z.B. steht als

Code: Alles auswählen

var help_line = {
im Code, also der _ muss weg.

und die Zeile Code:

Code: Alles auswählen

<script type="text/javascript" src="./styles/CoDFaction/template/editor.js"></script>
löscht du da, wo sie gerade ist und fügst die vor </head> wieder ein.

PS: Du solltest noch der CSS-Regel:

Code: Alles auswählen

.btnbbcode {
    background: url("./styles/CoDFaction/theme/images/submit.jpg") no-repeat scroll left top #272626;
    font-size: 11px;
    font-weight: normal;
    height: 21px;
    padding: 1px 5px 3px;
    vertical-align: middle;
}
ein cursor: pointer; ergänzen, damit man sieht, das man die Button klicken kann. :)
OpusMagnum
Mitglied
Beiträge: 19
Registriert: 17.06.2012 15:55

Re: BBCode Buttons sind nicht benutzbar

Beitrag von OpusMagnum »

Super! Vielen Dank!

Eine blöde Frage habe ich aber noch: In welchen Dateien soll ich die Änderungen vornehmen?
In der Datei "editor.js" kommt der Code var help_line = { zB bei mir gar nicht vor. Wäre echt toll wenn du mir da helfen könntest. :(
Benutzeravatar
Crizzo
Administrator
Administrator
Beiträge: 12123
Registriert: 19.05.2005 21:45
Kontaktdaten:

Re: BBCode Buttons sind nicht benutzbar

Beitrag von Crizzo »

Der Code ist über ein <script>-Element direkt über den Posting-Buttons eingebunden. Deshalb solltest du mal die: posting_body.html und posting_buttons.html und Co absuchen.
Antworten

Zurück zu „[3.0.x] Styles, Templates und Grafiken“