• 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
    • Feature
    • Import Custom Namespaces from Mediawiki

    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: Import Custom Namespaces from Mediawiki

    • Issue Tools
      • View Changes
    1. issueid=1110 February 2, 2010 5:58 PM
      hollosch hollosch is offline
      Senior Member
      Import Custom Namespaces from Mediawiki

      I've a MW-installation with additional namespaces. Will these Articels also imported? Must i have a forum called "name of the namespace" for this ??
    Issue Details
    Issue Number 1110
    Issue Type Feature
    Project VaultWiki 3.x Series
    Category Importing
    Status Implemented
    Priority 1 - Security / Login / Data Loss
    Suggested Version 3.0.0 Beta 4
    Implemented Version 3.0.0 Beta 5
    Milestone VaultWiki 3.0.0
    Software DependencyAny
    Votes for this feature 0
    Votes against this feature 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 7, 2010 6:57 PM
      creativeLiquid creativeLiquid is offline
      Junior Member
      Hello hollosch!

      I am in the process of doing just this.
      The latest VaultWiki has all of those thigns sorted out... easier to import.

      Will update here soon and let you know how it went.
      Reply Reply  
    2. February 7, 2010 7:14 PM
      hollosch hollosch is offline
      Senior Member
      cool, thank you !!!
      Reply Reply  
    3. February 7, 2010 7:44 PM
      pegasus pegasus is offline
      VaultWiki Team
      Hi,

      As it is, all of the custom namespaces would be added to the Default namespace. I wasn't sure if it was really possible to add your own in MediaWiki. I have moved this to a feature request.

      In the mean time, if you really want to perform your import, you will have to modify the file vault/special_import_mediawiki.php. Find:
      Code:
      				if (!$handled)
      				{
      					$page['namespaceid'] = $this->registry->options['ces_default_forumid'];
      				}
      Before this you should add your own code as follows:
      Code:
      				if ($page['namespaceid'] == MEDIAWIKI_CUSTOM_NAMESPACEID)
      				{
      					$page['namespaceid'] = VAULTWIKI_CUSTOM_NAMESPACEID;
      					$handled = true;
      				}
      Where MEDIAWIKI_CUSTOM_NAMESPACEID is the namespace ID according to MediaWiki, and VAULTWIKI_CUSTOM_NAMESPACEID is the namespace ID of the namespace you created in VaultWiki to move it to.
      Reply Reply  
    4. February 8, 2010 5:12 AM
      hollosch hollosch is offline
      Senior Member
      Ah, ok. Thanks. Will try this.
      Is this feature part of the next version?
      Reply Reply  
    5. February 8, 2010 11:49 AM
      pegasus pegasus is offline
      VaultWiki Team
      Yes, now that it has been confirmed possible, we are aiming to add this feature for the next release.
      Reply Reply  
    6. February 8, 2010 1:30 PM
      hollosch hollosch is offline
      Senior Member
      Quote Originally Posted by pegasus
      Hi,

      As it is, all of the custom namespaces would be added to the Default namespace. I wasn't sure if it was really possible to add your own in MediaWiki. I have moved this to a feature request.

      In the mean time, if you really want to perform your import, you will have to modify the file vault/special_import_mediawiki.php. Find:
      Code:
      				if (!$handled)
      				{
      					$page['namespaceid'] = $this->registry->options['ces_default_forumid'];
      				}
      Before this you should add your own code as follows:
      Code:
      				if ($page['namespaceid'] == MEDIAWIKI_CUSTOM_NAMESPACEID)
      				{
      					$page['namespaceid'] = VAULTWIKI_CUSTOM_NAMESPACEID;
      					$handled = true;
      				}
      Where MEDIAWIKI_CUSTOM_NAMESPACEID is the namespace ID according to MediaWiki, and VAULTWIKI_CUSTOM_NAMESPACEID is the namespace ID of the namespace you created in VaultWiki to move it to.
      If i had more than one special namespace in mediawiki, then i use the modification for each namespace?
      Reply Reply  
    7. February 8, 2010 2:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      Yes. If they have talk spaces, you'll want to update $talk_spaces (array MEDIAWIKI_TALKSPACEID => MEDIAWIKI_TALKSPACEID) and $talking (array MEDIAWIKI_TALKSPACEID => VAULTWIKI_NAMESPACEID).
      Reply Reply  
    8. February 27, 2010 12:04 PM
      pegasus pegasus is offline
      VaultWiki Team
      Implemented for the next build. In addition to support for custom namespaces, you can now select what forum to import each namespace to.
      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 1:56 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.