• 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 1 of 2 12 Next LastLast


    1. July 29, 2010 12:26 PM
      lordsilence lordsilence is offline
      Junior Member
      Also getting issues using search function on forum if wiki is enabled.

      Code:
      Fatal error: Call to undefined function special_search_forumchoice() in /var/path/to/web/forums/vault/plugins/search.php on line 128
      Reply Reply  
    2. July 29, 2010 2:07 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the current ZIP. In admincp/vaultwiki_url.php, find:
      Code:
       			$prefix_options = construct_prefix_options($dupe['forumid'], $dupe['prefixid'], ($dupe['prefixid'] == '' OR !($foruminfo['options'] & $vbulletin->bf_misc_forumoptions['prefixrequired']));
      Replace with:
      Code:
      			$prefix_options = construct_prefix_options($dupe['forumid'], $dupe['prefixid'], ($dupe['prefixid'] == '' OR !($foruminfo['options'] & $vbulletin->bf_misc_forumoptions['prefixrequired'])));
      Reply Reply  
    3. July 29, 2010 2:10 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the current ZIP. In vault/plugins/search.php, find and delete:
      Code:
      	if (!VAULT_40X_COMPAT)
      	{
      		special_search_forumchoice();
      	}
      Reply Reply  
    4. July 29, 2010 2:21 PM
      pegasus pegasus is offline
      VaultWiki Team
      If you are using PHP 4, in wiki_css.php, find:
      Code:
      		$pending = vB_Template::create($templatename)->render(true);
      Replace with:
      Code:
      		$templater = vB_Template::create($templatename);
      		$pending = $templater->render(true);
      Otherwise, I'll need to have a look at your wiki to see what's wrong with the CSS.
      Reply Reply  
    5. July 29, 2010 2:44 PM
      lordsilence lordsilence is offline
      Junior Member
      Using :
      PHP Version 5.2.6-1+lenny8
      Server API CGI/FastCGI

      Ill apply the fixes and see if helps.

      Can I contact you on MSN or something to give you access?
      Reply Reply  
    6. July 29, 2010 2:52 PM
      pegasus pegasus is offline
      VaultWiki Team
      You can PM me or email:
      Code:
      support@vaultwiki.org
      Reply Reply  
    7. July 29, 2010 3:12 PM
      lordsilence lordsilence is offline
      Junior Member
      I've sent you the login details. Please keep me informed of what may be wrong.
      I've applied all the other code fixes, but Im reverting the CSS change to wiki_css.php since it didnt do anything anyway.
      Reply Reply  
    8. July 29, 2010 3:45 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/plugins.php, find:
      Code:
      $vault->misc['vault_css'] = "\r\n@import($css_url);";
      Replace with:
      Code:
      $vault->misc['vault_css'] .= "\r\n@import(\"$css_url\");";
      Reply Reply  
    9. July 29, 2010 3:57 PM
      lordsilence lordsilence is offline
      Junior Member
      I did this, but still no luck :S

      This happened after I moved an article so I think it's something db-wise with the wiki.
      I also tried to change it to:
      Code:
      $vault->misc['vault_css'] .= "\r\n@import url(\"$css_url\");";
      and then some css kicked in again, but the wiki editor menu is still borked. No graphics displayed and the ajax styles seems broken.
      Reply Reply  
    10. July 29, 2010 4:23 PM
      lordsilence lordsilence is offline
      Junior Member
      I think I found one issue.
      The wiki tries to load
      Code:
      http://www.domain.com/forums/clientscript/tabs/vb3compat.js
      This one doesnt exist in the installer .zip package.
      Reply Reply  
    11. July 29, 2010 4:38 PM
      pegasus pegasus is offline
      VaultWiki Team
      Edit template vault_article_main. Find:
      Code:
      clientscript/tabs/vb3compat.js
      Replace with:
      Code:
      clientscript/vault/vb3compat.js
      Reply Reply  
    12. July 29, 2010 4:45 PM
      lordsilence lordsilence is offline
      Junior Member
      Did that, but I didnt get the menu to show still.
      CSS in rest of document seems broken still.
      Reply Reply  
    13. July 29, 2010 5:03 PM
      lordsilence lordsilence is offline
      Junior Member
      I think I need you to login and check the userdetails were sent in a PM.
      Im getting nowhere now. Tried standard template using the default one, but no luck either.
      Reply Reply  
    14. July 29, 2010 5:40 PM
      pegasus pegasus is offline
      VaultWiki Team
      Surprised I missed this. In vault/plugins.php, find:
      Code:
      				$vault->misc['vault_css'] .= "\r\n@import(\"$css_url\");";
      Replace with:
      Code:
      				$vault->misc['vault_css'] .= "\r\n@import url(\"$css_url\");";
      Reply Reply  
    15. July 29, 2010 5:49 PM
      lordsilence lordsilence is offline
      Junior Member
      Thanks. We tried this in the beginning but I wasnt sure if it was the correct fix so I reverted to what you wrote

      The css seems to work for the "articles" but the island style image on main showwiki.php page doesnt show, and the wiki section weight doesnt seem to work (each wiki is just listed besides eachother).

      The menus on articles also doesnt work for some reason.
      Only thing that shows of the menu is the text "more" , if you hover with the mousebutton the links to discussion, edit, protect (etc) shows as an alt hoever text popdown.
      Reply Reply  
    Page 1 of 2 12 Next LastLast
    + 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:21 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.