BBCodeBox3

prosilver | subsilver2

Willkommen und Guten Morgen, Guest  Beim nächsten Piep ist es zwischen 7:00 und 8:00 Uhr

It is currently Sun 23. Feb 2025, 08:38

All times are UTC + 1 hour [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Sat 1. Mar 2008, 15:43 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

___________________________________________
________________________________________________
________________________________________________________


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

Quote:
<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:

Finde

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

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
POWERED_BY
[ Time : 0.014s | 15 Queries | GZIP : Off | Board-Version: 3.0.7 PL1 ]