• 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
    • Custom namspace tag breaks if entry title is longer than 27 characters

    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: Custom namspace tag breaks if entry title is longer than 27 characters

    • Issue Tools
      • View Changes
    1. issueid=1924 August 16, 2010 8:59 AM
      dvsDave dvsDave is offline
      Regular Member
      Custom namspace tag breaks if entry title is longer than 27 characters
      wrapping a namespace tag around a title results in an extra space being inserted at the 28th character mark

      I'm not sure if its the autolink or the custom bbcode, but if the title of a wiki entry is longer than 27 characters, it inserts a space at the 28th character mark and thus breaking the correct link to the article.

      Even if I type example

      It goes to http://www.controlbooth.com/wiki/Col...Run+ning+C rew (note the extra + in the word running)
    Issue Details
    Issue Number 1924
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Namespaces
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.2
    Fixed Version 3.0.3
    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. August 16, 2010 12:42 PM
      pegasus pegasus is offline
      VaultWiki Team
      Need some context:
      • Where does the link appear? What page?
      • Is the link added directly, or as part of a template, or is it passed as a parameter to a template?
      • What is the code used to add the link?
      Reply Reply  
    2. August 16, 2010 1:00 PM
      dvsDave dvsDave is offline
      Regular Member
      The bad link appears here: http://www.controlbooth.com/forums/e...tml#post188959

      The link is added by wrapping the namespace bbcode tag around the title, in this case [collab]title[/collab]

      the bbcode was autogenerated by the namespace manager in vaultwiki.
      Reply Reply  
    3. August 16, 2010 1:13 PM
      pegasus pegasus is offline
      VaultWiki Team
      What I meant, what is the code EXACTLY as it was entered into the post?
      Code:
      [collab]Building and Training a Running Crew[/collab]
      There are several ways to enter the BB-Code so that it links correctly, so I just want to make sure I have my bases covered. There are two links to the article in that post, what is the code for BOTH of them?
      Reply Reply  
    4. August 16, 2010 1:26 PM
      dvsDave dvsDave is offline
      Regular Member
      Here is the relevant excerpt of the post:

      This is a very good article, [collab]Building and Training a Running Crew[/collab] , also Here for some basic material for a running crew they should also probably know since not all of them will just be on board.
      Reply Reply  
    5. August 16, 2010 1:41 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/functions/bbcode/handle.php, find:
      Code:
      	if (!$parser->options['do_html'])
      Add before:
      Code:
      	// remove double spaces -- fixes issues with wordwrap
      	$option = str_replace('  ', '', $option);
      As for the problem with the URL tag, what version of vBulletin are you running?
      Reply Reply  
    6. August 16, 2010 1:53 PM
      dvsDave dvsDave is offline
      Regular Member
      I uploaded the files for 4.0.5 and ran the upgrade script, but my admincp is still claiming 4.0.4 PL1, but my footer tag line says 4.0.5
      Reply Reply  
    7. August 16, 2010 2:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      I cannot reproduce the exact issue here (only if the linked text is one word longer than 27 characters, and not passed as the optional parameter).

      If you are using the "DragonByte Tech: Advanced User Tagging" mod, this is known to cause the issue, since it requests that the wiki parser recurse itself. This is a bug in that mod. Re-calling the parser causes word-wrapping on already word-wrapped areas (or areas that word-wrapping skipped on purpose). It might also double-HTML-safe some things which wouldn't look right. Ideally, it should set the word-wrap character limit to 0 during its second parse, or more ideally, do its parsing during the first parse. If disabling the mod helps, I would suspect that this is also a bug in vBulletin that applies word wrapping to text that is part of an HTML tag.
      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 1:49 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.