• 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
    • Missing Image Links

    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: Missing Image Links

    • Issue Tools
      • View Changes
    1. issueid=4445 November 10, 2015 1:40 PM
      Gossamer Gossamer is offline
      Junior Member
      Missing Image Links

      I've noticed that when I add an image as an attachment, and then add that image via a template to a wiki page, the image is not clickable.

      This is the code I'm using currently:
      Code:
      [template]RaceBox
      | Image = [file]Akhavi01|none|border[/file]
      | Description = [I]*This is a restricted race.  Can only be played if you purchase this race from the Character Creation shop[/I][/template]
      If I include the [*file] code outside of the template, it generates normally and includes the link to that uploaded file's page. But when the code is inside of a template, the link does not get created.
    Issue Details
    Issue Number 4445
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Attachments
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.7
    Fixed Version 4.0.8
    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. November 11, 2015 8:05 AM
      pegasus pegasus is offline
      VaultWiki Team
      This will happen because TEMPLATE is considered a linking tag too, and linking tags will not create links inside of other links. Since TEMPLATE is a special case, we can try to ignore this if TEMPLATE is being used as a template and not as a link.

      In vault/core/model/parser/handle/vw.php, find:
      Code:
      if (in_array($surrounding['name'], $link_tags))
      Replace with:
      Code:
      					if ($surrounding['name'] == vw_Hard_Core::model('Tag')->get_tag_name('vw_template_tag') AND empty($surrounding['option']))
      					{
      						continue;
      					}
      					else if (in_array($surrounding['name'], $link_tags))
      Reply Reply
    2. November 26, 2015 12:20 AM
      Gossamer Gossamer is offline
      Junior Member
      That worked! Thanks!
      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: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.