• 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
    • Why am I getting double page Contents boxes

    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: Why am I getting double page Contents boxes

    • Issue Tools
      • View Changes
    1. issueid=2407 April 16, 2011 5:24 PM
      mickknutson mickknutson is offline
      Regular Member
      Why am I getting double page Contents boxes

      http://www.blincmagazine.com/forum/wiki/Records

      It shows 2 Contents boxes side-by-side and they are identical.
    Issue Details
    Issue Number 2407
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Wiki Pages
    Status Fixed
    Priority 6 - Dev-Related Tasks
    Affected Version 3.0.11
    Fixed Version 3.0.14
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 17, 2011 12:50 AM
      pegasus pegasus is offline
      VaultWiki Team
      I'll need to see the source for that article. Please PM me access to the Source tab or post the source in a CODE block here.
      Reply Reply  
    2. April 17, 2011 12:54 PM
      pegasus pegasus is offline
      VaultWiki Team
      Make sure your template vault_article_toc is not modified and that it only contains one div with class "special_toc". I can't reproduce this issue here, and it still persists after editing the articles.
      Reply Reply  
    3. May 14, 2011 12:15 PM
      mickknutson mickknutson is offline
      Regular Member
      The toc was NOT edited at all, but here is the code anyways:

      Code:
      <div class="special_toc" id="toc_{vb:raw toc_pos}">
      	<div class="collapse">
      		<a class="collapse" id="collapse_tocrow_{vb:raw toc_pos}" href="{vb:var relpath}#top" title=""><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.info_options}_40b.png" alt="" border="0" /></a>
      		<h2 class="vw-head">
      			<vb:if condition="$toc_title">{vb:raw toc_title} - </vb:if>{vb:rawphrase vault_contents}
      		</h2>
      	</div>
      	<div class="alt2 toc_links" id="tocrow_{vb:raw toc_pos}">
      		<ul class="vw-list level-0">
      			{vb:raw tocbits}
      			<!-- template hook: table of contents {vb:raw post.postid} -->
      		</ul>
      	</div>
      </div>
      <vb:if condition="$genurl">
      <script type="text/javascript">
      <!--
      Toc_Create_URLs('toc_{vb:raw toc_pos}');
      //-->
      </script>
      </vb:if>
      Reply Reply  
    4. May 14, 2011 1:05 PM
      pegasus pegasus is offline
      VaultWiki Team
      The only way I can get this to occur is if a particular line in vault/plugins/postbit.php is commented out. There is no other way that I can figure out unless your PHP is broken, you are running vBulletin inside a PHP namespace, or you created a plugin which creates the table of contents again. If you want to PM me FTP access, I can determine which of these is actually the case.
      Reply Reply  
    5. July 17, 2011 3:58 AM
      mickknutson mickknutson is offline
      Regular Member
      I have tracked down what causes this issue.
      When I have a document that has more than 3 H="2" sections, and belongs to a book, I get the double boxes like:
      http://www.blincmagazine.com/forum/wiki/Records

      I tried to change them to H="3" but that did not fix it. When I remove the book association, that does remove the double entry.

      Here is a page with many H sections, but no book entry, and the boxes are gone
      http://www.blincmagazine.com/forum/w...ity_Statistics


      Please let me know what I can do to help you track this down.
      Reply Reply  
    6. July 17, 2011 12:33 PM
      pegasus pegasus is offline
      VaultWiki Team
      Okay, in order for this to occur, a number of things must be true:
      • The article must contain at least four headline tags and the TOC must not be hidden.
      • VaultWiki: Article Display Options > Show Book Table of Contents in Chapters? must be set to Yes.
      • The article must be a chapter of a book.
      • The book must also be the chapter in a higher level book.

      I am looking into a fix now.
      Reply Reply  
    7. July 17, 2011 1:01 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed. In vault/factory/postbit.php, find:
      Code:
      					$headline_list = $this->book_factory->construct_headlines($ibookcache, end(explode(',', $this->book['parentlist'])), $toc_title);
      					$this->table_of_contents($headline_list, $toc_title);
      				}
      				unset($ibookcache);
      
      				$vault->misc['article_can_have_books'] = false;
      			}
      
      			if (!$headline_list)
      Replace with:
      Code:
      					$headline_list = $this->book_factory->construct_headlines($ibookcache, reset(explode(',', $this->book['parentlist'])), $toc_title);
      					$this->table_of_contents($headline_list, $toc_title);
      				}
      				unset($ibookcache);
      
      				$vault->misc['article_can_have_books'] = false;
      			}
      
      			if (!$headline_list AND !$toc_title)
      This occurred because the TOC constructor expected the entire book tree to be in memory when creating the Book TOC. However, this isn't the case - we only have the current level of the tree and below.
      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 12:52 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.