Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
BB Code [table] Details »
BB Code [table]
Mod Version: 0.1.7.1, by StGaensler (Member) StGaensler is offline
Developer Last Online: Dec 2012 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (100 votes - 4.77 average) Installs: 1198
Released: 14 Feb 2006 Last Update: 26 Mar 2008 Downloads: 11808
Not Supported Uses Plugins Auto-Template  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	table_01.jpg
Views:	8590
Size:	10.9 KB
ID:	42776   Click image for larger version

Name:	table_02.jpg
Views:	7716
Size:	10.1 KB
ID:	42777   Click image for larger version

Name:	table_03.jpg
Views:	11826
Size:	30.9 KB
ID:	42792   Click image for larger version

Name:	table_04.jpg
Views:	6950
Size:	135.1 KB
ID:	48107  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #781  
Old 20 Jun 2014, 14:55
solarboy solarboy is offline
 
Join Date: Nov 2009
Can anyone tell me what should be placed inside BB code settings?
Reply With Quote
  #782  
Old 12 Dec 2014, 03:57
kiba snowpaw kiba snowpaw is offline
 
Join Date: Jul 2013
IDK if it because it dont work to vBulletin 5.1.4 or if it something in the file but when i try to add product-bbcode_table-multi.xml then i get

Fatal error: Call to a member function query_write() on null in /customers/c/9/9/ronnieknowsphotos.dk/httpd.www/Forum/core/includes/adminfunctions_product.php(881) : eval()'d code on line 4

and it work on my VB 3.8.8 but i suspects it for taking my forum down after installing this it work fin but after edit my topic 2 time wit the code it when down and been down for like a hours or so i have contact the Webhots to hear if the problem is from therer side or min i am waiting on a replay atm.


Last edited by kiba snowpaw; 12 Dec 2014 at 08:57.
Reply With Quote
  #783  
Old 19 Feb 2016, 01:21
Bill Bickley Bill Bickley is offline
 
Join Date: Oct 2004
Tried installing it with 3.8.9. Got an error msg when installing the language XML file, saying it had been done with an earlier version.

Any thoughts would be appreciated.

Bill
Reply With Quote
  #784  
Old 19 Feb 2016, 02:39
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Real name: Tim
Do you need the language XML file? if not, skip it.
__________________
LONG LIVE 3.8 SERIES
National Arcade Competition Club- NACC All arcade edits will work on vb4.
Check out my heavily modified ibproarcade with over 50,000 games for you, free of charge!
Exclusive arcade addons, edits and skins were made by stangger5 owner of Next Level Arcade
Reply With Quote
  #785  
Old 22 Feb 2016, 12:56
Bill Bickley Bill Bickley is offline
 
Join Date: Oct 2004
Tooltip Help

I've added the table icon to the editor.

Is there a way to modify the tooltip for this icon to provide a bit more explanation of the code?

I'd like to include this in the tooltip:

[table="head"]head col1|head col2|head col3
row1 col1|row1 col2|row1 col3
row2 col1|row2 col2|row2 col3[/table]

Bill
Reply With Quote
  #786  
Old 22 Feb 2016, 14:42
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Real name: Tim
Unfortunately all custom bbcode uses the phrase Wrap [{1}] tags around selected text
Editing that will change all "atl" for custom bbcode to what ever you change it to and I can not find where to change it in the plugin for the table bbcode itself.

You could remove the image url from the table bbcode and manually edit the editor_toolbar_on template and add the code to show the table.gif, adding the "alt" text you want.
__________________
LONG LIVE 3.8 SERIES
National Arcade Competition Club- NACC All arcade edits will work on vb4.
Check out my heavily modified ibproarcade with over 50,000 games for you, free of charge!
Exclusive arcade addons, edits and skins were made by stangger5 owner of Next Level Arcade
Reply With Quote
  #787  
Old 06 Mar 2017, 11:57
mickknutson's Avatar
mickknutson mickknutson is offline
 
Join Date: Jan 2004
Real name: Mick Knutson
How can I make the new table sortable? This mod sorted the tables manually, but now they are not. I must have sorting capabilities.
__________________
Thank You
Mick Knutson

BLiNC Magazine
"Everything you ever wanted to know about BASE-Jumping, but didn't know whom to ask."
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 16:12.

Layout Options | Width: Wide Color: