• 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
    • Problem: IMG tag showing up in Table of Contents

    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: Problem: IMG tag showing up in Table of Contents

    • Issue Tools
      • View Changes
    1. issueid=2002 September 23, 2010 6:49 PM
      Submerge Submerge is offline
      New Member
      Problem: IMG tag showing up in Table of Contents
      IMG tag showing up in Table of Contents

      When placing an image within the Headline tag, the Table of Contents shows the IMG tag text along with the text. This causes for an absurdly long anchor text for that specific section.

      Looking for the IMG tag to be parsed out of the Table of Contents. So neither the images, nor the unparsed text for that image show up in the Table of Contents. Only the text that is not the IMG tag is displayed.
    Issue Details
    Issue Number 2002
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Wiki Pages
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 3.0.4
    Fixed Version 3.0.5
    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 23, 2010 6:50 PM
      Submerge Submerge is offline
      New Member
      Here is an example of the problem:
      http://www.vaultwiki.org/demo/Interp...tuff#post12304
      Reply Reply  
    2. October 3, 2010 2:24 PM
      Submerge Submerge is offline
      New Member
      Just want to double check, I'm guessing this issue won't have a fix until VaultWiki 4.0.0 is released around Oct 31st...if it hits its anticipated release even? Because that's a fairly long time for a bug fix that's pretty critical for what I'm looking for in this software.
      Reply Reply  
    3. October 3, 2010 2:31 PM
      pegasus pegasus is offline
      VaultWiki Team
      We typically have maintenance releases about once a month. You can probably expect a patch for this around the third week of October. As I usually do, I will try to post a file edit before then.

      Based on the time it took to code VaultWiki 3 (for both 3 and 4 we have had to wait for other third-party products - vBulletin, XenForo - to be ready before we could make significant headway), we revised our timeline for VaultWiki 4: http://www.vaultwiki.org/articles/64/
      Reply Reply  
    4. October 3, 2010 6:44 PM
      Submerge Submerge is offline
      New Member
      Okay awesome man. I just didn't want to wait that long to start getting VaultWiki on the forum. I'll try to stay posted on when this file edit comes out, because that's all I need to start this thing really. If you could update me on when that occurs, I'd be very appreciative as well.
      Reply Reply  
    5. October 3, 2010 7:04 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed for the next build. In vault/functions/bbcode.php, find:
      Code:
      #endregion
      Add before:
      Code:
      function strip_imgcode($text)
      {
          $text = preg_replace('#\[(attach(?:=(?:right|left))?)\](\d+)\[/(attach)\]#i', '', $text);
          $text = preg_replace('#\[img\]\s*(https?://([^*\r\n]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', '', $text);
          $text = preg_replace('#\[sigpic\](.*)\[/sigpic\]#siU', '', $text);
      
          return $text;
      }
      In vault/functions/bbcode/headline.php, find:
      Code:
          $header_title = trim(strip_tags($text));
      Replace with:
      Code:
          $header_title = trim(strip_tags(strip_imgcode($text)));
      Reply Reply  
    6. October 5, 2010 2:59 PM
      Submerge Submerge is offline
      New Member
      Thanks, will do this ASAP!

      edit: Works great!
      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 9:48 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.