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
  #132  
Old 01-26-2007, 12:33 PM
StGaensler's Avatar
StGaensler StGaensler is offline
 
Join Date: Jan 2005
Location: Munich
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1.) Yes, but remember post #127.

2.) I don't really know how this could be done. As far as I know don't I have the usergropid of the user on the place where my code works. There is a mod out there for those things but I also don't know if it supports mine.
Reply With Quote
  #133  
Old 01-26-2007, 12:37 PM
ricknlida's Avatar
ricknlida ricknlida is offline
 
Join Date: Nov 2005
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry I missed that. I couldn't remember if I asked or not so searched this thread for $3.5" and got zero results.
Reply With Quote
  #134  
Old 01-28-2007, 10:52 PM
PJSkiboy PJSkiboy is offline
 
Join Date: Nov 2002
Location: Bowling Green, KY
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I am giving into the fact that I'm retarded over this. I can not get the cellpadding turned off using this bbcode. I am assuming i'm not using the correct syntax. I've read the first post, the examples given throughout the thread, I'm just simply missing something I think.

I tried something like this, but no luck.

Code:
[table cellpadding=0]
I've also tried using quotes and what not, but I can't get the cellpadding to go away. A little help would be appreciated, thanks.

Edit: OK, I've read every post in this thread and I see now that this is all tied to the CSS definitions. I've tried syntax posted by the author to this same question. To me, the answer is not very clear, but I guess I'll keep plugging away.

2nd Edit: My head hurts now, but alas, I did it. With the help of the author and evesve, I have solved my problem. If anyone has issues getting the css definitions put in the right place and figuring out the syntax involed in calling them properly, feel free to give me a shout about this. I'm sure the author doesn't want to explain all of this ever again, lol.

Thanks again Stefan for a very userful mod. I definitely appreciate all the work that goes into this.
Reply With Quote
  #135  
Old 02-17-2007, 11:10 PM
Juum Juum is offline
 
Join Date: Jan 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Thanks for the mod!

One thing though: I'm using itemstats clicky. I want to be able to make the [item] and [/item] tags inside the table, but when i do so it just inputs the data that should pop up into the actual table cell, consequently messing the whole table up and being 100 times larger than it should.

Any idea's?

Thanks in advance!
Reply With Quote
  #136  
Old 03-14-2007, 11:43 AM
GBSteve GBSteve is offline
 
Join Date: Jan 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stefan,

Have you given any thought to improving the javascript file to correctly sort numbers? I love this mod and use it in combination with the Forms mod. I'll continue to use it but the fact that it can't correctly sort numbers is a little irritating for me.

Thoughts?
Reply With Quote
  #137  
Old 03-18-2007, 04:59 PM
StGaensler's Avatar
StGaensler StGaensler is offline
 
Join Date: Jan 2005
Location: Munich
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Juum View Post
I want to be able to make the [item] and [/item] tags inside the table, but when i do so it just inputs the data that should pop up into the actual table cell, consequently messing the whole table up and being 100 times larger than it should.
I can't reproduce this with the original itemstats code, but with the modification made by Zachariah. This adds some line breaks (<br />) to the output - these have to be replaced:
HTML Code:
This is one line<br />and the next line
should get
HTML Code:
<p>This is one line</p><p>and the next line</p>
This is necessary because my mod interprets every linebreak as a new tablerow.
Quote:
Originally Posted by GBSteve View Post
Have you given any thought to improving the javascript file to correctly sort numbers?
No I don't have any idea how to do it. As I stated in the javascript file it is from http://www.kryogenix.org/code/browser/sorttable/ so please ask him to fix it.
Reply With Quote
  #138  
Old 03-22-2007, 07:56 PM
ChiliVB ChiliVB is offline
 
Join Date: Dec 2005
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been talking with Stefan off and on for a long time experimenting with various versions WOW Itemstats to try and make it work with his tables code.

I was able to get everything working together today utilizing Blackjack's gitemstats version (and itemstats 1.5.5 core module) located here.

After upgrading my forums to 3.6.5 last night and installing Blackjack's gitemstats it all came together and works like a charm. And, there was no tweaking or special workarounds, it just works!
Reply With Quote
  #139  
Old 04-02-2007, 03:17 PM
ChiliVB ChiliVB is offline
 
Join Date: Dec 2005
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone tried to define a custom table class that utilizes an image on the first row (header row of the table) ?

Using the following results in the alt2 image continuing to display on row 1 of the table:

Code:
 
/* ***** Test Table *****/
.stg_table_test {border:1px; padding: 2px;}
.stg_table_test th {background-image: url(forums/images/style/head.gif);}
.stg_table_test td {border: 1px; #C08F52 solid;}
.stg_table_test .alt1 {background-image: url(forums/images/style/alt1.gif); }
.stg_table_test .alt2 {background-image: url (forums/images/style/alt2.gif); }
/* ***** Test Table End *****/
I also tried using .stg_table_test th {background:#FFF} just to see if I could turn the background for the first row white but it continued to display the alt2 image.

I must be missing something.
Reply With Quote
  #140  
Old 04-03-2007, 10:35 PM
ArchangelX ArchangelX is offline
 
Join Date: Feb 2006
Location: Oahu, HI
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work in 3.5.3? From reading this thread, it seems that it should? I'm getting this error:

Code:
Database error in vBulletin 3.5.3:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin

MySQL Error  : Unknown column 'executionorder' in 'field list'
Error Number : 1054
See the attached file for the rest...

What am I doing wrong?
Attached Files
File Type: txt vbTableerror.txt (22.6 KB, 13 views)
Reply With Quote
  #141  
Old 04-04-2007, 12:11 AM
ChiliVB ChiliVB is offline
 
Join Date: Dec 2005
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ArchangelX View Post
Does this work in 3.5.3? From reading this thread, it seems that it should? I'm getting this error:

Code:
Database error in vBulletin 3.5.3:
 
Invalid SQL:
 
### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
 
MySQL Error  : Unknown column 'executionorder' in 'field list'
Error Number : 1054
See the attached file for the rest...

What am I doing wrong?
Archangel - it works on 3.5.x versions.

This post (#127 in this thread) by Stefan will help with the error you are getting trying to install.
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 08:14 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.07460 seconds
  • Memory Usage 2,370KB
  • 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
  • (5)bbcode_code
  • (2)bbcode_html
  • (3)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
  • (10)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