___________________________________________
________________________________________________
________________________________________________________Anleitung zum entfernen von BBCodes von der BBCodeBox3Das genannte Beispiel ist für prosilver und gilt analog für subsilver2
Als Beispiel soll der BBCode für
[myvideo], also
bbstyle(44) entfernt werden
1.Öffnet styles/prosilver/posting_button.html
FindetCode:
//42
'[myspace]','[/myspace]',
//44
'[myvideo]','[/myvideo]',[/b]
//46
'[clipfish]','[/clipfish]',
//48
'[flv]','[/flv]',
//50
'[stream]','[/stream]',
//52
'[mov]','[/mov]',
//54
'[sup]','[/sup]',
//56
'[sub]','[/sub]',
//58
'[marq=down]','[/marq]',
//60
'[marq=up]','[/marq]',
//62
'[marq=left]','[/marq]',
//64
'[marq=right]','[/marq]',
//66
'[strike]','[/strike]',
//68
'[align=justify]','[/align]',
//70
'[rm]','[/rm]',
//72
'[wmv]','[/wmv]',
//74
'[hr]','[/hr]',
//76
'[mail=]','[/mail]'
//77 Font - Type
//78 Begin Custom
//79 Font - Color
Jetzt müsst ihr in nötigen 2er Schritten die BBCode-IDs der nachfolgenden Codes anpassen
also
Ersetzt mitCode:
//42
'[myspace]','[/myspace]',
//44
'[clipfish]','[/clipfish]',
//46
'[flv]','[/flv]',
//48
'[stream]','[/stream]',
//50
'[mov]','[/mov]',
//52
'[sup]','[/sup]',
//54
'[sub]','[/sub]',
//56
'[marq=down]','[/marq]',
//58
'[marq=up]','[/marq]',
//60
'[marq=left]','[/marq]',
//62
'[marq=right]','[/marq]',
//64
'[strike]','[/strike]',
//66
'[align=justify]','[/align]',
//68
'[rm]','[/rm]',
//70
'[wmv]','[/wmv]',
//72
'[hr]','[/hr]',
//74
'[mail=]','[/mail]'
//75 Font - Type
//76 Begin Custom
//77 Font - Color
2.Jetzt
sucht ihr (unter prosilver)
Quote:
<img src="{T_IMAGESET_PATH}/buttons/myvideo.gif" alt=""
id="myvideo" onclick="bbstyle(44)"
onmouseover="myvideo.src='{T_IMAGESET_PATH}/buttons/myvideo1.gif'; helpline('myvideo')"
onmouseout="myvideo.src='{T_IMAGESET_PATH}/buttons/myvideo.gif'; helpline('tip')" />
oder (unter subsilver2)
Quote:
<img src="{T_IMAGESET_PATH}/buttons/myvideo.gif" alt=""
onclick="bbstyle(44)" onmouseover="helpline('myvideo')" onmouseout="helpline('tip')" />
und entfernt den kompletten Code
3.Alle geänderten
bbstyles müssen jetzt, beginnend mit
bbstyle(44) in 2er Schritten angepasst werden. Dazu habt ihr, wie oben schon gesehen, innerhalb der Datei so etwas wie eine Übersichtsliste.
Da nun kein
bbstyle (44) mehr existiert, muss diese Lücke quasie geschlossen werden. Also wird aus
[clipfish] vormals
bbstyle (46) nun
[clipfish] bbstlye (44) usf. Die Codes müssen praktisch nach unten nachrücken, da eine Lücke entstanden ist.
Also
suchtQuote:
<img src="{T_IMAGESET_PATH}/buttons/clipfish.gif" alt=""
id="clipfish" onclick="bbstyle(46)"
onmouseover="clipfish.src='{T_IMAGESET_PATH}/buttons/clipfish1.gif'; helpline('clipfish')"
onmouseout="clipfish.src='{T_IMAGESET_PATH}/buttons/clipfish.gif'; helpline('tip')" />
und
ersetzt mit
Quote:
<img src="{T_IMAGESET_PATH}/buttons/clipfish.gif" alt=""
id="clipfish" onclick="bbstyle(44)"
onmouseover="clipfish.src='{T_IMAGESET_PATH}/buttons/clipfish1.gif'; helpline('clipfish')"
onmouseout="clipfish.src='{T_IMAGESET_PATH}/buttons/clipfish.gif'; helpline('tip')" />
usf.4.Da sich nun auch die bbstyle-Codes für die beiden Auswahlmenüs und der Anfang der Custom-Tags "verschoben" haben,
Quote:
//75 Font - Type
//76 Begin Custom
//77 Font - Color
sind noch folgende Schritte nötig:
FindeCode:
<span class="genmed nowrap"><select style="height:22px" class="gensmall" name="addbbcode77" onchange="bbfontstyle('[font=' + this.form.addbbcode77.options[this.form.addbbcode77.selectedIndex].value + ']', '[/font]');this.form.addbbcode77.selectedIndex = 0;" onmouseover="helpline('ft');" onmouseout="helpline('tip');">
Ersetze mitCode:
<span class="genmed nowrap"><select style="height:22px" class="gensmall" name="addbbcode75" onchange="bbfontstyle('[font=' + this.form.addbbcode75.options[this.form.addbbcode75.selectedIndex].value + ']', '[/font]');this.form.addbbcode75.selectedIndex = 0;" onmouseover="helpline('ft');" onmouseout="helpline('tip');">
FindeCode:
<span class="genmed nowrap"><select style="height:22px" class="gensmall" name="addbbcode79" onchange="bbfontstyle('[color=' + this.form.addbbcode79.options[this.form.addbbcode79.selectedIndex].value + ']', '[/color]');this.form.addbbcode79.selectedIndex = 0;" onmouseover="helpline('fc');" onmouseout="helpline('tip');">
Ersetze mitCode:
<span class="genmed nowrap"><select style="height:22px" class="gensmall" name="addbbcode77" onchange="bbfontstyle('[color=' + this.form.addbbcode77.options[this.form.addbbcode77.selectedIndex].value + ']', '[/color]');this.form.addbbcode77.selectedIndex = 0;" onmouseover="helpline('fc');" onmouseout="helpline('tip');">
Öffnetfunctions/functions_display.php
FindetCode:
// Start counting from 22 for the bbcode ids (every bbcode takes two ids - opening/closing)
// note for bbcodebox3 : new start counting from 78 for the bbcode ids (every bbcode takes two ids - opening/closing)
$num_predefined_bbcodes = 78;
Ersetzt mitCode:
// Start counting from 22 for the bbcode ids (every bbcode takes two ids - opening/closing)
// note for bbcodebox3 : new start counting from 76 for the bbcode ids (every bbcode takes two ids - opening/closing)
$num_predefined_bbcodes = 76;
5.Zu guter Letzt löscht ihr den BBCode
[myvideo] unter ACP > Beiträge > BBCodes
P.S.:
Die Einträge in den Sprachdateien und die Tipp-Anzeige-Codes müssen nicht zwingend entfernt werden und wer weiß,
vielleicht baut ihr den betreffenden BBCode ja irgendwann wieder ein. So habt ihr euch gleich etwas Arbeit gespart.___________________________________________
________________________________________________
________________________________________________________Anleitung zum deaktivieren von BBCodes der BBCodeBox3Hier die Quick and Dirty Methode zum deaktivieren einzelner BBCodes oder falls ihr nicht möchtet, das User diese benutzen.
Als Beispiel wieder der BBCode für
[myvideo], also
bbstyle(44)
1.Ihr benennt den BBCode
[myvideo] unter ACP > Beiträge > BBCodes um. Meinetwegen in
[no_active_myvideo] oder
[_my_video_] etc.
2.Jetzt
sucht ihr (unter prosilver)
Quote:
<img src="{T_IMAGESET_PATH}/buttons/myvideo.gif" alt=""
id="myvideo" onclick="bbstyle(44)"
onmouseover="myvideo.src='{T_IMAGESET_PATH}/buttons/myvideo1.gif'; helpline('myvideo')"
onmouseout="myvideo.src='{T_IMAGESET_PATH}/buttons/myvideo.gif'; helpline('tip')" />
oder (unter subsilver2)
Quote:
<img src="{T_IMAGESET_PATH}/buttons/myvideo.gif" alt=""
onclick="bbstyle(44)" onmouseover="helpline('myvideo')" onmouseout="helpline('tip')" />
und entfernt den kompletten Code.
- Das wars
lg
4seven