15.07.2008, 06:40
(Dieser Beitrag wurde zuletzt bearbeitet: 26.08.2014, 09:52 von MyBB.de Bot.)
Eine neue Erweiterung wurde veröffentlicht: MyCode Pack
Zitat:Adds many MyCodes. These include:
(allow images as list bullets)
- [bg=...]...[/bg] (background colour/image)
- [fieldset=...]...[/fieldset]
- [sup]...[/sup] and [sub]...[/sub] (superscript/subscript)
- [o]...[/o] (overline)
- [tooltip=...]...[/tooltip] (when mouse is hovered over text, displays a tooltip)
- [box=...]...[/box] (creates a DIV tag)
- [float=...]...[/float] (float something (you may want to make sure you have a "clear" placed at the bottom of each post/signature))
- [clear] (to be used with the above code)
- [sc]...[/sc] (small caps)
- [small]...[/small] and [big]...[/big] (shortcuts to make something smaller/bigger)
- [indent]...[/indent] (indent some text)
- [left/center/right]...[/left/center/right] (shortcuts for alignment)
- [warn/alert/info]...[/warn/alert/info] (predefined CSS divisions)
- [flash=320x240]...[/flash] (embed flash object (uses DHTML))
- [table]...[/table] (start a table (see below))
- :...: (shortcut for HTML entities, eg :x61: embeds "a")
- [form=...]...[/form] (embeds a form)
- [input=...]...[/input] (hidden input field, used for forms)
- [textbox=...]...[/textbox] (textbox)
- [textarea=...]...[/textarea] (textarea)
- [checkbox=...]...[/checkbox] (checkbox)
- [option=...]...[/option] (option button)
- [list=http://...]...
[*][anchor]...[/anchor] (creates an anchor point)
[*][anchor=...]...[/anchor] (link to the anchor point)
[/list]
For tables, you can create them like this:
[table]
row 1, cell 1[cell]row 1, cell 2[cell]row 1, cell 3
[row]
row 2, cell 1[cell span=2 align=right]row 2, cell 2 (right aligned, with colspan=2)
[row=red]
row 3, cell 1 (red background)[cell=green]row 3, cell 2 (green background)[cell w=50]row 3, cell 3 with width of 50px
[/table]
This plugin partially caches replacements to speed up parsing.