1. Dashboard
  2. Artikel
  3. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  1. HTML - Webmaster Forum
  2. Programmierung - Entwickler Forum
  3. PHP Forum - Apache - CGI - Perl - JavaScript und Co.

[code] problem

  • andwinkelr
  • 23. Februar 2007 um 11:09
  • andwinkelr
    Youngster
    Beiträge
    9
    • 23. Februar 2007 um 11:09
    • #1

    Hallo, ich hab in meinen Forum den [align=center] button hinzufügen wollen.

    Er scheint zwar in der Leiste auf jedoch kommt beim anklicken nicht

    Code
    [center][/center]

    sondern

    Code
    undefined

    was kann ich da machen. Wo lege ich fest das er es richtig macht.

    thx und lg

  • phore
    Forum Guru
    Reaktionen
    2
    Beiträge
    5.237
    • 23. Februar 2007 um 11:23
    • #2

    wir wissen nicht mal was du für ein forum hast.. :roll:

  • andwinkelr
    Youngster
    Beiträge
    9
    • 23. Februar 2007 um 12:00
    • #3

    http://marzipanschnitte.ma.funpic.de//phpBB2/index.php


    Bin nach dieser Anleitung vorgegangen:

    Code
    #-----[ ÖFFNEN ]------------------------------------------ 
    #
    # includes/bbcode.php
    # 
    #-----[ FINDE ]------------------------------------------ 
    #
    	// [i] and [/i] for italicizing text.
    	$text = str_replace("[i:$uid]", $bbcode_tpl['i_open'], $text);
    	$text = str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text);
    
    
    # 
    #-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
    # 
    	// [center] and [/center] for centered text. 
    	$text = str_replace("[center:$uid]", $bbcode_tpl['center_open'], $text);
    	$text = str_replace("[/center:$uid]", $bbcode_tpl['center_close'], $text);
    
    
    # 
    #-----[ FINDE ]------------------------------------------ 
    #
    	// [i] and [/i] for italicizing text.
    	$text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);
    
    
    # 
    #-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
    # 
    	// [center] and [/center] for centered text.
    	$text = preg_replace("#\[center\](.*?)\[/center\]#si", "[center:$uid]\\1[/center:$uid]", $text);
    
    
    
    
    
    
    # 
    #-----[ ÖFFNEN ]------------------------------------------ 
    #
    # posting.php
    # 
    #-----[ FINDE ]------------------------------------------ 
    #
    	'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
    
    
    # 
    #-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
    # 
    	'L_BBCODE_Y_HELP' => $lang['bbcode_y_help'], 
    
    
    # 
    #-----[ ÖFFNEN ]------------------------------------------ 
    #
    # privmsg.php
    # 
    #-----[ FINDE ]------------------------------------------ 
    #
    	'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
    
    
    # 
    #-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
    # 
    	'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 ]-------------------------------------------------- 
    # 
    $lang['bbcode_y_help'] = 'Zentriert: [center]text[/center] (alt+y)';
    
    
    
    
    
    
    # 
    #-----[ ÖFFNEN ]------------------------------------------ 
    #
    # templates/xxx/bbcode.tpl
    # 
    #-----[ FINDE ]------------------------------------------ 
    #
    	<span style="font-style: italic">
    	</span>
    
    
    # 
    #-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
    # 
    	<div align="center">
    	</div>
    
    
    
    
    
    
    # 
    #-----[ ÖFFNEN ]------------------------------------------ 
    #
    # templates/subSilver/posting_body.tpl
    # 
    #-----[ FINDE ]------------------------------------------ 
    #
    f_help = "{L_BBCODE_F_HELP}";
    
    
    # 
    #-----[ DARUNTER EINFÜGEN ]-------------------------------------------------- 
    # 
    y_help = "{L_BBCODE_Y_HELP}";
    
    
    # 
    #-----[ FINDE ]------------------------------------------ 
    #
    bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
    Alles anzeigen

    ','

      ','

    ','

      ','

    ','','http://,');

    #
    #-----[ FINDE in dieser Zeile ]------------------------------------------
    #
    'http://,'

    #
    #-----[ DANACH EINFÜGEN ]--------------------------------------------------
    #
    ,'[center]','[/center]'

    #
    #-----[ 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 ]--------------------------------------------------
    #
    # siehe "Notiz" am Anfang dieser Anleitung

    <td><span class="genmed">
    <input type="button" class="button" accesskey="y" name="addbbcode18" value=" Center " 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 ]--------------------------------------------------
    #
    # siehe "Notiz" am Anfang dieser Anleitung

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

    #
    #-----[ FINDE ]------------------------------------------
    #
    </select> {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 ]--------------------------------------------------
    #
    # siehe "Notiz" am Anfang dieser Anleitung

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

Tags

  • forum
  • button
  • style
  • text
  • ton
  • problem
  • input
  • code
  • phpbb
  • array
  • div
  • font
  • phpbb2
  • center
  • funpic
  • underline
  • select
  • preg_replace
  • undefined
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
Zitat speichern