Anleitung > Entfernen und Deaktivieren von BBCodes

Archived Plugins and Howtos

Anleitung > Entfernen und Deaktivieren von BBCodes

Postby 4seven » Sat 1. Mar 2008, 15:43 | Userzeit: +1.00 / Sa 1. Mär 2008, 15:43

___________________________________________
________________________________________________
________________________________________________________


Anleitung zum entfernen von BBCodes von der BBCodeBox3

Das 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

Findet

Code: Select all
//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 mit

Code: Select all
//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)

<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)

<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 sucht

<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

<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,
//75 Font - Type
//76 Begin Custom
//77 Font - Color

sind noch folgende Schritte nötig:

Finde

Code: Select all
<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 mit

Code: Select all
<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');">


Finde

Code: Select all
<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 mit

Code: Select all
<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');">


Öffnet

functions/functions_display.php


Findet

Code: Select all
   // 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 mit

Code: Select all
// 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 BBCodeBox3

Hier 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)

<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)

<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
User avatar
4seven
Administrator
 
Posts: 427
 
Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...
 
Joined:
Sun 13. Jan 2008, 23:44
 
Letzter Login:
Mon 1. Aug 2022, 16:40
 
Posted:
Sat 1. Mar 2008, 15:43 +1.00
Userzeit: Sa 1. Mär 2008, 15:43

Return to BBCodeBox3 Plugins



Who is online

Users browsing this forum: No registered users and 0 guests

cron