• 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
    • Autolink feature conflicts with bb code

    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: Autolink feature conflicts with bb code

    • Issue Tools
      • View Changes
    1. issueid=2601 February 15, 2012 6:08 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Autolink feature conflicts with bb code

      I use Google insights bb code on my site. The search terms are often wiki titles. will show the Insights for alcohol.
      The autolink feature tries to hotlink the search term, which messes the code up. How do I prevent this from happening?
    Issue Details
    Issue Number 2601
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Not a Bug
    Priority Unknown
    Affected Version 3.0.16
    Fixed Version (none)
    Milestone (none)
    Software DependencyvBulletin 3.8
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 15, 2012 12:13 PM
      pegasus pegasus is offline
      VaultWiki Team
      Create a plugin at hook 'vault_autolinks_create'.
      Code:
      $this->skip_tags[] = 'insights';
      Reply Reply  
    2. February 15, 2012 1:42 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      That does not solve it. Its only occurs when there are multiple search phrases.
      For example:
      or results in the second word gettign hotlinked.
      Reply Reply  
    3. February 16, 2012 6:14 PM
      pegasus pegasus is offline
      VaultWiki Team
      I searched for the insights BB-Code on Google. This thread seems to be the only relevant result. Please let me know what product has added this BB-Code, or what custom BB-Code settings you are using to create it yourself.

      If "insights" is a true BB-Code (it's not handled by a preg_replace call in bbcode_parse_start or bbcode_parse_complete, and actually adds a tag to the parser), then the auto-linker should not be auto-linking if it detects that any tag in $this->skip_tags is currently open.
      Reply Reply  
    4. February 17, 2012 10:06 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      This is the code that I use as bb code:

      <script type="text/javascript" src="http://www.gmodules.com/ig/ifr?url=http%3A%2F%2Fwww.google.com%2Fig%2Fmodules%2Fgoog le_insightsforsearch_interestovertime_searchterms.xml&amp ;up__property=empty&amp;up__search_terms={param}%7C&amp;u p__location=empty&amp;up__category=0&amp;up__time_range=e mpty&amp;up__compare_to_category=false&amp;synd=open&amp; w=600&amp;h=350&amp;lang=en-US&amp;title=Google+Insights+for+Search&amp;border=%23fff fff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>
      Reply Reply  
    5. February 17, 2012 1:30 PM
      pegasus pegasus is offline
      VaultWiki Team
      Thanks, it would also be helpful if you could link to a page where hotlinking has occurred inside the tag.
      Reply Reply  
    6. February 17, 2012 5:18 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      showthread.php?t=175270
      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 10:29 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.