• 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 4.x Series
    • Bug
    • [4.1 RC 2] Problem with HTML on page editor when page's content type has been disabled, unable to uncheck it

    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: [4.1 RC 2] Problem with HTML on page editor when page's content type has been disabled, unable to uncheck it

    • Issue Tools
      • View Changes
    1. issueid=6014 April 8, 2020 10:48 AM
      ACL ACL is offline
      Regular Member
      [4.1 RC 2] Problem with HTML on page editor when page's content type has been disabled, unable to uncheck it

      When editing a wiki page where the current content type has been disabled, the rendered HTML in the "Treat this page as a" form row is garbled. The 'loss of functionality' part of the report is that the garbled HTML means it isn't possible to uncheck the disabled content type.

      Pasted below is how the HTML looks (formatted slightly to help with readability) when attempting to edit a book where the book content type was later disabled:
      Code:
      <dd>
      					
      		<div class="vw-switch-types ">
      	<input type="hidden" name="typelist[18]" value="0">
      	
      			<ul class="inputChoices">
      				<li class="inputChoices-choice">
      					<label class="iconic">
      						<input type="checkbox" name="typelist[18]" value="1" checked="checked" data-vw-trigger="typelist-option" class="vw-typelist-option vw-typelist-container vw-typelist-disabled" afterhtml="<div class=" vw-error-list="" errorpanel"="" id="yui_3_5_0_1_1586354670447_11">IMPORTANT! This type is no longer permitted. You will not be able to save any changes to this page until this type is removed.
      					</label>
      				</li>
      			</ul></div>" /&gt;<i aria-hidden="true"></i><span class="iconic-label">Book, so it can contain sub-pages</span>
      
      </dd>

      Perhaps this 'type is no longer permitted' warning could also be styled better in XenForo 2.x, such as a div element with the CSS classes: .block-rowMessage .block-rowMessage--small .block-rowMessage--warning
    Issue Details
    Issue Number 6014
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.0 RC 2
    Fixed Version 4.1.0 RC 3
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 8, 2020 11:07 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release, and updated the phrase with the CSS classes you mentioned. To fix the broken HTML, in the template vw_editor_types, find:
      Code:
      afterHtml
      Replace with:
      Code:
      afterhtml
      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 2:34 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 © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.