• 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
    • url links do not parse

    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: url links do not parse

    • Issue Tools
      • View Changes
    1. issueid=4653 April 5, 2016 2:43 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      url links do not parse

      Im not sure if this is a bug or a setting somewhere but url links do not automatically parse in my wiki articles. I currently have autolinks turned off and need to keep it that way. I'm running the latest version on XF.
    Issue Details
    Issue Number 4653
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.10
    Fixed Version 4.0.11
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 5, 2016 2:56 PM
      pegasus pegasus is offline
      VaultWiki Team
      On the Edit tab, is Additional Options > Automatically parse links in text unchecked? Raw URLs will only be automatically parsed as if the URL BB-Code was used if this option is checked.

      Why, might I ask, do autolinks NEED to be turned off? Are you aware of an add-on conflict?
      Reply Reply
    2. April 5, 2016 5:47 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      It concerns an internal corporate wiki and the autolinks confuse workers. Therefore it needs to be turned off.
      But urls need to be automatically be parsed in all wiki articles.
      Reply Reply
    3. April 6, 2016 10:01 AM
      pegasus pegasus is offline
      VaultWiki Team
      That's fine. Use the Edit tab option I mentioned, and URLs will be automatically parsed.
      Reply Reply
    4. April 6, 2016 5:51 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      There is no way that people will do that for hundreds of wikis. Too complex of a solution. I need a global function.
      Reply Reply
    5. April 7, 2016 9:41 AM
      pegasus pegasus is offline
      VaultWiki Team
      A global function would be inconsistent with the forum function.

      The forum function only performs raw URL replacement at the time content is saved, by actually replacing it with a URL tag. Therefore only newly created wikis and newly entered URLs would need to be automatically converted, which is easy to do by checking this box at the time you enter them.

      There should be no existing raw URLs unless those were intended to be raw by the original enterer (e.g. by using NOPARSE or opting out of auto-convert). Even if you imported old content from vBulletin, vBulletin had the same behavior of replacing raw URLs at the time the content was saved. Therefore, any existing raw URLs were already replaced before the import.

      I don't see how this is "too complex" of a solution, since it is the same behavior you have been working with for vBulletin posts and since the beginning of VaultWiki 3.

      The only place I might see any inconsistency is whether the checkbox is selected by default or not. It is not clear to me at this moment what the default checked state is and whether that is configurable in normal forums, but that can easily be altered by the end-user at the time they input their raw URLs.
      Reply Reply
    6. April 7, 2016 9:02 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      This install does not concern a vb import. Its a new XF install with hundreds of new wiki articles. Going into each article, activating the parse option and save it would be too complex. And for new articles people will simply not use it as they describe the edit page as confusing, too unwieldy and complex. I guess that's the price of having many options & functions.

      Is there a query I can run to activate the parse links option for all articles?
      Reply Reply
    7. April 8, 2016 11:38 AM
      pegasus pegasus is offline
      VaultWiki Team
      As I said, XenForo only parses links at the time content is saved. So the articles would still need to be saved again, even if you use a query to check the box. And in order to trigger the parser, the text will have to look like it was changed in some way.

      The easiest way to do it is by modifying vault/core/controller/cp/counter/url/vw.php. Find:
      Code:
      $itemdm->set_info('skip_revision', 1);
      After it, add:
      Code:
      if (isset($item['flags']) AND !($item['flags'] & 4)) { $itemdm->set_info('parse_link', 1);
      $itemdm->set_info('skip_revision', 0);
      if (!empty($item['pagetext'])) $item['pagetext'] .= "[comment]auto-converted urls[/comment]"; }
      Then run the tool in Maintenance > Counters / Caches > Rebuild Page URLs. If this succeeds, you should reverse the edits so it doesn't happen every time you run the tool.

      This process should do the following:

      If the page does not already have the box checked and if the page has text:
      - create a new revision (add an editor comment to trigger the revision)
      - check the box

      To set the default checked state to checked for new articles, edit vault/core/view/ui/edit/page/vw.php. Find:
      Code:
      $checked = array();
      After it, add:
      Code:
      if (empty($edit['page']) AND empty($edit['preview'])) $edit['flags'] = 4;
      Reply Reply
    8. April 29, 2016 12:10 PM
      pegasus pegasus is offline
      VaultWiki Team
      This has been treated as a bug and is fixed in the next release:
      - The default state for the checkbox in question was inconsistent with the default behavior on both vBulletin and XenForo platforms.

      As of 4.0.11, the checkbox will now be checked by default when creating new wiki pages.

      The state will still be preserved when editing existing pages -- saving the state is intentional, even though the default forum behavior does not save the state (we always considered this to be a bug in vBulletin). Existing saved states from prior to 4.0.11 will not be changed since it is impossible to know which states were intentional or were a result of the bug.
      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:21 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.