Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
BB Code [table] Details »»
BB Code [table]
Version: 0.1.7.1, by StGaensler StGaensler is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.8.x Rating:
Released: 02-13-2006 Last Update: 03-25-2008 Installs: 1199
Uses Plugins Auto-Templates
 
No support by the author.

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]
A screenshot of a "ready" table is attached

Usage
  1. install attached product XML through product manager (overwrite existing)
  2. install at least one language pack 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! If you use another version of vBulletin than I use enable "Ignore Language Version" to import the language pack.

Please note: (installing)
Installing this product will: (reverted during uninstall)
  1. rename a existing BB code "table" to "table_saved"
  2. add a new BB code [table]
If you want to have live sortable columns (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
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)
  • Of course you can use vB Code and smilies inside the table!
  • The first line defines how much columns are in the table. If the other lines have more or less colums they are cut off or filled with   (space)
  • You can find a detailed description of the options (please read it before requesting help)
  • Empty rows are (should be ) removed.

New features
  • define colspan of cells
  • small panel in AdminCP
  • define CSS class of table and tablerows
  • live sorting of table through clicking the head of a column
  • defining maximum width of a table

Maybe planned features
  • detailed description of the vB Code in misc.php?do=bbcode depending on the features enabled in AdminCP (planned for next beta version)
  • define formatting (bold, italic), align (left, right, center) and width of the cols
Suggested but not planned features
  • none

Known problems
  • Bugfix of version 0.1.1 doesn't work if vBulletin should write template names into the source code

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

File Type: xml table_bbcode-language-en.xml (5.1 KB, 4209 views)
File Type: xml table_bbcode-language-de.xml (5.5 KB, 1228 views)
File Type: txt sorttable.js.txt (6.8 KB, 3630 views)
File Type: xml product-bbcode_table-multi.0.1.6.xml (31.3 KB, 1217 views)
File Type: xml product-bbcode_table-multi.xml (33.4 KB, 3664 views)

Screenshots

