• 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
    • Template Sections are Editable

    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: Template Sections are Editable

    • Issue Tools
      • View Changes
    1. issueid=922 October 30, 2009 3:29 PM
      pegasus pegasus is offline
      VaultWiki Team
      Template Sections are Editable

      This bug came back as a result of the fix for another template bug here: http://www.crackedeggstudios.com/issues/857/

      Fixed in the current ZIP (2.5.6).

      If you already downloaded before I posted this, download again and replace:
      • vault/special_class_bbcode.php
      • vault/special_plugins_bbcode.php


      OR make the file edits. In vault/special_class_bbcode.php, find:
      Code:
      			'no_smilies' => 0,
      			'strip_space_after' => 0,
      Add after:
      Code:
      			'no_edit' => 0
      Code:
      			if ($node['name'] == 'noedit')
      			{
      				continue;
      			}
      
      			$pending_text = '';
      Replace with:
      Code:
      			$pending_text = '';
      
      			if ($node['name'] == 'noedit')
      			{
      				if ($node['closing'] == false)
      				{
      					$parse_options['no_edit'] = 1;
      				}
      				else
      				{
      					$parse_options['no_edit'] = 0;
      				}
      
      				continue;
      			}
      Find:
      Code:
      					if (isset($this->tag_list["$current_cycle"]["$has_option"]["$open[name]"]))
      					{
      Add after:
      Code:
      						if (!empty($parse_options['no_edit']))
      						{
      							$open['no_edit'] = 1;
      						}
      In vault/special_plugins_bbcode.php, find:
      Code:
      	foreach ($parser->stack AS $surrounding)
      	{
      		if ($surrounding['name'] != 'noedit' AND $surrounding['name'] != 'table')
      		{
      			continue;
      		}
      
      		$vault->postbit['sections'][$parser->edit_heading]['noedit'] = true;
      	}
      Replace with:
      Code:
      	if (count($parser->stack) > 1)
      	{
      		foreach ($parser->stack AS $surrounding)
      		{
      			if ($surrounding['name'] != 'table')
      			{
      				continue;
      			}
      
      			$vault->postbit['sections'][$parser->edit_heading]['noedit'] = true;
      		}
      	}
      
      	if (!empty($parser->current_tag['no_edit']))
      	{
      		$vault->postbit['sections'][$parser->edit_heading]['noedit'] = true;
      	}
      Replace with:
      Code:
      	if (!empty($parser->current_tag['no_edit']))
      	{
      		$vault->postbit['sections'][$parser->edit_heading]['noedit'] = true;
      	}
    Issue Details
    Issue Number 922
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Headlines / Sections
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 2.5.5
    Fixed Version 2.5.6
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    + 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 2:05 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.