• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • Tripled Empty TOC

    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.

    Issue: Tripled Empty TOC

    • Issue Tools
      • View Changes
    1. issueid=1962 September 3, 2010 1:51 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Tripled Empty TOC
      Tripled Empty TOC

      I'm getting a tripled table of contents, and yet each one is empty.

      The code used is:

      [toc]NO[/toc]
      [toc][/toc]

      The end result becomes:

      http://www.thexuniverse.com/showwiki...ay?redirect=no
    Issue Details
    Issue Number 1962
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.3
    Fixed Version 3.0.4
    Milestone VaultWiki 3.0.5
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 7, 2010 2:58 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Any news?
      Reply Reply  
    2. September 7, 2010 12:19 PM
      pegasus pegasus is offline
      VaultWiki Team
      Not sure why it's getting tripled there, but it should not be appearing at all if there are 0 items to show.

      Fixed for the next build. In vault/functions/postbit.php, find:
      Code:
      			(
      				// we shouldn't show the normal toc
      				$vault->parser['toc_balance'] & $vault->misc['tocoptions']['no'] OR
      				// we don't have enough headlines for toc
      				$parser->edit_heading < 4
      			) AND
      			// we aren't manually placing a toc anyway
      			!($vault->parser['toc_balance'] & $vault->misc['tocoptions']['toc']) AND
      			!(
      				// we aren't forcing the normal toc anyway
      				$vault->parser['toc_balance'] & $vault->misc['tocoptions']['force'] AND
      				$parser->edit_heading > 0
      			)
      Replace with:
      Code:
      			(
      				(
      					// we shouldn't show the normal toc
      					$parser->edit_heading < 4 OR
      					$vault->parser['toc_balance'] & $vault->misc['tocoptions']['no']
      				) AND
      				!(
      					// we don't want to show it anyway
      					$parser->edit_heading > 0 AND
      					(
      						($vault->parser['toc_balance'] & $vault->misc['tocoptions']['force']) OR
      						($vault->parser['toc_balance'] & $vault->misc['tocoptions']['toc'])
      					)
      				)
      			)
      Reply Reply  
    3. September 7, 2010 1:08 PM
      Mokonzi Mokonzi is offline
      Senior Member
      Works fine, thanks pegasus.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 6:34 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 © 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.