• 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
    • Headline behavior at top level

    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: Headline behavior at top level

    • Issue Tools
      • View Changes
    1. issueid=655 July 1, 2009 6:47 PM
      tommythejoat tommythejoat is offline
      Regular Member
      Headline behavior at top level
      Heading level 2 [H=2] does not reset to top level

      If heading level 2 is restricted in some way, we need to have the behavior documented.

      The expectation is that a document can be subdivided into as many levels as one likes, going from H =2
      H =3
      H = 3
      H = 4
      H = 4
      H = 2
      H = 3
      H = 4

      Or any other pattern withing the allowed values and the table of contents will display with top levels incrementings like.

      1
      1.1
      1.2
      1.2.1
      1.2.2
      2
      2.1
      2.1.1

      In the above example. If this coding scheme is used the second occurrence of 2 is treated like it was 3.

      There is an example of the bad behavior on our message board at http://mb.nawcc.org/showwiki.php?tit...+contents+test

      Our Executive Editor has said that he considers this a priority level 1.
    Issue Details
    Issue Number 655
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Headlines / Sections
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 2.3.1
    Fixed Version 2.3.2
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. July 1, 2009 6:58 PM
      pegasus pegasus is offline
      VaultWiki Team
      For clarification, priority 1 is reserved for XSS flaws.
      Priority 2 is reserved for database and fatal errors.
      Priority 3 on is for all others.

      As we have no priority 1 or 2 pending, I will look into this tonight.
      Reply Reply  
    2. July 1, 2009 7:05 PM
      tommythejoat tommythejoat is offline
      Regular Member
      Thanks for the clarification. That was my intuitive understanding, but since we have put the gentleman in charge, I transferred his priority setting.

      I will inform our team of what priority levels mean.
      Reply Reply  
    3. July 1, 2009 7:32 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/special_functions_postbit.php, find:
      Code:
      		if ($lastlevel['real'] > $level)
      		{
      			$newlevel = $lastlevel['new'] - 1;
      		}
      Replace with:
      Code:
      		if ($lastlevel['real'] > $level)
      		{
      			$newlevel = ($level > 2 ? $level : 2);
      		}
      Find:
      PHP Code:
      if ($header_level < $last_level) 
      Replace with:
      PHP Code:
      while ($header_level < $last_level AND $current_level > $header_level) 
      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 5:51 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.