• 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
    • Alternate theme issue (image directory)

    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: Alternate theme issue (image directory)

    • Issue Tools
      • View Changes
    1. issueid=712 July 22, 2009 3:39 PM
      iMav iMav is offline
      New Member
      Alternate theme issue (image directory)

      When using our default/primary theme, images are linked correctly in the wiki articles:

      Code:
      /*** links using the [URL] BB-Code, based on link protocol ***/
      .link-http { background: url(http://geekhack.org/vault/images/external.png) center right no-repeat; }
      .link-https { background: url(http://geekhack.org/vault/images/lock_icon.gif) center right no-repeat; }
      .link-mailto { background: url(http://geekhack.org/vault/images/mail_icon.gif) center right no-repeat; }
      .link-news { background: url(http://geekhack.org/vault/images/news_icon.png) center right no-repeat; }
      .link-ftp { background: url(http://geekhack.org/vault/images/file_icon.gif) center right no-repeat; }
      .link-irc { background: url(http://geekhack.org/vault/images/discussionitem_icon.gif) center right no-repeat; }
      However, when using an alternate theme, I get this:

      Code:
      /*** links using the [URL] BB-Code, based on link protocol ***/
      .link-http { background: url(http://geekhack.org//external.png) center right no-repeat; }
      .link-https { background: url(http://geekhack.org//lock_icon.gif) center right no-repeat; }
      .link-mailto { background: url(http://geekhack.org//mail_icon.gif) center right no-repeat; }
      .link-news { background: url(http://geekhack.org//news_icon.png) center right no-repeat; }
      .link-ftp { background: url(http://geekhack.org//file_icon.gif) center right no-repeat; }
      .link-irc { background: url(http://geekhack.org//discussionitem_icon.gif) center right no-repeat; }
      Even though "vault/images" is listed under StyleVars for both themes.
    Issue Details
    Issue Number 712
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Wiki Pages
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 2.3.2
    Fixed Version 2.5.0
    Milestone VaultWiki 2.5.x
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. July 22, 2009 4:14 PM
      pegasus pegasus is offline
      VaultWiki Team
      Try editing the StyleVar, then reverting it. If I create a new theme (we created 8 recently), the stylevar is applied correctly.

      My guess is that this is a bug from the 2.3.0 upgrader where the stylevar might not be present in memory right if it is the first upgrade (or fresh install) made since the stylevar was added.

      I added some code to try to handle this for the next build, but users who already have a post-2.3.0 version will have to modify the stylevar themselves (or save the CSS again in the next build).
      Reply Reply  
    2. July 22, 2009 5:07 PM
      iMav iMav is offline
      New Member
      modified it and then reverted it. no change.
      Reply Reply  
    3. July 22, 2009 5:15 PM
      pegasus pegasus is offline
      VaultWiki Team
      If that fails, try editing vault/special_adminfunctions_template.php. Find:
      Code:
      				$template_cache[$template['templatetype']][$template['title']] = $template;
      			}
      			$db->free_result($templates);
      
      			foreach ($_query_css_templates AS $templatename)
      			{
      Replace with:
      Code:
      				$template_cache[$template['templatetype']][$template['title']] = $template;
      
      				if ($template['templatetype'] == 'stylevar')
      				{
      					if (is_array($style['stylevars']))
      					{
      						$style['stylevars'][$template['title']] = $template['template'];
      					}
      					else if ($style['stylevars'] === null)
      					{
      						$style['stylevars'] = array($template['title'] => $template['template']);
      					}
      					else
      					{
      						$style['stylevars'] = unserialize($style['stylevars']);
      						$style['stylevars'][$template['title']] = $template['template'];
      					}
      				}
      			}
      			$db->free_result($templates);
      
      			if (is_array($style['stylevars']))
      			{
      				$style['stylevars'] = serialize($style['stylevars']);
      			}
      
      			foreach ($_query_css_templates AS $templatename)
      			{
      Then edit and save the Wiki CSS for the messed up style.
      Reply Reply  
    4. July 22, 2009 6:01 PM
      iMav iMav is offline
      New Member
      no change. let me know what else you'd like to see and/or if you'd like access to see first hand.
      Reply Reply  
    5. July 22, 2009 7:33 PM
      pegasus pegasus is offline
      VaultWiki Team
      I made some changes to the replacement code. Please try again.
      Reply Reply  
    6. July 25, 2009 8:31 AM
      iMav iMav is offline
      New Member
      Quote Originally Posted by pegasus
      I made some changes to the replacement code. Please try again.
      No change.
      Reply Reply  
    7. July 25, 2009 1:09 PM
      pegasus pegasus is offline
      VaultWiki Team
      Can you PM me access to your Wiki Style Manager?

      Thanks.
      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 12:54 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.