Seite 1 von 1

BBCode Center (weiss nicht weiter)

Verfasst: 31.03.2005 14:39
von anfaegerin
hallo jungs,

ich versuch mich gerade am BBCode Center und kurz vorm ende, weiss ich nicht mehr weiter und könnte ....!

also ich bin an dem teil jetzt angekommen
#
#-----[ ÖFFNEN ]------------------------------------------
#
# templates/subSilver/posting_body.tpl
#
#
#-----[ 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> &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 ]--------------------------------------------------
#
# siehe "Notiz" am Anfang dieser Anleitung

</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">

##############################
nur komm ich mit dem "addbbcode20" nicht klar. in der notiz steht das
## Notiz:
## Bevor Du irgendwelche Änderungen an Dateien/Datenbank vornimmst, solltest Du
## diese vorsorglich vorher sichern.
##
## Wenn weitere BBcodes installiert sind, muss hierbei darauf geachtet werden,
## das die Zahl XX (addbbcodeXX) korrekterweise (in 2er Schritten) erhöht wird.
## Desweiteren sollte man darauf achten, das für zwei verschiedene BBcode Hacks
## nicht dieselben Buchstaben bzw. Ziffern benutzt werden dürfen.
## In der posting_body.tpl muss nach den BBcodes an 3 Stellen der colspan-Wert,
## je nachdem wieviele BBcodes installiert wurden, erhöht werden.
bei mir sieht die eine zeile so aus

Code: Alles auswählen

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[center]','[/center]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[hide]','[/hide]');[/code]
also ich habt das [center][/center] nach dem [ u ] eingebaut.
was muß ich jetzt also bei dem "addbbcode20" eintragen? weil ich hab ja schon das "hide" drin? reicht es da, einfach 22 zumachen?

Verfasst: 31.03.2005 15:16
von John Doe
Da der hide hack schon drin ist musst Du bei den ganzen
addbbcode immer 2 addieren.

Und das center sollte in der Array Zeile hinter das hide ans Ende gesetzt werden, sonst stimmt die bisherige Reihenfolge nicht mehr.

Verfasst: 31.03.2005 15:24
von anfaegerin
ja aber ich will ja, das nach dem u "button" das center steht und nicht ganz hinten! deswegen hab ich es nach dem u reingemacht

Verfasst: 31.03.2005 16:38
von John Doe
Dann musst du die zahlen trotzdem alle um 2 mehr erhöhen als in der
Anleitung steht und zusätzlich wohl noch die ganzen Zahlen hier ändern:

Code: Alles auswählen

			  <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" />
			  </span></td>
addbbcode6 ist in der Liste der Quote Button. Da soll jetzt center stehen,
also muss die neue einzufügende center Zeile da rein (addbbcode auf 6 ändern und auch bei bbstyle die Zahl ändern), die zeile mit
quote muss dann alles auf addbbcode 8 etc geändert werden, die nächste
auf 10 usw, bis Du wieder ganz durch bist.

Verfasst: 31.03.2005 17:06
von anfaegerin
meine bbcode.tpl sieht eh schon so aus
<!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open -->
<!-- BEGIN i_close --></span><!-- END i_close -->

<!-- BEGIN center_open --><div align="center"><!-- END center_open -->
<!-- BEGIN center_close --></div><!-- END center_close -->

<!-- BEGIN color_open --><span style="color: {COLOR}"><!-- END color_open -->
<!-- BEGIN color_close --></span><!-- END color_close -->
was soll ich da noch ändern?

nun bin ich wieder an einem teil wo ich nicht durchblicke! (man ist das langsam peinlich :oops: )

Code: Alles auswählen

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

			</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"> 
wieso auf einmal "addbbcode22"? und dann wieder "addbbcode20"
maaan, ich hab echt gleich keine lust mehr!
gibts kein mod der einfacher ist? oder auch für frauen verständlich?

Verfasst: 31.03.2005 21:11
von John Doe
der Teil ist NICHT in der bbcode.tpl sondern in der posting_body.tpl.

Ich hab mal den centerbutton da hingesetzt, wo Du ihn haben willst.
Der hide hack ist auch drin.

Der ganze Block sollte also dann bei dir so aussehen:

Code: Alles auswählen

<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
			  </span></td>
	  	<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="y" name="addbbcode6" value=" Center " style="width: 60px" onClick="bbstyle(6)" onMouseOver="helpline('y')" />
			  </span></td>  
		 	<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="q" name="addbbcode8" value="Quote" style="width: 50px" onClick="bbstyle(8)" onMouseOver="helpline('q')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="c" name="addbbcode10" value="Code" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('c')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="l" name="addbbcode12" value="List" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('l')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="o" name="addbbcode14" value="List=" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('o')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="p" name="addbbcode16" value="Img" style="width: 40px"  onClick="bbstyle(16)" onMouseOver="helpline('p')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="w" name="addbbcode18" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('w')" />
			  </span></td>
			 <td><span class="genmed"> 
        <input type="button" class="button" accesskey="h" name="addbbcode20" value="Hide" style="width: 40px" onClick="bbstyle(20)" onMouseOver="helpline('h')" />
        </span></td>
Dann gehts in der Anleitung weiter mit:

Code: Alles auswählen

# 
#-----[ 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')">

angepasst auf Dich (weil Du schon den hidehack drin hast, muss das jetzt so lauten:

immer noch die posting_body.tpl

Code: Alles auswählen

# 
#-----[ FINDE ]------------------------------------------ 
#
			<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.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="addbbcode22" onChange="bbfontstyle('[color=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">

# 
#-----[ FINDE ]------------------------------------------ 
#
			</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.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="addbbcode24" onChange="bbfontstyle('[size=' + this.form.addbbcode24.options[this.form.addbbcode24.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

Verfasst: 31.03.2005 21:47
von anfaegerin
du bist meine rettung!
das nenn ich ja mal service! :lol:
ich danke dir, werde gleich mal versuchen!

Verfasst: 02.04.2005 21:07
von Kimberly
(und auch hier noch mal)

Hallo,
nur mal zur Info an alle:
Anfaegerin ist ein FAKE! Er/Sie benutzt mein Bild und auch meinen Banner in seinem Profil. Ich verstehe zwar denn Sinn nicht, warum das jemand macht, aber ist ja auch egal.
Würde mich freuen, wenn mal einer dieser Fakeprofil löschen könnte. Hab auch schon den Seitenbetreiber angeschrieben.
Falls jemand Zweifel daran haben sollte, dass ich diesmal "echt" bin, könnt ihr gern das Kontaktformular auf meiner Homepage nutzen (http://www.kisskct.com/xkontakt.htm), um das zu testen.
LG
Kimberly