• 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
    • Templates not working

    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: Templates not working

    • Issue Tools
      • View Changes
    1. issueid=2368 June 20, 2011 7:51 PM
      Bozza Bozza is offline
      New Member
      Templates not working
      Cannot get templates to work as desired

      We recently installed vaultwiki v3.0.11 on vbulletin 4.1.3

      We are trying to set up and use templates, so far without success. I have noted there are a couple of articles here that indicate there should be a Template Namespace with static ID 2 - that doesn't appear in our Namespace Manager. Is this okay?

      We created a new namespace called Template and assigned it the template namespace function. I have created a couple of test template articles, and then linked to them from a wiki article. However, in the wiki article they are appearing as the name of the template and with the blue link (that will take you to the template article) but they don't pull in the template contents.

      Any suggestions?
    Issue Details
    Issue Number 2368
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Templates
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.12
    Fixed Version 3.0.12
    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 21, 2011 1:07 AM
      pegasus pegasus is offline
      VaultWiki Team
      The format should be
      Code:
      [template]Name|args[/template]
      Using the following makes it a link only:
      Code:
      [template=Name]text[/template]
      This is as described on your Special:WikiCodeList page.
      Reply Reply  
    2. June 21, 2011 2:05 AM
      Bozza Bozza is offline
      New Member
      Quote Originally Posted by pegasus
      The format should be
      Code:
      [template]Name|args[/template]
      This IS what we are using, but it still appears as a link rather than a template.
      Reply Reply  
    3. June 21, 2011 4:38 AM
      pegasus pegasus is offline
      VaultWiki Team
      Can you link to a page where the template code isn't working, so I can have a look?
      Reply Reply  
    4. June 21, 2011 11:58 AM
      Bozza Bozza is offline
      New Member
      Quote Originally Posted by pegasus
      Can you link to a page where the template code isn't working, so I can have a look?
      http://www.northstandchat.com/showwi...tle=Table-test

      Thanks for looking at this Pegasus. The code at the beginning of the article calls the template called "test".
      Reply Reply  
    5. June 21, 2011 2:57 PM
      pegasus pegasus is offline
      VaultWiki Team
      I'm not sure if this is your issue, but due to other screwups in Special:WikiCodeList, it's looking likely.

      I believe this may be happening because the BB-Code tag you have defined in Namespace Manager contains a capital letter.

      If this is true, then this can be fixed by editing vault/wiki/field.php, find:
      Code:
      		return $vbulletin->options['vault_namespaces']["$namespaceid"]["$field"];
      Replace with:
      Code:
      		$buffer = $vbulletin->options['vault_namespaces']["$namespaceid"]["$field"];
      
      		if ($field == 'bbcodetag')
      		{
      			$buffer = strtolower($buffer);
      		}
      
      		return $buffer;
      Reply Reply  
    6. This petition for a change to Fixed was accepted
      June 21, 2011 4:19 PM
      Bozza Bozza is offline
      New Member
      Quote Originally Posted by pegasus
      I'm not sure if this is your issue, but due to other screwups in Special:WikiCodeList, it's looking likely.

      I believe this may be happening because the BB-Code tag you have defined in Namespace Manager contains a capital letter.

      If this is true, then this can be fixed by editing vault/wiki/field.php, find:
      Code:
      		return $vbulletin->options['vault_namespaces']["$namespaceid"]["$field"];
      Replace with:
      Code:
      		$buffer = $vbulletin->options['vault_namespaces']["$namespaceid"]["$field"];
      
      		if ($field == 'bbcodetag')
      		{
      			$buffer = strtolower($buffer);
      		}
      
      		return $buffer;
      Implemented, and templates now seem to be working as desired. Many thanks Pegasus
       
    + 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:35 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.