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-18-2006 12:44 PM

I don't like fixed width skins ;)

Yes, that's no problem, will be aviable in next beta version coming out soon.

Boofo 05-18-2006 12:47 PM

Quote:

Originally Posted by StGaensler
I don't like fixed widht skins ;)

Yes, that's no problem, will be aviable in next beta version coming out soon.

Ok, I can accept that. But it is proven that fixed skins make it easier to read as you don't have to read across the whole screen. And I still get members on 800x600, believe it or not. Not many, but a few. ;)

I will be looking forward to the version that has this capability, then. Thank you, sir. ;)

StGaensler 05-18-2006 01:57 PM

Quote:

Originally Posted by Boofo
I will be looking forward to the version that has this capability, then. Thank you, sir. ;)

You don't have to wait any longer, here is it :D

New beta version out!
Changed: Whole part recognizing the options was rewritten.
New: defining maximum width in AdminCP
New: Tables (with a head) now can be live sorted through JavaScript!
Download attached sorttable.js.txt rename it to sorttable.js and place it into the clientscript folder of your vBulletin. Then go to AdminCP -> vBulletin Options -> BB Code [table] Settings -> Enabled Features Of This BB Code and enable sortable
PS: Including the file on the pages where it is necessary is done by my product. If sortable is disabled, it won't be included automatically.

Edit: Replaced product-bbcode_table-multi_beta.xml (27.9 KB, 15 views)
A plugin was missing so the live-sorting of the table didn't work.

Edit2: Replaced product-bbcode_table-multi_beta.xml (29.0 KB, 2 views) and sorttable.js.txt (6.2 KB, 17 views) because the path to the arrow image of the sorttable was hardcoded.

Edit3: Replaced sorttable.js.txt (6.1 KB, 5 views) Reason

Edit4: Replaced sorttable.js.txt (6.8 KB, 3 views) as it didn't work with IE.

Edit5: Removed attachments - new version can be found here.
product-bbcode_table-multi_beta.xml (29.1 KB, 19 views)
table_bbcode-language-en.xml (3.4 KB, 24 views)
table_bbcode-language-de.xml (3.5 KB, 11 views)
sorttable.js.txt (6.8 KB, 15 views)

Boofo 05-18-2006 02:34 PM

Ok I got the js file uploaded. Which of the other files do I need to import?

Boofo 05-18-2006 02:43 PM

Ok, figured it out and got it installed. Now, all I have to do is figure out how to use it. Feel like teaching an old dog new tricks? ;)

StGaensler 05-18-2006 02:43 PM

Install attached product (product-bbcode_table-multi_beta.xml) through product manager (overwrite existing) and install one (or both) language packs in AdminCP -> Languages & Phrases -> Download / Upload Languages -> Import Language XML File.
Important: Select the language you want to import the phrases into, not "(Create New Language)" - this won't work!

Edit: four seconds to slow :)
I posted a example table in my first post and wrote a description in my second post

Boofo 05-18-2006 03:03 PM

Thank you, sir. ;)

My width for the forum is set at 777. What do I set for posts and where do I set it? ;)

StGaensler 05-18-2006 03:16 PM

Go to AdminCP -> vBulletin Options -> BB Code [table] Settings -> Maximum Width Of A Table there you can set it.

I don't know which width you need - you have to try it out. Once for "px" and once for "em" (first and second number in the field).

Gandalf-LoJ 05-22-2006 07:48 AM

Quote:

Originally Posted by StGaensler
I already posted an example css: https://vborg.vbsupport.ru/showpost....8&postcount=19
I know I spend more time writing my code than explaining it :D

Your code:
Code:

stg_table_transp {font-weight: large; }
contains some mistakes:
  • "large" is not a valid property of font-weight - "bold" would be one
  • to format a css class you need to add a point before the class name: .stg_table_transp
  • You want to format the text in the table, not the table itself. Theoretically the property would inherit but the vBulletin css defines a format for the <td>-tag
So this will work:
Code:

.stg_table_transp td {font-weight:bold; }
If you want to format only a single row you will have to use the css class stg_tablerow_transp e.g. in this way:
Code:

.stg_tablerow_transp td {font-weight:bold; }

ahh, thanks. I was putting the styles in the wrong place (in the options part! d'oh!). I take it the options are just for listing the styles that the user can use. So I'd just put 'transp' in there.

Oh and the error, I only copied one line that I was using, and it happened to be the one with the error! I would have caught that when viewing the table :p

Gandalf-LoJ 05-22-2006 12:26 PM

Quick question. I'm struggling to get a certain style to stick and I've found the issue.

I have
Code:

.stg_table_transp {border: none; padding: 2px; }
.stg_table_transp td {border: none; }
.stg_table_transp .alt1 {background: #F5F5FF; }
.stg_table_transp .alt2 {background: #F5F5FF; }

set to get a borderless table that's the same color as the background. It all works great apart from the border. That is still there.

I've looked at the code that is generated and copied into an html editor and see that the class for the table is
Code:

<table class="stg_table tborder stg_table_transp">
and if I remove the tborder from that it works fine. So tborder is overwriting my custom style. Is this intentional?

Everything else is fine, and I've created some nice styles now that work really well, it's just the border issue that I just can't seem to work out.

Any suggestions?


All times are GMT. The time now is 03:20 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.01556 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_code_printable
  • (3)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