• 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
    • Quotes (") Not Always Parsed

    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: Quotes (") Not Always Parsed

    • Issue Tools
      • View Changes
    1. issueid=637 June 20, 2009 5:45 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Quotes (") Not Always Parsed
      Quotes (") Not Always Parsed when used along with a template in an article

      I've had an article using the color BBCode:
      HTML Code:
      [COLOR="Lime"]Letter[/COLOR]
      I've done this within a template, but the quotes " aren't being parsed, and instead are being replaced with "
      When I edit them and remove the quote, it parses the BBCode properly, sometimes, while sometimes holding the old quotes in place.
      This was an article created and unchanged since 2.3.0
    Issue Details
    Issue Number 637
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 6 - Dev-Related Tasks
    Affected Version 2.3.1
    Fixed Version 2.3.1
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 20, 2009 11:27 AM
      pegasus pegasus is offline
      VaultWiki Team
      Please link to the template where the problem is occurring.
      Reply Reply  
    2. June 20, 2009 6:21 PM
      Mokonzi Mokonzi is offline
      Senior Member
      http://www.thexuniverse.com/forum/sh...itle=Barracuda

      That was the article that had the problem, but since editing it gone finally (after several attempts at editing).

      I assume it was the upgrade process that caused it.
      Reply Reply  
    3. June 20, 2009 6:35 PM
      Mokonzi Mokonzi is offline
      Senior Member
      I'm also getting a formatting error in the editor... can't see why atm... can you have a look as well?

      Thanks for the help matey.
      Reply Reply  
    4. June 20, 2009 8:53 PM
      pegasus pegasus is offline
      VaultWiki Team
      The following is causing problems:
      HTML Code:
      <a href="http://www.thexuniverse.com/forum/payments.php" class="mainmenu">&lt;img src="http://www.paypal.com/en_US/i/btn/x-click-but04.gif" style="opacity:0.8;filter:alpha(opacity=80)"
      onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100"
      onmouseout="this.style.opacity=0.8;this.filters.alpha.opacity=80"
      border="0" alt="Please help us to develop!" hspace="3" /></a>
      It attempts to access "this.filters" which I believe is only available is some versions of IE. Accessing a null object like this causes Javascript to crash in other browsers.
      Reply Reply  
    5. June 21, 2009 2:58 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Odd. How come I only get it in the wiki section of the site?
      Reply Reply  
    6. June 21, 2009 6:52 PM
      pegasus pegasus is offline
      VaultWiki Team
      In showwiki.php, find:
      PHP Code:
      $xml->add_tag('url', $threadinfo['url'] . $vbulletin->session->vars['vw_sessionurl_d'] . "do={1:tabid}"); 
      Replace with:
      PHP Code:
      $xml->add_tag('url', $threadinfo['url'] . $vbulletin->session->vars['vw_sessionurl_js'] . "do={1:tabid}"); 
      Reply Reply  
    7. June 22, 2009 2:39 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Fixed it like a dream
      Reply Reply  
    8. June 22, 2009 3:20 AM
      pegasus pegasus is offline
      VaultWiki Team
      Great. According to what I've seen in other boards with this problem, this should also have fixed the bug you originally reported in the first post.

      Marked as fixed.
      Reply Reply  
    9. June 22, 2009 9:45 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Thanks pegasus
      Reply Reply  
    10. June 24, 2009 5:03 PM
      Mokonzi Mokonzi is offline
      Senior Member
      Still getting the error in the first post, but only when I use quotes in a template conditional, as soon as I remove the quotes, it parses the color BBCode correctly.
      Reply Reply  
    11. June 24, 2009 5:42 PM
      pegasus pegasus is offline
      VaultWiki Team
      Please post the entire template conditional.
      Reply Reply  
    12. June 25, 2009 3:49 AM
      Mokonzi Mokonzi is offline
      Senior Member
      I get it any template I try.
      To clarify (as I'm not sure I've explained myself fully).
      The BBCode isn't in the template, but is used in the article where I insert the template.
      Anyways, one of the templates is:
      [html][table] cellpadding="5" cellspacing="0" align="right" width="250"
      |-
      | style="padding-left: 5px; padding-top: 5px; padding-bottom: 5px; padding-right: 0px;" |
      Ship Information
      {{{Image}}}
      Name{{{Ship}}}
      Race{{{Race}}}
      Class{{{ClassShort}}}, {{{ClassLong}}}
      Predecessor{{{Predecessor}}}
      Successor{{{Successor}}}
      Variants{{{Variants}}}
      [table] class="tborder" cellpadding="5" cellspacing="0" align="right" width="250"
      |-
      | class="alt3" style="font-size:10px" width="20%" | XbtF
      | class="alt3" style="font-size:10px" width="20%" | X-T
      | class="alt3" style="font-size:10px" width="20%" | [b]X
      Reply Reply  
    13. June 25, 2009 12:43 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/special_class_template.php, find and remove:
      Code:
      [noparse]			$template_text = $this->process_template_params($template_cache[$threadids["$t"]]['pagetext'], $args);
      
      			$template_text = $this->parser->parse_bbcode(
      				$template_text,
      				$this->parser->options['do_smilies'],
      				$this->parser->options['do_html']
      			);[/noparse]
      Find:
      PHP Code:
      $threadinfo['templates'][$this->parser->recursion['template'] - 1]["$title"][intval($instance_no["$title"])] = array('args' => $args); 
      Add before:
      Code:
      [noparse]			$template_text = $this->process_template_params($template_cache[$threadids["$t"]]['pagetext'], $args);
      
      			$template_text = $this->parser->parse_bbcode(
      				$template_text,
      				$this->parser->options['do_smilies'],
      				$this->parser->options['do_html']
      			);[/noparse]
      Reply Reply  
    14. June 26, 2009 11:22 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Fixed perfectly as always...

      PS there's a query/bug report in the Images section of the project I don't think you've seen...
      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:20 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.