PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Neue vBCodes implementiert



[B@W] Abominus
19.05.08, 13:08
Verehrte Regentschaft,

Ihr liebt Eure Führung, so wie Euch die Führung liebt. Daher gibt es jetzt zwei neue vBCodes, die ihr z.T. dem werten Regenten Golwar zu verdankten habt:

Spoilerwarnung
Tabelle

Hier eine Zusammenfassung, wie die beiden neuen Funktionen genutzt werden:


1. Spoilerwarnung

Was ist ein Spoiler? Ein Spoiler ist z.B die Zusammenfassung über einen Film, den man gerade gesehen hat, und der meistens gerade erst angelaufen ist. Viele Leute (euer geliebter Admin Abo gehört nicht dazu) möchten erst im Film überrascht werden von den Geschehnissen. Somit ist es nicht unbedingt förderlich fürs Forenleben, wenn man einfach alles ausplaudert. Die meisten können sich dennoch nicht beherrschen und lesen alles, vielleicht auch Dinge, die sie nicht wissen wollen. Der Spoiler-TAG verhindert dies.


[spoiler]Text, der verschleiert werden soll[./spoiler]

Einfach den Punkt entfernen und es sieht so aus:

Text, der verschleiert werden soll

Mit einem Klick darauf oder mit der Markierung wird der Text sichtbar.


2. Tabelle

Die Tabelle hat auch ein schnuckeliges Bildchen. Für den Spoiler suche ich noch eines. Der untere Text ist zwar auf Englisch, die meisten Dinge kann man sich aber selbst erschließen.

[code][Table] Siege | Niederlagen | Unentschieden[./table]


Introduction to options:
example: [table="option1;option2=value;option3='this is a long value with space';option4=value1,value2,value3"]
The whole option list should be wrapped with quotes.
Options are seperated by a semicolon
If an option has a value it is assigned with "equal to" mark. (option2)
If the value contains blanks or special characters it has to be wrapped with apostrophes. (option3)
If an option has more than one value they are seperated by a comma. (option4)

Description of options:
head
This option defines the first line as head, so the first row is shown as head of the table. If the table sould be sorted, the head is not sorted.

sort=1d,2,3
This defines the table to be sorted by column 1, then column 2, then column 3. The "d" after the first colum specifies the order: descending (default: ascending)

autonum=1 (equal to autonum) autonum=a autonum=A
Defines that a new first column containing a numbering should be inserted.
1 -> 1, 2, 3, 4, ... , 999, 1000, ....
a -> a, b, c, ... , aa, ab, ... , zz
A -> A, B, C, ... , AA, BB, ... , ZZ

autonumtitle=oneword autonumtitle='long value with spaces'
Defines the title of the autonum-column. Can be left empty.

width=123px width=45em width=67%
Defines the width of the table.

debug
My plugin outputs a simple comment line after the table.
"<!-- table generated by StG's vB Code [table] v.0.1.4 o.31 -->"
With this option the output gets more verbose:
"<!-- table has 3 rows, 2 cols with 36 chars. Parsetime: 0.47 ms at Wed 17th 2006, 12:24:42 pm by StG's vB Code [table] v.0.1.4 o.31 -->"
This is helpful for debugging especially if you want to know if this table comes from the cache or was generated.

css=myclass
Defines the aditional css class of the whole table. Possible values have to be defined in admincp.
The value is prepended by stg_table_ so the resulting css class with above example would be stg_table_myclass
The css code has to be added to "Additional CSS Definitions" of your style (AdminCP -> Styles & Templates -> Style Manager -> (Dropdown) Main CSS -> Additional CSS Definitions)

Introduction to special options (formating cells and rows):
example: {option1=value1}{option2=value2}
These "special" options can be written as the very first content of a cell to format it.

Description of special options:
{colsp=5}
Defines a colspan from current cell with the length of 5 cells

{css=myclass}
Defines the css class of the current row. This value is only valid in the first cell of a row and should be the first option (colspan defined after it - currently reversing the order works, too).

*Quelle* (http://www.vbulletin.org/forum/showthread.php?t=107985)

So have fun and make love, no war! :gluck:

Golwar
19.05.08, 15:16
Danke für die beiden Features Abo. Die Simpsons sind beim Spoiler gut aufgehoben ;)

Die Tables scheinen recht ordentlich zu sein, reich an Funktionen aber wohl auch übermäßig kompliziert ?
Frage mich zum Beispiel ob man die Gitterlinien entfernen / unsichtbar gestalten kann, zum Beispiel indem man irgendwo Border=0 definiert ?

Bismarck
26.05.08, 08:52
Eine Frage zum Spoilertag: Ich kann den Spoiler nicht mit einem Klick sichtbar machen, sondern muss immer den Text markieren. Ist das normal? Habe FF2 mit ABP.

Beduries
26.05.08, 09:51
Eine Frage zum Spoilertag: Ich kann den Spoiler nicht mit einem Klick sichtbar machen, sondern muss immer den Text markieren. Ist das normal? Habe FF2 mit ABP.

So hat es glaube ich Abo erklärt. :idee:

Bismarck
26.05.08, 10:14
Eben nicht, Abo hat gesagt:

Mit einem Klick darauf oder mit der Markierung wird der Text sichtbar.
Aber mit dem Klick funktioniert es nicht.

MoerkLort
26.05.08, 14:54
Wenn ich unter Opera den Zoom anschalte, ist er immer sichtbar.

[B@W] Abominus
26.05.08, 19:15
Versuch mal Doppelklick, dann sollte alles markiert sein. Ansonsten, ja, markieren.

candyman2000
27.05.08, 21:46
Wenn man die linke Maustaste gedrückt hält und dann zieht sieht man den Text, werter Forumsguru (Abo):D

[B@W] Abominus
28.06.08, 18:08
Ich habe mal ein Beispiel hier:


[table="head;sort=3d,2;autonumtitle=rank;width=15em"]Auswahl | Regent | Smiley
01 | BigDaddy | http://ugly.plzdiekthxbye.net/small/s123.gif[/.IMG]
[/.table]

Und daraus wird ohne den Punkt:

Auswahl | Regent | Smiley
01 | BigDaddy | [IMG]http://ugly.plzdiekthxbye.net/small/s123.gif

[B@W] Abominus
11.01.09, 00:25
Grad mal folgendes ausprobiert:


Land | Spieler | Ziel
Holland | Shakril | Niederlande
Kastillien | Liechti | Spanien
Frankreich | Friedrich III. | to rule the world
Brandenburg| Eidgenosse | Deutschland
Mailand | Ryo | Italien
Rajput | sheep-dodger | An der Zivilisation teilhaben
Novgorod | Abominus | Russland und... WOLLE!!!1!!1ELF!!111EINS!

Und das führt zu:

Land | Spieler | Ziel
Holland | Shakril | Niederlande
Kastillien | Liechti | Spanien
Frankreich | Friedrich III. | to rule the world
Brandenburg| Eidgenosse | Deutschland
Mailand | Ryo | Italien
Rajput | sheep-dodger | An der Zivilisation teilhaben
Novgorod | Abominus | Russland und... WOLLE!!!1!!1ELF!!111EINS!

Unter HILFE oben in der Navigationsleiste findet man auch nach einer Suche die weiteren BB-Codes:
http://www.si-games.com/forum/misc.php?do=bbcode