• 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 4.x Series
    • Bug
    • [file] BBCode not parsing images when used within a template

    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: [file] BBCode not parsing images when used within a template

    • Issue Tools
      • View Changes
    1. issueid=5074 May 20, 2017 6:12 AM
      Forsaken Forsaken is offline
      Junior Member
      [file] BBCode not parsing images when used within a template

      Here is what I am trying to do (Using [img]): http://community.adeptgamer.com/wiki...unewake_Dragon

      Here is what happens when I use [file]: http://community.adeptgamer.com/wiki-anon/?id=85

      Rather than displaying the image, the only thing shown is the link to the file.
    Issue Details
    Issue Number 5074
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category BB-Code Parsing
    Status Cannot Reproduce
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.17
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. May 20, 2017 9:26 AM
      pegasus pegasus is offline
      VaultWiki Team
      The same FILE BB-Code works as expected when NOT inserted into a template? If you include it in the main text of the same page, does it render normally?
      Reply Reply  
    2. May 20, 2017 11:35 AM
      Forsaken Forsaken is offline
      Junior Member
      I just did more testing (posted that before I went to sleep) and I've narrowed it down to the ' in the prefix title.

      This also fixed an issue with using attachment pages as icons, and also including them in general.
      Reply Reply  
    3. May 22, 2017 10:39 AM
      pegasus pegasus is offline
      VaultWiki Team
      I have not been able to reproduce the issue using the following:
      - Attachment created using a prefix that contains at least 1 '
      - Including that attachment on a page by passing it as an argument to a template parameter
      - Using that attachment as the icon for a page

      By looking at the code that is related to whether FILE appears as an image or not, this seems more related to the metadata that is generated for the image when it is saved -- when checking the title-cache during the FILE render:

      Does the cache contain the file type of the attachment?
      1. If yes: Is the file-type an image type that the browser can render inline?
        1. If yes: Render the attachment. STOP.
        2. If no, then:
      2. If no: Does the file type have an icon defined?
        1. If yes: Render the file-type icon. STOP.
        2. If no: Render the attachment as a link.


      If it was metadata related, then the expectation is that the issue would occur whether you used it in a template or not.

      However, I have not been able to get my metadata into a state where only a link renders. Are you able to reproduce the issue consistently with other attachments? If not, perhaps it is related to the History of the affected image. I cannot see the History as a guest. What does it contain?
      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 10:33 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 © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.