• 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
    • ToC listing makes no sense.

    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: ToC listing makes no sense.

    • Issue Tools
      • View Changes
    1. issueid=2562 December 18, 2011 5:21 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      ToC listing makes no sense.

      This issue is somewhere inbetween a bug and a feature request. Currently the ToC in a book lists:

      1. Book Chapter 1
      2. Book Chapter 2
      3. Book Chapter 3
      4. Book Chapter 4
      5. Book Chapter 5
      6. Paragraph 1 of book chapter 3
      7. Paragraph 2 of book chapter 3
      8. Paragraph 3 of book chapter 3
      9. Paragraph 4 of book chapter 3


      If you have a book with a lot of chapters then this becomes very confusing, because the paragraphs of the Chapter the user is reader, are not visible on page load. And because the paragraphs seem to be book chapters/

      It should look like:
      1. Book Chapter 1
      2. Book Chapter 2
      3. Book Chapter 3
      4. Paragraph 1 of book chapter 3
      5. Paragraph 2 of book chapter 3
      6. Paragraph 3 of book chapter 3
      7. Paragraph 4 of book chapter 3
      8. Book Chapter 4
      9. Book Chapter 5
    Issue Details
    Issue Number 2562
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Books / Chapters
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 3.0.15
    Fixed Version 3.0.17
    Milestone (none)
    Software DependencyvBulletin 3.8
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. December 20, 2011 3:43 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/functions/postbit.php, find and delete:
      Code:
      unset($info['start_here']);
      Find:
      Code:
      $headline_list[] = $info;
      Replace with:
      Code:
      $addline_list[] = $info;
      Find:
      Code:
      			array_unshift($temp_list, $headline_list["$last_key"]);
      			array_splice($headline_list, $last_key, 1, $temp_list);
      Replace with:
      Code:
      			array_unshift($temp_list, $addline_list["$last_key"]);
      			array_splice($addline_list, $last_key, 1, $temp_list);
      			$headline_list = $addline_list;
      Reply Reply  
    2. December 20, 2011 4:16 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Actually, it should look like:

      1. Book Chapter 1
      2. Book Chapter 2
      3. Book Chapter 3
      3.1 Paragraph 1 of book chapter 3
      3.2 Paragraph 2 of book chapter 3
      3.3 Paragraph 3 of book chapter 3
      3.4 Paragraph 4 of book chapter 3
      4. Book Chapter 4
      5. Book Chapter 5

      Similar to how wikipedia does it.
      Reply Reply  
    3. December 20, 2011 4:34 PM
      pegasus pegasus is offline
      VaultWiki Team
      I was about to duplicate the issue you posted, and your last post is how it looks to me after applying this fix. See: https://www.vaultwiki.org/demo/headline-issues-Test
      Reply Reply  
    4. December 21, 2011 5:28 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      That looks good.Will it be in 3.0.16?
      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 11:31 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.