• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • TABLE bbcode

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Page 1 of 2 12 Next LastLast
    Results 1 to 15 of 20

    Thread: TABLE bbcode

    • Thread Tools
      • Show Printable Version
    1. April 2, 2010 #1
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201

      TABLE bbcode

      Quick question -- does the TABLE bbcode functionality included in VaultWiki conflict with the BB Code [table] add-on for vBulletin? If so, what is the recommended upgrade/transition path away from this highly popular add-on? (I notice this issue, but I'm not familiar with a comparison of the VaultWiki bbcode versus the vB Germany table bbcode, so I'm not sure which one would ultimately be preferable.)

      Thanks for your thoughts!
      Reply With Quote Reply With Quote

    2. April 2, 2010 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      The wiki TABLE BB-Code and the StGaensler TABLE BB-Code (the one in your link, aka the vB Germany TABLE BB-Code) use different syntax. The wiki TABLE BB-Code uses internal syntax like that of MediaWiki's Table Syntax (the opening and closing tags are obviously different).

      Depending on which one you want to use, you should modify the bbcode_create Execute Order (the later one will override the earlier one).

      There is no automatic converter for the TABLE codes (except NuWiki's to VaultWiki's). If you choose to use VaultWiki's, you'll need to either develop a conversion plugin, or make the changes manual.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. April 3, 2010 #3
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Is there a way to turn-off the VaultWiki TABLE? NuWiki had an option where you could check off which included bbcodes would be used/parsed. It'd be great if I could elect to escape out of certain bbcodes and save my forum the performance hit.
      Reply With Quote Reply With Quote

    4. April 3, 2010 #4
      Mokonzi
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      Mokonzi is offline
      Senior Member
      Join Date
      January 19, 2009
      Location
      South West Scotland
      Posts
      158
      Rep Power
      198
      I assume the easiest way is simply not to use the code... and I think from memory that VW adjusts the BBCode to change the [table] to become it's default code, though I could be wrong.

      If it does, adjust (through the BBCode Manager) the BB Code Tag Name to something different, keeping the [table] tag for the other version you use. Then it should only run through the old system, leaving VWs alone.

      However, I can't be certain this will solve your problem, as I've not tried this personally. I'd test it on a test board/install first, unless Pegasus can confirm sometime soon if this is the solution...
      Reply With Quote Reply With Quote

    5. April 3, 2010 #5
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      There is currently no way to "turn off" the TABLE BB-Code. This is a change we're planning for the parser rewrite in RC 2: http://www.vaultwiki.org/issues/1275/

      In the mean time, you can modify the file vault/special_plugins_bbcode.php and remove the definition:
      Code:
      	if (empty($parser->tag_list['no_option']['table']['callback']))
      	{
      		// [TABLE]
      		$parser->tag_list['no_option']['table'] = array(
      			'callback'			=> 'handle_external',
      			'external_callback'	=> 'special_bbcode_table',
      			'strip_empty'		=> true,
      			'strip_space_after'	=> 1
      		);
      	}
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    6. April 3, 2010 #6
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Thanks, pegasus. Alternatively, let's say I wanted to offer my users multiple ways of building tables. Is there a way that I could change the VaultWiki TABLE bbcode to something else (like maybe [GRID]?). And, from a performance stand-point, is there a preferred path to take with regards to these BBcodes (that is, does having multiple BBcodes, even if one is rarely used, cause a performance hit)?
      Reply With Quote Reply With Quote

    7. April 3, 2010 #7
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      It really should not affect performance to have rarely or unused BB-Codes. Neither vBulletin nor VaultWiki search for BB-Code usage on a tag basis, but rather the reverse. It just stores them in a registry and checks what it thinks might be BB-Code against the registry.

      If you wanted to rename the TABLE BB-Code, you'd have to create your own bbcode_create plugin that adds [GRID] with the same definition I instructed you to remove above.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    8. April 7, 2010 #8
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Quote Originally Posted by pegasus View Post
      If you wanted to rename the TABLE BB-Code, you'd have to create your own bbcode_create plugin that adds [GRID] with the same definition I instructed you to remove above.
      Could you possibly give me an example of how this would be done? Let's say I wanted the TABLE bbcode that shipped with VaultWiki to instead be a GRID bbcode. What changes would I have to make to an out-of-the-box VaultWiki installation?

      Thanks for indulging me. I know that designers will prefer the TABLE bbcode that you submitted, but newbies will likely want a more simplified table schema more akin to what vBGermany offered.
      Reply With Quote Reply With Quote

    9. April 7, 2010 #9
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      Add the following plugin for bbcode_create, set the product to vBulletin.

      Use the following code:
      Code:
      $this->tag_list['no_option']['grid'] = array(
      	'callback'			=> 'handle_external',
      	'external_callback'	=> 'special_bbcode_table',
      	'strip_empty'		=> true,
      	'strip_space_after'	=> 1
      );
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    10. April 8, 2010 #10
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Thanks, pegasus! Worked perfectly.

      In RC2, when you give us the option to turn off the TABLE bbcode for VaultWiki (ostensibly in favor of the vBGermany TABLE bbcode that we are otherwise using), will my bbcode_create plugin for the GRID bbcode still work?
      Reply With Quote Reply With Quote

    11. April 8, 2010 #11
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      Yes it should. The switches will only affect the definition of the BB-Code. In your case, you have added your own definition without an option-check.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    12. April 8, 2010 #12
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Thanks. I have another weird issue.

      Ever since disabling the VaultWiki TABLE bbcode, per your instructions on the first page of this thread, my vBGermany Table bbcode is no longer functioning properly in VaultWiki (though, to be fair, I'm not sure it was ever functioning properly in VaultWiki). Do you have any insights or perspectives as to what might be causing this issue? The major defect in VaultWiki seems to be that the vBGermany TABLE bbcode enters all of its content in a single row, regardless of the carriage-returns to indicate separate rows.

      The vBGermany TABLE bbcode works fine on the rest of the site, however; as does the GRID bbcode, universally (both on VaultWiki and non-Wiki forums/posts). Thoughts?
      Reply With Quote Reply With Quote

    13. April 8, 2010 #13
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      Line break behavior is not consistent across the wiki and regular parsers. Until the next build (at which time you'll want to reverse the following change), you should make the following change: http://www.vaultwiki.org/issues/350/#note1899
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    14. April 8, 2010 #14
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Quote Originally Posted by pegasus View Post
      Line break behavior is not consistent across the wiki and regular parsers. Until the next build (at which time you'll want to reverse the following change), you should make the following change: http://www.vaultwiki.org/issues/350/#note1899
      Thanks so much!
      Reply With Quote Reply With Quote

    15. April 28, 2010 #15
      Trekkan
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Trekkan is offline
      Junior Member
      Join Date
      April 26, 2010
      Posts
      8
      Rep Power
      0
      ** Edit ** nm, I figured out how to turn off the wiki table in the settings.

      I'm having this same problem. Commenting out the suggested code doesn't appear to affect it.
      Last edited by Trekkan; April 28, 2010 at 1:36 AM.
      Reply With Quote Reply With Quote

    Page 1 of 2 12 Next LastLast

    Similar Threads

    1. disable table bbcode in xF
      By dvsDave in forum VaultWiki Questions
      Replies: 2
      Last Post: February 10, 2015, 1:28 PM
    2. table bbcode missing
      By SSSlippy in forum VaultWiki Questions
      Replies: 3
      Last Post: August 29, 2010, 12:42 AM
    3. Help with new TABLE BBCODE plugin
      By mickknutson in forum VaultWiki Questions
      Replies: 1
      Last Post: October 20, 2009, 2:00 PM
    4. VaultWiki[table] tag and BBCode [table]
      By SAS in forum Pre-Sales Questions
      Replies: 2
      Last Post: August 3, 2009, 2:35 PM
    5. table bbcode tutorial?
      By mickknutson in forum VaultWiki Questions
      Replies: 5
      Last Post: July 7, 2009, 12:35 PM

    Tags for this Thread

    able, add, another, are, automatic, away, bbcode, but, certain, check, could, create, designers, different, does, example, external, first, forum, from, functionality, germany, give, grid, having, how, http, its, know, line, longer, more, name, need, notice, off, old, only, opening, other, out, own, path, pegasus, php, point, properly, question, quick, really, recommended, regular, rest, rewrite, row, rows, same, should, show, showthread, solution, something, space, sure, system, table, that, the, them, this, upgrade, url, vaultwiki, vbulletin, was, way, what, where, wiki, with, without, worked, would, www, you, your

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • 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 Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 5:58 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.