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)

LaCN 06-07-2007 11:28 AM

1 Attachment(s)
w00t !!

Thanx :p
A whole new world opened to me, lol

If anyone wants to use our button, it's in the attachement ;)

Elenna 06-15-2007 11:10 PM

Hi there! Thanks ever so much for this mod, this is wonderful!

I have added a custom CSS and have it working for the body of the table (td), but it isn't formatting the header (thead or th). What am I doing wrong? I am trying to have it match the 'smallfont' style that is being applied to the <td> rows.

Here is what I have in my CSS (note both thead and th since I don't know which will work!):

Code:

/*********** TABLE **************/
.stg_table_smallfont {font-size: 11px;font-family: 'trebuchet ms', verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}
 
.stg_table_smallfont td {font-size: 11px;font-family: 'trebuchet ms', verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}
 
.stg_table_smallfont th {font-size: 11px;font-family: 'trebuchet ms', verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}
 
.stg_table_smallfont thead {font-size: 11px;font-family: 'trebuchet ms', verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}
/*********** END TABLE **********/


dottom 06-18-2007 04:44 AM

Quote:

Originally Posted by StGaensler (Post 900270)
Introduction to options:
{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).

Has anyone been able to get {css=myclass} to work in a table? I haven't had any luck getting it to work. I need to set a specific class for each row becaue the tables are too large if I have to apply formatting to each individual cell. I can't use the generic table css becaues I have a few different classes, i.e. depending on the content of the row it might be colored red, yellow, green, or white.

alexsinev 06-18-2007 09:51 AM

1 Attachment(s)
Hi! It's a great mod, but I have the same problem which was reported in this message.

When I use the code

HTML Code:

[table="head;width=70%"] |[CENTER][B]column 2[/B][/CENTER]|[CENTER][B]column 3[/B][/CENTER]
[B]row 2[/B]|[CENTER]test 22[/CENTER]|[CENTER]test 23[/CENTER]
[B]row 3[/B]|[CENTER]test 32[/CENTER]|[CENTER]test 33[/CENTER][/table]

I get the wrong table (the first one in the attachment).

If I add extra line breaks, like here

HTML Code:

[table="head;width=70%"] |[CENTER][B]column 2[/B][/CENTER]|[CENTER][B]column 3[/B][/CENTER]

[B]row 2[/B]|[CENTER]test 22[/CENTER]|[CENTER]test 23[/CENTER]

[B]row 3[/B]|[CENTER]test 32[/CENTER]|[CENTER]test 33[/CENTER][/table]

everything is all right (the second image). The problem appears only when I add the [CENTER] tags.

vBulletin version 3.6.7.

Is this normal?

Elenna 06-18-2007 05:43 PM

Quote:

Originally Posted by dottom (Post 1270691)
Has anyone been able to get {css=myclass} to work in a table? I haven't had any luck getting it to work. I need to set a specific class for each row becaue the tables are too large if I have to apply formatting to each individual cell. I can't use the generic table css becaues I have a few different classes, i.e. depending on the content of the row it might be colored red, yellow, green, or white.

I have gotten it to work somewhat. I have figured out how to apply formatting to the table and cell contents, but I can't seem to apply formatting to the header row (I'm sure I just don't know enough about CSS to figure that out on my own).

Here is what I did:

1) In AdminCP, go into Styles, and go to Main CSS for the style you are using. If you are using multiple styles, you'll need to do this for each style.

2) In the Additional CSS section (very bottom) create a new CSS entry called .stg_table_mycss (use something else other than mycss). You will need the . before.

3) If you are applying the style to the whole table, use .stg_table_mycss.
If you are applying the style to the cell contents (text), use .stg_table_mycss td. If you are applying the style to the cell row (alternating colors??) use .stg_tablerow_mycss

See my post above for examples.

4) Once you have created the CSS entries (and saved them), go into vB Options> vb code [table] options. You'll need to check the {css=} option at the top to enable that feature, and you'll also need to enter in mycss in the Styles for Table and Styles for Tablerow sections.

Save those options, and then reload your page. You may need to hard refresh (clear cache, etc) to force the download of the CSS again.

ashraf_gawdat 06-22-2007 03:28 PM

Realy nice. Installed.

tekguru 07-09-2007 05:55 AM

1 Attachment(s)
Hi guys need some help here, were using the transparent table mod as detailed in the thread which works perfectly, but are having a few problems with formatting:

The table we are using is:

PHP Code:

[table="css=transp"][IMG]http://www.4winmobile.com/cyclist/wallet/generator.gif[/IMG]|Including a password generator in a wallet program is very useful for creating website passwords to be used on the same device as the wallet. While editing a card tap and hold in a password field opens a submenu that includes a built in password generator.  There are recommended combinations of length and characters for normal, strong and very strong passwords.  If these choices don?t meet your needs, then you can set a custom combination instead.  For instance, suppose I want a very strong password for logging into my company network, to keep out all those nosy colleagues.  I start by selecting very strong, but find that this allows spaces in the password, and the corporate password policy doesn?t.  So I deselect spaces, and the strength changes to Custom, but I know that it is only a tiny bit weaker.  This customisation ability is very good.  So full marks for included functionality.The password generator mostly works fine when generating at lower strength settings.  But at the higher settings the generated password does not always contain all the elements selected, which is infuriating if you are trying to meet a request for a particular type of password.  It seems particularly fond of not including spaces when asked to.  The screenshot shows a password I generated asking for lowercase and numbers, with a pronounceable result.  There are no numbers in it.  If Spb?s generator can?t include numbers in a pronounceable password, then the program should warn me about this when I tick the checkbox for pronounceable[/table] 

Now this works fine and generates: table_01.jpg

However any time we try and put a new paragraph break in the text to give some structure we get an extra cell as per: table_02.jpg

Any ideas what we are missing? HELP :)

tekguru 07-13-2007 03:10 PM

Bump.....

StGaensler 07-14-2007 01:48 PM

Quote:

Originally Posted by dottom (Post 1270691)
Has anyone been able to get {css=myclass} to work in a table?

I got it work ;) What have you tried to get it work? Have you enabled the css feature and put the classnames (without stg_table_) into the preferences of my mod? Have you defined the properties of the css classes (with stg_table_)? Is {css=... the very first text standing in the row?
Quote:

Originally Posted by Elenna (Post 1271118)
3) If you are applying the style to the whole table, use .stg_table_mycss.
If you are applying the style to the cell contents (text), use .stg_table_mycss td. If you are applying the style to the cell row (alternating colors??) use .stg_tablerow_mycss

If you want to define a css for the table head use .stg_table_mycss th and define your table with [table="css=mycss;head]
Quote:

Originally Posted by tekguru (Post 1286474)
However any time we try and put a new paragraph break in the text to give some structure we get an extra cell as per: table_02.jpg

Any ideas what we are missing? HELP :)

My mod interprets a linebreak as a new tablerow - so this is working as designed. If you want to use a linebreak inside a cell, use {br} instead as stated in post #122

Stefan

tekguru 07-14-2007 09:52 PM

Quote:

Originally Posted by StGaensler (Post 1290796)
My mod interprets a linebreak as a new tablerow - so this is working as designed. If you want to use a linebreak inside a cell, use {br} instead as stated in post #122

Stefan

Hi Stefan cheers I'd spotted the use of the B]{br}[/B] and now you have restated it I've seen outr mistake to simulate a new paragraph one needs to use it 2-3 times, previously I'd only been using it once. DOH!


All times are GMT. The time now is 07:37 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.01557 seconds
  • Memory Usage 1,768KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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