The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
BB Code [table] Details »» | |||||||||||||||||||||||||||||||||||||||||||
BB Code [table] by StGaensler Description This Hack provides a BB code [table] to add a table to the post The skin of the table automatically fits the style because the CSS classes of vBulletin are used. A table is simply made of some lines (will be the rows). The cols are seperated by |. So this will be a table: Code:
[table="head"]head col1|head col2|head col3 row1 col1|row1 col2|row1 col3 row2 col1|row2 col2|row2 col3[/table] Usage
Please note: (installing) Installing this product will: (reverted during uninstall)
Note: Including the file on the webpages where it is necessary is done by my product. So if sortable is disabled, it won't be included automatically. If you want to have a icon for the editor you may use this for free: Download this icon and place it in your /images/editor/ folder. Please note: (usage)
New features
Maybe planned features
Known problems
Version history: 0.0.1 - 0.0.5 internal releases for testing purposes (Thanks to Zombie79 from powerforen.de for testing) 0.1 first official release 0.1.1 fixed small bug: if a line ends with eg vbcode quote no new row was generated (should already have been fixed but did not work) 0.1.2 workaround: removed call to function bcmod(), it could also be done another way 0.1.3.x beta version described here (and following) - added admin panel, colpan and css feature 0.1.4 stable version - no significant changes to the last beta (0.1.3.8) 0.1.5.x beta version described here (and following) - added sortable, maxwidth, versioncheck, upgrade message, compatibility to vB 3.6 0.1.6 stable version - two bugfixes to last beta, {br} for posting linebreaks in a tablecell 0.1.7.x stable version - compatibility to vB 3.7 (description) - added tab seperated tables This hack can be used for free. If you want to make a small donation, just contact me. We will find a way I don't want this product to be distributed from other sources. Please don't upload it to other vBulletin related boards etc. Download Now
Screenshots
Show Your Support
|
Comments |
#62
|
||||
|
||||
You don't have to remove this class - simply overwrite it by your own class:
Code:
.stg_table_transp {border: none; padding: 2px; background:transparent;} I set this css class so that the table fits into the design of the style - the standard vBulletin tables also have set this class. |
#63
|
|||
|
|||
Quote:
|
#64
|
|||
|
|||
I guess I need some more help to get it work
I tried to put this in "CSS Classes For The Table" Code:
.stg_table_transp {border: none; padding: 2px; background:transparent;} .stg_table_transp td {border: none; } .stg_table_transp .alt1 {background:transparent; } .stg_table_transp .alt2 {background:transparent; } Code:
[table="css=transp"]testcol1|testcol2 {css=transp}testcol1|testcol2[/table] What?s wrong whith that? |
#65
|
||||
|
||||
No, in this field you have to add only transp nothing else. Append the css code in AdminCP -> Styles & Templates -> Style Manager -> (Dropdown) Main CSS -> Additional CSS Definitions
|
#66
|
|||
|
|||
Quote:
So... Step 1 Append the css code in AdminCP -> Styles & Templates -> Style Manager -> (Dropdown) Main CSS -> Additional CSS Definitions Code:
/*****TABLES******/ .stg_table_transp {border: none; padding: 2px; background:transparent;} .stg_table_transp td {border: none; background:transparent; } .stg_table_transp .alt1 {background:transparent; } .stg_table_transp .alt2 {background:transparent; } /*****TABLES END******/ Define css class AdminCP ->vBulletin-options -> BB Code [table] Settings ->CSS Classes For The Table Code:
transp Step 3 Put this code (example) for your table: Code:
[table="css=transp;width=450"]testcol11|testcol21|testcol31 testcol12|testcol22|testcol32 testcol13|testcol23|testcol33 testcol14|testcol24|testcol34[/table] So...was this the best way to do it? |
#67
|
||||
|
||||
Yes, this is very good You only have a small mistake: Step 2: Set transp not table. You only have to set it for the table, not for the tablerows (which is possible too but then you have the css class .stg_tablerow_XXX and you can apply it by adding {css=XXX} to a row)
Don't forget to enable the css feature in "Enabled Features Of This BB Code". |
#68
|
|||
|
|||
Quote:
I made a new css class: Code:
.stg_tablerow_black {background:#000; color:#FFF; } Code:
[table="css=transp;width=450"]testcol11|testcol21|testcol31 {css=black}testcol12|testcol22|testcol32 testcol13|testcol23|testcol33 testcol14|testcol24|testcol34 [/table] Can you give me an example for: Row 1 "css=black" Row 2-? "css=transp" ??? |
#69
|
||||
|
||||
Why didn't I get a notification mail???
It's the mystery of css: Code:
.stg_tablerow_black td {background:#000; color:#FFF; } I also can get the first row black: Code:
[table="css=transp;width=450"]{css=black}testcol11|testcol21|testcol31 testcol12|testcol22|testcol32[/table] |
#70
|
|||
|
|||
Quote:
|
#71
|
|||
|
|||
It?s getting better and better!!!
I had a small space: Code:
[table="css=transp;width=450"] {css=black}testcol11|testcol21|testcol31 Code:
[table="css=transp;width=450"]{css=black}testcol11|testcol21|testcol31 Thanks! |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|