vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   BB code tables 1.0 for vB 3.5.x (https://vborg.vbsupport.ru/showthread.php?t=105802)

EvilHawk 01-19-2006 10:00 PM

BB code tables 1.0 for vB 3.5.x
 
This plugin permits the creation of a table in a post! Tables support for thread postbit, post review and post preview!

This is a just port which is based on the original JohnWoo BB code tables 1.0 hack for vB 3.0.x . This is posted with his permission. All credits to the original author!

Quote:

How it works :
1) starting code is [table] or [table 1 2 3] where
1 2 3 any numbers separated by space
first - border
second - cellpadding
third - cellspacing

- ending tag is always [/table]
- table lines separated by line break
- each line can have 7 styles. To specify a style add in the beginning number and ^ symbol without spaces
example:
2^
you may skip 7^ - it is default (alt1) style
- cells in line separated by |
- there is no need to add | before first and after last cell
- each cell can have each own align. Use align mark as a first symbol of cell without spaces
blank (default) - left
= - center
~ - right

- if number of cells different in lines, last cell of shorter lines will get colspan= with needed number

so table in post may look like

[table 1 3 0]
1|2|test 16798789789797979799879797979|4|5|6|7
1^~right with colspan
2^333|=center with colspan
3^1|2|left with colspan
4^1|=center without colspan|3|4|5|6|7
5^1|blablabla|3|4|5
6^1|2|3|4|5|6|7
[/table]
Minor bugs:
a)It inserts an empty cell if you leave a space after the [table] tag, so the first line has to be like this
[table 1 3 0] 1|2|test 16798789789797979799879797979|4|5|6|7
b) you can not use other bbcodes or smilies inside the table tag as they will not get parsed...

You can see demos at the screenshots

-=Sniper=- 01-20-2006 11:31 AM

very cool :) will be testing it out.

MioTraGusa 01-20-2006 12:26 PM

very nice ... test it

nhacso 01-20-2006 12:48 PM

- EvilHawk, how to add background color to "td" if don't use alt1 or alt2?

- You can add collapse / uncollapse images into to right of table?

Snake 01-20-2006 01:06 PM

Good work and thanks!

EvilHawk 01-20-2006 01:26 PM

Quote:

Originally Posted by nhacso
- EvilHawk, how to add background color to "td" if don't use alt1 or alt2?

- You can add collapse / uncollapse images into to right of table?

It uses the template's css settings, so if you want to add extra colors there is no other way but to change the attributes at the functions the plugin uses!

Lea Verou 01-20-2006 06:11 PM

Installed, thanks! :D

nhascso why would you want collapse/uncollapse images in posts??? :confused:
There is an obsession with collapse/uncollapse images by some people that I can't understand at all :confused:

nhacso 01-20-2006 08:50 PM

Quote:

Originally Posted by Michelle
Installed, thanks! :D

nhascso why would you want collapse/uncollapse images in posts??? :confused:
There is an obsession with collapse/uncollapse images by some people that I can't understand at all :confused:

Because if in a post I create 3 table -> if have collapse images will make the member easy discriminate between tables. And if 1 in 3 table have big and wide size make the posts in thread stretch -> if have collapse images will make the members easy zoom out that table. The end, will make the the post in thread look good better between the 2 normal others and will make the posts in thread not stretch.

ze_roberto 01-20-2006 11:12 PM

Thank you, great hack :)
That helps us a lot for our editorial work...

cheers, ze

jj 01-20-2006 11:36 PM

*clickin install

i love it :)


All times are GMT. The time now is 09:58 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.01038 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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