• 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
    • Link Codes Break Randomly

    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: Link Codes Break Randomly

    • Issue Tools
      • View Changes
    1. issueid=661 July 5, 2009 9:19 AM
      Jella Jella is offline
      Regular Member
      Link Codes Break Randomly

      weird just started - frame is breaking and not showing on Pattern B page http://tvlampforum.com/showwiki.php?...lle+Patterns+B

      see 2nd and 3rd image


      I've done nothing different on above page, all frames show on Pattern A page here http://tvlampforum.com/showwiki.php?...lle+Patterns+A

      What do you think Ted?
    Issue Details
    Issue Number 661
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 2.3.1
    Fixed Version 2.3.2
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. July 5, 2009 12:15 PM
      pegasus pegasus is offline
      VaultWiki Team
      It looks like vBulletin tried to word-wrap the image code. For now, you can work around this by adding spaces between the | signs.
      Reply Reply  
    2. July 5, 2009 1:00 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed for the next build(s).

      In AdminCP -> Plugins & Products -> Plugin Manager -> CES VaultWiki Images -> Add No Option Image, find:
      PHP Code:
      'external_callback' => 'handle_bbcode_wiki_image', 
      Add after:
      PHP Code:
      'disable_wordwrap' => true, 
      In AdminCP -> Plugins & Products -> Plugin Manager -> CES VaultWiki Images -> Image Function, find:
      PHP Code:
      $safe = htmlspecialchars_uni(strip_tags($alt)); 
      Replace with:
      PHP Code:
      $safe = $parser->do_word_wrap(htmlspecialchars_uni(strip_tags($alt))); 
      In vault/special_plugins_bbcode.php, find:
      PHP Code:
      $linka['forumid'] = $vault->namespacecache["$nsid"]['forumid']; 
      Add before:
      PHP Code:
      $text = $parser->do_word_wrap($text); 
      Find (x3):
      PHP Code:
      'external_callback' => 'handle_bbcode_wiki_main', 
      Add after:
      PHP Code:
      'disable_wordwrap' => true, 
      Find:
      PHP Code:
      'external_callback'    => 'handle_bbcode_autolink', 
      Add after:
      PHP Code:
      'disable_wordwrap' => true, 
      In vault/special_plugins_autolink.php, find:
      Code:
      				if (array_search($surround['name'], $vault->parser['autolink_skip_tags']))
      				{
      					return $text;
      				}
      Replace with:
      Code:
      				if (array_search($surround['name'], $vault->parser['autolink_skip_tags']))
      				{
      					return $parser->do_word_wrap($text);
      				}
      Find:
      Code:
      		if (!$vault->parser['autolink_count'])
      		{
      			return $text;
      		}
      Replace with:
      Code:
      		if (!$vault->parser['autolink_count'])
      		{
      			return $parser->do_word_wrap($text);
      		}
      Find:
      Code:
      		return $text;
      	}
      
      	$vault->parser['autolink_count']++;
      
      	return '[noparse][AUTOLINK]' . $text . '[/AUTOLINK][/noparse]';
      Replace with:
      Code:
      		return $parser->do_word_wrap($text);
      	}
      
      	$vault->parser['autolink_count']++;
      
      	return $parser->[noparse]do_word_wrap('[AUTOLINK]' . $text . '[/AUTOLINK]');[/noparse]
      Reply Reply  
    3. July 5, 2009 5:10 PM
      Jella Jella is offline
      Regular Member
      Ahh I see, amazing how snappy you are with code Ted, its very impressive. I will get to it.
      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 7:04 PM.
    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.