File Type: jpg table_01.jpg (10.9 KB, 0 views)
File Type: jpg table_02.jpg (10.1 KB, 0 views)
File Type: jpg table_03.jpg (30.9 KB, 0 views)
File Type: jpg table_04.jpg (135.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #212  
Old 09-27-2007, 12:54 PM
toucan42 toucan42 is offline
 
Join Date: Sep 2006
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone able to implement rowspan? the documentation handles colspan but I can't get rowspan to behave.
Reply With Quote
  #213  
Old 09-27-2007, 01:44 PM
toucan42 toucan42 is offline
 
Join Date: Sep 2006
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

giving up on rowspan I am trying nested tables - but the outermost table breaks such that i get two tables "stacked" but the outer table code is not parsed. (see screenshot attached)

My code is as follows:

[table width=100%]|
[table=head; width=80%]{colsp=2}
A Place To Eat - Some Named Object
Name:|Some Named Object
Address:|Address 1{br}Address 2{br}Some City, GA 32434
Phone:|
Guide Description:|some descriptive text [/table]|
[table=head; width=20%]Map Location map goes here|[/table]
[/table]
Attached Images
File Type: jpg tablecode.jpg (21.1 KB, 0 views)
Reply With Quote
  #214  
Old 09-27-2007, 02:22 PM
toucan42 toucan42 is offline
 
Join Date: Sep 2006
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's really treating the second table as another ROW instead of column - arrrgh! anyone?
Reply With Quote
  #215  
Old 09-30-2007, 12:07 AM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love it!
Thx.

What's live sortable columns?
Reply With Quote
  #216  
Old 09-30-2007, 04:57 PM
evesve evesve is offline
 
Join Date: Jul 2005
Location: Sweden
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by toucan42 View Post
it's really treating the second table as another ROW instead of column - arrrgh! anyone?
I don?t know how you want it to be but this is a guess:
Code:
[table]|
[table=head; width=80%]{colsp=2}
A Place To Eat - Some Named Object
Name:|Some Named Object
Address:|Address 1{br}Address 2{br}Some City, GA 32434
Phone:|
Guide Description:|some descriptive text
[/table]| [table=head; width=20%]Map Location map goes here
[/table]
[/table]
Reply With Quote
  #217  
Old 09-30-2007, 07:28 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HU??
What am I doing wrong:



[table="head;width=100%"][size=3][B]Verkeerde anti-spywareprogramma's[/B][/size]
Blablabla[/table]

[table="head;width=100%"][size=3][B]Verkeerde anti-spywareprogramma's[/B][/size]
Blablabla[/table]

As you can see I use the exact same piece of HTML code twice. Nevertheless, it appears not the same on my screen. Only the second table has a width of 100%.

Please advice.
Attached Images
File Type: jpg 100percent.jpg (11.2 KB, 0 views)
Reply With Quote
  #218  
Old 10-02-2007, 04:41 PM
MikQuattro MikQuattro is offline
 
Join Date: Jul 2003
Location: UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Concerning the border problem which was discussed and solved in the posts (around the 180's), I seem to be having the same problem and can't sort it out. Obviously I'm doing something wrong, can someone help? My CSS and screenie are attached. Basically, I don't want the white border and have tried setting everything I could to border: none and nothing worked. After unsuccessfully trying to use the fix in the posts mentioned above, I now am looking for help...

Code:
.stg_table
{
border: 1px #09335e solid;
padding: 0px;
}
.stg_table_sigtable
{
border: 1px #09335e solid;
padding: 0px;
}
.stg_table_sigtable thead
{
background-color:#09335e;
}
.stg_table_sigtable .alt1
{
background-color:#00458d;
color: #ffffff;
}
.stg_table_sigtable .alt2
{
background-color:#00458d;
color: #ffffff;
}
Reply With Quote
  #219  
Old 10-14-2007, 09:35 AM
triff's Avatar
triff triff is offline
 
Join Date: Sep 2007
Location: Norway
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So... My main goal is to be able to make a table with two columns, writing on one side and a picture on the other, preferably with the table invisible.

I found this code-thingy: .stg_table_transp {border: none; padding: 2px; background:transparent;} , which I added to my CSS Classes for the Table. This is supposed to hide the table, yeah? How do I activate it for my table? where do I put it in?

Also, can I set a defined width for one of the rows? If so, how?


Say my table goes somewhat like this:

[table="width=100%"]yadayadaday{br}yadayadayada{br}yada|[img]imageURL[/img][/table]

How would I go about to "hide" the table, and set the second column width to 200 px for example?

SGL.

EDIT: Also, is it possible to see the coding for the 3rd screenshot?
Reply With Quote
  #220  
Old 10-14-2007, 11:11 AM
StGaensler's Avatar
StGaensler StGaensler is offline
 
Join Date: Jan 2005
Location: Munich
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by triff View Post
The description of how to use this plugin is quite horrible, actually the worst I've ever come across so far.
This is no good feedback. Either you tell me what you don't understand and what I should describe better in my description of the options or I will plonk your post...
Anyway: I'm searching someone to write a description of the features for the users of my vB Code - feel free to contact me, if you think you can do this better than me.
Quote:
Originally Posted by triff View Post
I found this code-thingy: .stg_table_transp {border: none; padding: 2px; background:transparent;} , which I added to my CSS Classes for the Table. This is supposed to hide the table, yeah? How do I activate it for my table? where do I put it in?
As you can see in my description of the options you are supposed to put only the name of the css class (as it is transp here) into the preferences of my vB Code, not the full CSS code. The CSS has to be put to the other CSS code of vBulletin: The css code has to be added to "Additional CSS Definitions" of your style (AdminCP -> Styles & Templates -> Style Manager -> (Dropdown) Main CSS -> Additional CSS Definitions)
Quote:
Originally Posted by triff View Post
Also, can I set a defined width for one of the rows? If so, how?
As you can see in the description of my mod, this feature is maybe planned, not currently working.
Quote:
Originally Posted by triff View Post
Say my table goes somewhat like this:

[table="width=100%"]yadayadaday{br}yadayadayada{br}yada|[img]imageURL[[B]/[/B]img][/table]

How would I go about to "hide" the table, and set the second column width to 200 px for example?
If you set the CSS code correct as I explained it earlier this post, you have to apply it to the table: [table="width=100%;css=transp"]
As I said, column width currently isn't possible. You could kind a "minimum width" through adding a (blind) image with this width.
Quote:
Originally Posted by triff View Post
EDIT: Also, is it possible to see the coding for the 3rd screenshot?
No, this isn't possible as I accidentally lost the database of my test-forum (where this screenshot comes from) through an unsuspected hard disc error.
I "randomly" clicked the vB Codes, nothing special...

Stefan
Reply With Quote
  #221  
Old 10-14-2007, 11:38 AM
StGaensler's Avatar
StGaensler StGaensler is offline
 
Join Date: Jan 2005
Location: Munich
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by toucan42 View Post
giving up on rowspan I am trying nested tables - but the outermost table breaks such that i get two tables "stacked" but the outer table code is not parsed. (see screenshot attached)
Quote:
Originally Posted by toucan42 View Post
it's really treating the second table as another ROW instead of column - arrrgh! anyone?
First of all: Please use valid vB Code syntax. It has to be: [table="option=value"]
Every linebreak opens a new row - you wrote the new table into a new line and so it gets a new row. Put it into the same row if you you want it in the same row.
Currently I have problems with vB Codes generating a block level element (such as center, left, ...) at the end of a line, because vBulletin removes the linebreak after this element. Please use CSS for centering the head column.
I currently don't know why {br} there makes a new line - I suggest because of the two nested tables. This hasn't been tested very well.

Here is the new code:
[table="width=100%"]|
[table="head;width=80%"]{colsp=2}[b]A Place To Eat[/b] - [i]Some Named Object[/i]
[b]Name:[/b]|Some Named Object
[b]Address:[/b]|Address 1, Address 2, Some City, GA 32434
[b]Phone:[/b]|
[b]Guide Description:[/b]|some descriptive text [/table]|[table="head;width=20%"]Map Location map goes here|[/table]
[/table]
Quote:
Originally Posted by Eagle Creek View Post
I love it!
Thx.

What's live sortable columns?
Thanks With live sortable colums, the head colums are klickable. When you klick on the head of the first column, the table gets sorted for the first column. If you click again it gets sorted reverse. You can do this for every column.
Take the second table here: http://www.jabber.org/software/clients.shtml
They use merely the same code for this.
Quote:
Originally Posted by Eagle Creek View Post
HU??
What am I doing wrong:
Sorry, I can't reproduce this. Please try it with a clean install, and report the modification causing this.
Quote:
Originally Posted by MikQuattro View Post
Concerning the border problem which was discussed and solved in the posts (around the 180's), I seem to be having the same problem and can't sort it out.
Are you using a non-standard style? I think it would be the easiest if you provide me a example thread with this table and its vB Code (use the [noparse] tags for it) of the table.

Stefan
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05567 seconds
  • Memory Usage 2,389KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (11)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete