• 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
    • BBCode Parsing on forum threads

    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.

    Results 1 to 8 of 8

    Thread: BBCode Parsing on forum threads

    • Thread Tools
      • Show Printable Version
    1. December 14, 2015 #1
      saya
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      saya is offline
      New Member
      Join Date
      September 3, 2014
      Posts
      4
      Rep Power
      0

      BBCode Parsing on forum threads

      I've been searching on vaultwiki admin control panel and I have no idea how to parse/not parse Vaultwiki's BBcodes on the forum threads. Namely, when I use the table bbcode, the table just disappears altogether.
      Reply With Quote Reply With Quote

    2. December 14, 2015 #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,959
      Blog Entries
      18
      Rep Power
      688
      Since 4.0.6, the Syntax Manager was merged into vBulletin's custom BB-Codes manager. The setting "Parse BB-Code in non-wiki messages" now appears there under the heading "Wiki-Related Options"

      However, if you are trying to use a BB-Code and it is disappearing altogether, then it is probably already parsing or attempting to parse. Usually if a BB-Code is not parsing/doesn't exist, you see all the raw tags for that BB-Code. Instead, there may be an issue with your syntax, which results in the parser being unable to make any sense of it. If it's a VaultWiki BB-Code, please post an example of what you are trying to do, so we can tell you how to correct the syntax, or we can reproduce a bug if there is one.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. December 14, 2015 #3
      saya
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      saya is offline
      New Member
      Join Date
      September 3, 2014
      Posts
      4
      Rep Power
      0
      Quote Originally Posted by pegasus View Post
      Since 4.0.6, the Syntax Manager was merged into vBulletin's custom BB-Codes manager. The setting "Parse BB-Code in non-wiki messages" now appears there under the heading "Wiki-Related Options"

      However, if you are trying to use a BB-Code and it is disappearing altogether, then it is probably already parsing or attempting to parse. Usually if a BB-Code is not parsing/doesn't exist, you see all the raw tags for that BB-Code. Instead, there may be an issue with your syntax, which results in the parser being unable to make any sense of it. If it's a VaultWiki BB-Code, please post an example of what you are trying to do, so we can tell you how to correct the syntax, or we can reproduce a bug if there is one.
      As you probably already know, ever since vBulletin got an upgrade, it came with a built-in table bbcode. I basically want to override this built-in one that doesn't allow col/rowspans and other options and use Vaultwiki's. Using the vbulletin's table bbcode works fine and parses correctly:

      Code:
      [TABLE="width: 500"]
      [TR]
      [TD]a[/TD]
      [TD]c[/TD]
      [/TR]
      [TR]
      [TD]d[/TD]
      [TD]s[/TD]
      [/TR]
      [TR]
      [TD]f[/TD]
      [TD]g[/TD]
      [/TR]
      [/TABLE]
      while vaultwiki's doesn't work and makes it just disappear:

      Code:
      [table] class="tborder" cellpadding="4" cellspacing="1" border="0"
      |-
      | new cell
      | style="background-color: red" colspan="2" | This cell spans 2 columns.
      |- align="center"
      | class="thead" | new cell in new row
      | row 2 cell 2
      | row 2 cell 3
      |-
      [/table]
      I checked the table bbcode on the bbcode manager, and the option "Parse BB-Code in non-wiki messages?" was set to No so I checked Yes, but there seems to be a conflict with the built-in one:

      "There is already a BB code tag named 'table'. You may not create duplicate names."
      Reply With Quote Reply With Quote

    4. December 15, 2015 #4
      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,959
      Blog Entries
      18
      Rep Power
      688
      Although you can get around this on a new installation by changing the tag name from "table" to something else, existing wikis that have already started using it as "table" won't be able to do that.

      This is a known bug and it is fixed in the next release. In vault/core/model/plugins/bbcode/vb3.php, find:
      Code:
      	public function bbcode_fetch_tags($orig_list)
      	{
      		$this->stored_list = $orig_list;
      	}
      Replace with:
      Code:
      	public function bbcode_fetch_tags(&$orig_list)
      	{
      		$this->stored_list = $orig_list;
      
      		if (VB_AREA == 'AdminCP' AND strpos($_SERVER['PHP_SELF'], 'bbcode.php') !== false)
      		{
      			$tagger = vw_Hard_Core::model('Tag');
      
      			$table = $tagger->get_tag_name('vw_table_tag');
      			$heading = $tagger->get_tag_name('vw_section_tag');
      			$rule = $tagger->get_tag_name('vw_horizrule_tag');
      
      			if ($table == 'table')
      			{
      				unset($orig_list['no_option']['table']);
      			}
      
      			if ($heading == 'h')
      			{
      				unset($orig_list['option']['h']);
      			}
      
      			if ($rule == 'hr')
      			{
      				unset($orig_list['no_option']['hr']);
      			}
      		}
      	}
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. December 16, 2015 #5
      saya
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      saya is offline
      New Member
      Join Date
      September 3, 2014
      Posts
      4
      Rep Power
      0
      Quote Originally Posted by pegasus View Post
      Although you can get around this on a new installation by changing the tag name from "table" to something else, existing wikis that have already started using it as "table" won't be able to do that.

      This is a known bug and it is fixed in the next release. In vault/core/model/plugins/bbcode/vb3.php, find:
      Code:
      	public function bbcode_fetch_tags($orig_list)
      	{
      		$this->stored_list = $orig_list;
      	}
      Replace with:
      Code:
      	public function bbcode_fetch_tags(&$orig_list)
      	{
      		$this->stored_list = $orig_list;
      
      		if (VB_AREA == 'AdminCP' AND strpos($_SERVER['PHP_SELF'], 'bbcode.php') !== false)
      		{
      			$tagger = vw_Hard_Core::model('Tag');
      
      			$table = $tagger->get_tag_name('vw_table_tag');
      			$heading = $tagger->get_tag_name('vw_section_tag');
      			$rule = $tagger->get_tag_name('vw_horizrule_tag');
      
      			if ($table == 'table')
      			{
      				unset($orig_list['no_option']['table']);
      			}
      
      			if ($heading == 'h')
      			{
      				unset($orig_list['option']['h']);
      			}
      
      			if ($rule == 'hr')
      			{
      				unset($orig_list['no_option']['hr']);
      			}
      		}
      	}
      There seems to be another problem; changing options on Wiki-Related Options under this BBcode seems to not be saved.
      http://i.imgur.com/Fmbtxy7.png

      These are the default options. Changing any of them and saving simply reverts them back to this default. I wanted to keep the table BBcode of vBulletin if I could help it so I changed the Vaultwiki's table bbcode to [tbl] instead, I'm not sure if that's the cause or not, however. I have not applied the fix that you suggested due to changing it to tbl.
      Reply With Quote Reply With Quote

    6. December 16, 2015 #6
      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,959
      Blog Entries
      18
      Rep Power
      688
      I see a log entry for 4.0.8:
      Fixed Bug: bb-code options save off with gzip encoding in vB
      You might try disabling gzip encoding: Settings > Options > Cookies and HTTP Header Options > GZIP HTML Output = No.
      Also, the white-list field will not work in vBulletin until the full fix for the above is published.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    7. December 18, 2015 #7
      saya
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      saya is offline
      New Member
      Join Date
      September 3, 2014
      Posts
      4
      Rep Power
      0
      Quote Originally Posted by pegasus View Post
      I see a log entry for 4.0.8:

      You might try disabling gzip encoding: Settings > Options > Cookies and HTTP Header Options > GZIP HTML Output = No.
      Also, the white-list field will not work in vBulletin until the full fix for the above is published.
      Alright that works perfectly, thanks. Now there's another problem; after I finish posting a table then edit the post and check the source code, the BBcode turns from [tbl] (changed from the default table of Vaultwiki's) back to [table] (the original). It's a bit minor but because [table] is the vBulletin's BBcode, using the mediawiki formatting on [table] just makes it disappear.
      Reply With Quote Reply With Quote

    8. December 19, 2015 #8
      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,959
      Blog Entries
      18
      Rep Power
      688
      Thanks. See: https://www.vaultwiki.org/issues/4479/
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. Set automatically parsing
      By hollosch in forum VaultWiki Questions
      Replies: 3
      Last Post: January 11, 2016, 9:07 AM
    2. HTML Parsing
      By bazaarocommunity in forum VaultWiki Questions
      Replies: 6
      Last Post: September 20, 2015, 12:53 AM
    3. Parsing CSS3 in DIV
      By tommythejoat in forum VaultWiki Questions
      Replies: 5
      Last Post: December 3, 2014, 7:56 PM
    4. need tabbed threads
      By IggyP in forum Pre-Sales Questions
      Replies: 2
      Last Post: February 13, 2014, 4:41 PM
    5. Is it possible to post a wiki article in a forum which also contains threads?
      By howard in forum VaultWiki Questions
      Replies: 3
      Last Post: June 30, 2011, 6:10 PM

    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 6:45 PM.
    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 © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.