• 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
    • Editting CSS in the control panel not saving

    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: Editting CSS in the control panel not saving

    • Issue Tools
      • View Changes
    1. issueid=3022 April 13, 2013 9:23 PM
      nobodieshero nobodieshero is offline
      New Member
      Editting CSS in the control panel not saving
      Style sheets don't save

      I am trying to make the area titles that are big not look so double spaced. So i went to edit .vw-area-info {line-height: 48px;} to 22px but when I press save in the editor. It shows...

      Invalid CSS template specified.
      If you are not redirected automatically, click here to proceed...

      Another quick question. Will style sheets edits stick after updates or do I have to do it anytime the is an update to the stylesheet?
    Issue Details
    Issue Number 3022
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Styling / CSS
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.0 Alpha 5
    Fixed Version 4.0.0 Alpha 6
    Milestone VaultWiki 4 Alpha X
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 14, 2013 11:08 AM
      pegasus pegasus is offline
      VaultWiki Team
      Most edits should stick under vBulletin 4 due to the template-merge feature in vBulletin. However, it's possible that for some changes you will have to do it again. You might also want to look into a mod called Template Modification system. If you are only doing small changes in some styles, you can also add it to the additional.css template, and it should override the value in the wiki CSS.

      To fix the CSS not saving, edit vault/core/controller/cp/style/vb3.php. Find the function called get_template. Replace the entire thing with:
      Code:
      	protected function get_template($varname)
      	{
      		$templatelist = unserialize($this->style['templatelist']);
      		$templateids = $templatelist["$varname"];
      
      		$where = array(
      			vw_DB::get()->query()->eq('templatetype', "'template'"),
      			vw_DB::get()->query()->eq('title', "'" . vw_DB::get()->func()->escape_string($varname) . "'")
      		);
      
      		if ($templateids)
      		{
      			$where[] = vw_DB::get()->query()->in('templateid', $templateids);
      		}
      		else
      		{
      			$where[] = vw_DB::get()->query()->eq('styleid', $this->master_styleid);
      		}
      
      		$template = vw_DB::get()->query()->select(array(
      			'fields' => array(
      				'templateid',
      				'title',
      				'template_un',
      				'styleid'
      			),
      			'table' => 'template',
      			'where' => $where,
      			'first' => 1
      		));
      
      		$template['varname'] = $template['title'];
      
      		return $template;
      	}
      Reply Reply  
    2. April 16, 2013 4:36 PM
      nobodieshero nobodieshero is offline
      New Member
      So seeings how I dont want to edit it every time i tried putting the code in additional.css and nothing happened. So I went to check out the vw template mod tutorial. The hook it suggests doesn't exist in vw4.
      Reply Reply  
    3. April 16, 2013 5:15 PM
      pegasus pegasus is offline
      VaultWiki Team
      Due to the way VaultWiki 4 is designed (CSS and JS can be inserted after the page is already loaded), additional.css is actually included in the page earlier than VaultWiki's CSS. In order to override properties that exist already in the CSS for a given class, you need to either use !important, or overly qualify the CSS rule.

      For example, if this is in the VaultWiki CSS:
      Code:
      .vw-area-info {
      	line-height: 48px;
      }
      In order to override it, you need to do one of:
      Code:
      .vw-area-info {
      	line-height: 22px !important;
      }
      
      /* OR make the rule more specific than the original CSS */
      
      div.vw-area-info {
      	line-height: 22px;
      }
      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:45 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.