Seite 1 von 1

Problem mit Button erstellung

Verfasst: 09.08.2006 00:03
von DeBatman
Hi ich habe irgendwo mal den Mod für das BGame www.Inselkampf.de gefunden. Dieser funktionierte unter phpBB2 auch ohne probleme.

Da ich bei unserem Allianzboard demletzt allerdings das Upgrade von phpBB2 auf phpBB2 Plus gemacht habe, bekomm ich leider keinen Button für den Mod mehr hin.
Da mein Kenntnisse in PHP leider nur minimal sind ist auch mein Versuch den Button irgendwie in das Plus rein zu basteln gescheitert.

Es wäre klasse wenn mir jemand ne Anleitung schreiben könnte wie ich den Button auch im phpBB 2 Plus nutzen kann.

Es handel sich dabei um nachfolgenden Code:

Code: Alles auswählen

#-----[ ÖFFNEN ]------------------------------------------ 
# 
# posting.php/privmsg.php 
# 
#-----[ FINDE ]------------------------------------------ 
# 
   'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], 

# 
#-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
# 
# NOTIZ: Überprüfe, das "y" nicht schon benutzt wird. 

   '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 ]-------------------------------------------------- 
# 
# NOTIZ: Überprüfe, das "y" nicht schon benutzt wird. 

$lang['bbcode_y_help'] = 'Offtopic: [offtopic]text[/offtopic] (alt+y)'; 


# 
#-----[ ÖFFNEN ]------------------------------------------ 
# 
# templates/subSilver/posting_body.tpl 
# 
#-----[ FINDE ]------------------------------------------ 
# 
f_help = "{L_BBCODE_F_HELP}"; 

# 
#-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
# 
# NOTIZ: Überprüfe, das "y" nicht schon benutzt wird. 

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 ]--------------------------------------------------
#
# NOTIZ: Die Reihenfolge muss dieselbe sein, wie die Buttons angeordnet sind.

,'[offtopic]','[/offtopic]'

#
#-----[ 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 ]--------------------------------------------------
#
NOTIZ: Wenn weitere BBcodes installiert sind, muss die Ziffer bei addbbcodeXX in zweier
Schritten und in richtiger Abfolge erhöht werden.
Überprüfe, das "y" nicht schon benutzt wird.

<td><span class="genmed">
<input type="button" class="button" accesskey="y" name="addbbcode18" value=" Offtopic " 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 ]--------------------------------------------------
#
NOTIZ: Wenn weitere BBcodes installiert sind, muss die Ziffer bei addbbcodeXX in zweier
Schritten und in richtiger Abfolge erhöht werden.

<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">

#
#-----[ FINDE ]------------------------------------------
#
</select> &nbsp;{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 ]--------------------------------------------------
#
NOTIZ: Wenn weitere BBcodes installiert sind, muss die Ziffer bei addbbcodeXX in zweier
Schritten und in richtiger Abfolge erhöht werden.

</select> &nbsp;{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]

Danke schon mal im Vorraus.
MfG
DeBatman