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
  #732  
Old 06-18-2011, 03:24 AM
rootsxrocks rootsxrocks is offline
 
Join Date: Aug 2009
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stefanus View Post
Pity, the "sharp ones" at vB supplied a really shitty scaled down version of the original CKeditor that renders this mod unusable and does not have a tenth of this mods capabilities.

Rather say: "4.1.4 will have shitty tables in Forum via CKeditor etc"
could not have said it better.
Reply With Quote
  #733  
Old 06-18-2011, 07:25 PM
Ddiablo Ddiablo is offline
 
Join Date: Jul 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Under 4.0.3... it works

Tanks a lot
Reply With Quote
  #734  
Old 06-19-2011, 12:17 AM
mickknutson's Avatar
mickknutson mickknutson is offline
 
Join Date: Jan 2004
Location: Tahoe City California
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just upgraded to 4.1.4 and now I get the tables horizontal.

http://www.blincmagazine.com/forum/w...ity_Statistics

Please help...
Reply With Quote
  #735  
Old 06-19-2011, 12:33 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stefanus View Post
Pity, the "sharp ones" at vB supplied a really shitty scaled down version of the original CKeditor that renders this mod unusable and does not have a tenth of this mods capabilities.

Rather say: "4.1.4 will have shitty tables in Forum via CKeditor etc"
Quote:
Originally Posted by mickknutson View Post
I just upgraded to 4.1.4 and now I get the tables horizontal.

http://www.blincmagazine.com/forum/w...ity_Statistics

Please help...
While I have no doubt that the CKE Editor can be improved upon (and probably will be, if not by vBulletin then by an add-on), in the meantime the built-in table feature works pretty well.
Reply With Quote
  #736  
Old 06-19-2011, 06:53 AM
Stefanus Stefanus is offline
 
Join Date: Aug 2007
Location: RSA - Boerland
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
While I have no doubt that the CKE Editor can be improved upon (and probably will be, if not by vBulletin then by an add-on), in the meantime the built-in table feature works pretty well.
Depends on what functions you need, the supplied one only has limited functions and nothing what this mod offer. The CKeditor in vBulletin is still only an crippled version of the original.

See the report.

Please show me how to implement the following table that was made with this mod on the "brand new vB 4.1.4 CKeditor"

PHP Code:
[TABLE]{colsp=5} [CENTER][B]Murder Victim Offender Relationship by Race 2004[/B]{br}SourceCrime in the United States2004Table 2.7[/CENTER]

 |{
colsp=4} [CENTER][B]Race of offender[/B][/CENTER]

 | [
CENTER][B]"White"[/B][/CENTER] | [CENTER][B]Black[/B][/CENTER] | [CENTER][B]Other[/B][/CENTER] | [CENTER][B]Unknown[/B][/CENTER] [noparse][/noparse]
[
B]White victims[/B] | [CENTER]3123[/CENTER] | [CENTER]522[/CENTER] | [CENTER]37[/CENTER] | [CENTER]45[/CENTER] [noparse][/noparse]
[
B]Black victims[/B] | [CENTER]228[/CENTER] | [CENTER]2784[/CENTER] | [CENTER]7[/CENTER] | [CENTER]48[/CENTER] [noparse][/noparse]
[
B]Victims of other race[/B] | [CENTER]42[/CENTER] | [CENTER]23[/CENTER] | [CENTER]110[/CENTER] | [CENTER]2[/CENTER] [noparse][/noparse]
[
B]Victims of unknown race[/B] | [CENTER]34[/CENTER] | [CENTER]15[/CENTER] | [CENTER]1[/CENTER] | [CENTER]18[/CENTER] [noparse][/noparse

{
colsp=5Note:  The FBI classifies HispanicsArabs and others as "Caucasians"The  "White" figure above therefore does not reflect actual White crime  rates, and is significantly inflatedWhen the actual population ratios  are taken into account and extrapolated inthe per capita rate ratio of Black-on-White murders to White-on-Black murders  becomes about 23.  Similarlythe per capita rate ratio of  White-perpetrator murders to Black-perpetrator murders becomes  (typicallyabout 9.5This ratio is a measure of the relatively higher  propensity of Blacks toward violence, as compared with Whites.{br}{br}In  2004there were 7039 US murders having a single perpetrator and a single victimOf these murdersBlacks committed 3427 (48.7%) and Whites committed 3344 (47.5%). The Black per capita murder rate was 6.0 times higher than the White per capita murder rate.{br}{br}There were at least 859 interracial murders (12.2of total murders), of which 545 were committed by Blacks (63.4of interracial murders) and 270 were committed by Whites (31.4%). The Black per capita interracial  murder rate was 12.5 times higher than that for Whites. {br}{br}There  were 522 murders in which Blacks killed Whites (60.8of interracial murders) and 228 murders in which Whites killed Blacks (26.5%). The average Black was 14.1 times more likely to kill a White than the reverse (in a one-on-one situation). {br}{br}The (White+Hispanic)/Black population ratio for 2004 was 6.18.{br}{br}[RIGHT][B][SIZE=1]Thanks to Jerry Abbot for the race and crime tables[/SIZE][/B][/RIGHT][/TABLE
Reply With Quote
  #737  
Old 06-19-2011, 07:24 AM
pokusek pokusek is offline
 
Join Date: Oct 2010
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Before vB v4.1.4 I was using this modification. Now I uninstalled it, but there still remains it's icon in the editor (there is no custom BB code on this page http://example.com/admincp/bbcode.php?do=modify right now, which is weird)



Does anyone know how to remove it?
Thanks.
Reply With Quote
  #738  
Old 06-20-2011, 12:23 PM
HolyKiller HolyKiller is offline
 
Join Date: Dec 2006
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had a big problem after with my forum after updating to 4.1.4 witch this (perfect) mod still installed (disabled during update). Even after uninstall the default "table" function was buggy.

So i restored my fresh backup, uninstalled this MOD, then upgraded to 4.1.4 and it's working now. The main problem is, all of the old tables lost. I mean, it does not left any unparsed "source" in the posts, it just disappeared. So i temporary established the backup forum as a "test" installation in "read only" mode, so any user can copy/paste old table to the new forum. Yes, a bit tricky, but it's ok
Reply With Quote
  #739  
Old 06-24-2011, 03:33 PM
kayota kayota is offline
 
Join Date: Apr 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear all,

I used mod table for version 3.8.x, now i upgraded it to 4.1.1 and the mod table is no longer suitable. Therefore, the old posts using this mod are in error. I need the upgraded version for this function. Could you please do it and let me know the cost? Thank you very much.
Reply With Quote
  #740  
Old 06-24-2011, 11:04 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The conversion from this table hack to vbulletin 4.1.4 is important. Please release a converter.
Reply With Quote
2 благодарности(ей) от:
ANGEL OF FIRE, wonderfulwat
  #741  
Old 06-30-2011, 06:55 AM
Stefanus Stefanus is offline
 
Join Date: Aug 2007
Location: RSA - Boerland
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The "Table" in 4.1.4 does not have all the functions of this mod, and it does not look as if vB is going to give us the full capabilities of the full CKEditor,

Have a look at the capabilities of the full: CKEditor - Demo

Play with the capabilities of the table function in the demo and decide for yourself if vB is giving us the best or.....

I still use this mod in vB 4.1.4 because of the crappy functions vB has given us in their version is not up to standard and does not have all the functions this mod have.

Quote:
"4.1.4 will have shitty tables in Forum via CKeditor"
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 05:20 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.06149 seconds
  • Memory Usage 2,407KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (5)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
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete