vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - BB Code [table] (https://vborg.vbsupport.ru/showthread.php?t=107985)

StGaensler 05-22-2006 05:36 PM

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 would also set the background color of .alt1 and .alt2 to 'transparent' rather than to a defined color. If someone quotes a post with such a table the background will have another color.

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.

Gandalf-LoJ 05-23-2006 06:42 AM

Quote:

Originally Posted by StGaensler
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 would also set the background color of .alt1 and .alt2 to 'transparent' rather than to a defined color. If someone quotes a post with such a table the background will have another color.

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.

Perfect, thanks :cool: I can't believe I missed that one, I tried many variations but not the background option :rolleyes:

evesve 05-23-2006 03:58 PM

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; }

And the code for the table:
Code:

[table="css=transp"]testcol1|testcol2
{css=transp}testcol1|testcol2[/table]


What?s wrong whith that?

StGaensler 05-23-2006 04:07 PM

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

evesve 05-23-2006 05:53 PM

Quote:

Originally Posted by StGaensler
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

So easy, THANKS!

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******/

Step 2
Define css class AdminCP ->vBulletin-options -> BB Code [table] Settings ->CSS Classes For The Table
Code:

transp
...and enable the css feature in "Enabled Features Of This BB Code".

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]

Than I clicked on B to get the first row bold.

So...was this the best way to do it?

StGaensler 05-23-2006 06:18 PM

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".

evesve 05-23-2006 07:33 PM

Quote:

Originally Posted by StGaensler
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".

OK, I changed it in my last post.

I made a new css class:
Code:

.stg_tablerow_black {background:#000; color:#FFF; }
this looks great but I can?t use it together with transp like:
Code:

[table="css=transp;width=450"]testcol11|testcol21|testcol31
{css=black}testcol12|testcol22|testcol32
testcol13|testcol23|testcol33
testcol14|testcol24|testcol34
[/table]

and I can?t get it black in the 1st row

Can you give me an example for:
Row 1 "css=black"
Row 2-? "css=transp"
???

StGaensler 05-27-2006 06:39 AM

Why didn't I get a notification mail???

It's the mystery of css:
Code:

.stg_tablerow_black td {background:#000; color:#FFF; }
works in my board :)

I also can get the first row black:
Code:

[table="css=transp;width=450"]{css=black}testcol11|testcol21|testcol31
testcol12|testcol22|testcol32[/table]

Which version of my mod do you use?

evesve 05-28-2006 07:50 PM

Quote:

Originally Posted by StGaensler
Why didn't I get a notification mail???

It's the mystery of css:
Code:

.stg_tablerow_black td {background:#000; color:#FFF; }
works in my board :)

I also can get the first row black:
Code:

[table="css=transp;width=450"]{css=black}testcol11|testcol21|testcol31
testcol12|testcol22|testcol32[/table]

Which version of my mod do you use?

I use version 0.1.5 BETA.

evesve 05-28-2006 08:00 PM

It?s getting better and better!!!

I had a small space:
Code:

[table="css=transp;width=450"] {css=black}testcol11|testcol21|testcol31
This was better!
Code:

[table="css=transp;width=450"]{css=black}testcol11|testcol21|testcol31
No more complains!!!

Thanks!


All times are GMT. The time now is 12:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01648 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (15)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete