• 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
    • Wiki URL manager and CSS broken

    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: Wiki URL manager and CSS broken

    • Issue Tools
      • View Changes
    1. issueid=1873 July 29, 2010 12:15 PM
      lordsilence lordsilence is offline
      Junior Member
      Wiki URL manager and CSS broken
      After moving an article the CSS and some other features broke

      When I login to admincp/ and go to the wiki URL manager I get this error:

      Code:
      Parse error: syntax error, unexpected ';' in /var/path/to/web/forums/admincp/vaultwiki_url.php on line 1158
      This started happening after I moved an article that a user had created in the wrong section.

      From:
      Wiki Section >
      to
      Wiki Section > Wiki Articles >

      What happened next is that the CSS ceased to work, all images and proper colors from wiki seems broken somehow and no images show up.

      When I check sourcecode I see that the CSS is being asked for
      Code:
      <style type="text/css" id="vault_css"> 	
      @import(wiki_css.php?styleid=3&amp;langid=1&amp;d=&amp;td=ltr&amp;full=1);
      </style>
    Issue Details
    Issue Number 1873
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Styling / CSS
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 3.0.2
    Fixed Version 3.0.3
    Milestone VaultWiki 3.0.5
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags Style, vBulletin Maintenance


    Page 2 of 2 FirstFirst Previous 12


    1. July 29, 2010 6:17 PM
      pegasus pegasus is offline
      VaultWiki Team
      Sorry can you send the login again, we don't keep them on file for very long.
      Reply Reply  
    2. July 29, 2010 7:18 PM
      lordsilence lordsilence is offline
      Junior Member
      Alright, I've sent it by email this time
      Reply Reply  
    3. July 29, 2010 8:34 PM
      pegasus pegasus is offline
      VaultWiki Team
      Weird, it appears that this fixes it. In vault/plugins.php, find:
      Code:
      			$css_url = "wiki_css.php?styleid=" . $style['styleid'] . '&amp;amp;langid=' . LANGUAGEID . '&amp;amp;d=' . $style['dateline'] . '&amp;amp;td=' . $stylevar['textdirection'] . (VAULT == true ? '&amp;amp;full=1' : '');
      Replace with:
      Code:
      			$css_url = "wiki_css.php?styleid=" . $style['styleid'] . '&langid=' . LANGUAGEID . '&v=' . $vault->misc['simpleversion'] . '&td=' . $stylevar['textdirection'] . (VAULT == true ? '&full=1' : '');
      Reply Reply  
    4. July 29, 2010 9:19 PM
      lordsilence lordsilence is offline
      Junior Member
      Yes, this did the trick.
      Do you have any idea what might've caused this?
      Reply Reply  
    5. July 29, 2010 9:27 PM
      lordsilence lordsilence is offline
      Junior Member
      I think I've found the issue. In the source code it's actually written as

      Code:
      $css_url = "wiki_css.php?styleid=" . $style['styleid'] . '&amp;langid=' . LANGUAGEID . '&amp;d=' . $style['dateline'] . '&amp;td=' . $stylevar['textdirection'] . (VAULT == true ? '&amp;full=1' : '');
      Notice that the & signs have been accidently encoded to &amp in your .zip package.

      I corrected the line and used the
      Code:
      $css_url = "wiki_css.php?styleid=" . $style['styleid'] . '&langid=' . LANGUAGEID . '&d=' . $style['dateline'] . '&td=' . $stylevar['textdirection'] . (VAULT == true ? '&full=1' : '');
      and now it works properly.
      Reply Reply  
    Page 2 of 2 FirstFirst Previous 12
    + 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 5:01 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.