• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Importing MediaWiki > Exclude Main Page?

    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.

    Results 1 to 7 of 7

    Thread: Importing MediaWiki > Exclude Main Page?

    • Thread Tools
      • Show Printable Version
    1. February 19, 2017 #1
      ACL
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      ACL is offline
      Regular Member
      Join Date
      January 30, 2017
      Posts
      72
      Rep Power
      119

      Question Importing MediaWiki > Exclude Main Page?

      From observing import/config/vw.php it seems possible to skip over certain namespaces by commenting them out.

      Is there there a way at all to also skip over the Main Page during a MediaWiki import?

      I've already rebuilt the Wiki index page using responsive divs and VaultWiki syntax pre-import, so would prefer it if the import process wouldn't overwrite this page with older the mediawiki main page as it contains html and MW ParserFunction syntax which doesn't render on the VaultWiki index page.

      I could take a copy of the page prior to importing but that would create unnecessary edit revisions of the wiki home page so I'd like to avoid this approach if possible.
      Reply With Quote Reply With Quote

    2. February 19, 2017 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      Provided your VW main page edit was made more recently than any in MW, it should import the MW main page as previous edits, so your current version would remain as the current version.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. February 19, 2017 #3
      ACL
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      ACL is offline
      Regular Member
      Join Date
      January 30, 2017
      Posts
      72
      Rep Power
      119
      Cheers for the fast reply!

      That behaviour unfortunately isn't what happened for me .

      There is a single revision containing the MediaWiki version of the page logged at the time of the import, so the time is newer. For example, the last revision on the MediaWiki version of the page is 29 December 2016‎. VaultWiki displays a revision containing the MediaWiki imported revision dated Feb 19, 2017.

      Is the import supposed to also grab previous page revisions from MediaWiki in addition to the latest one?
      Reply With Quote Reply With Quote

    4. February 19, 2017 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      Yes, all previous revisions should be imported. But this might not happen if your MW main page is contained in a namespace that you opted to skip.

      I see what you mean about the importer logging a new edit. It seems it doesn't do a good job at adjusting the timestamps on the index. We will try to improve this.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. February 19, 2017 #5
      ACL
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      ACL is offline
      Regular Member
      Join Date
      January 30, 2017
      Posts
      72
      Rep Power
      119
      Thanks . For what it is worth, I have checked some other wiki pages that were newly imported and I do see the old revision history from MediaWiki showing fine there. Just not with the index page which already existed prior to running the Import script.

      Incidentally, I did spot a problem with an imported contributor username containing an underscore has that character replaced with a space which means the Xenforo popup profile link isn't displayed (no account name exists with the underscore substituded for a space). Plus usernames with the first letter capitalised (as enforced by MediaWiki) doesn't link to a matching Xenforo profile (where a leading capital isn't mandated). I'll post this as a bug. E.g. If an imported username is "User_name", VaultWiki shows it as "User name". If an Xenforo username of "username" exists, when imported from MediaWiki it isn't hyperlinked to their profile under the creator/contributor area. However, "Username" and "USERNAME" is linked, due to the leading captial.
      Last edited by ACL; February 19, 2017 at 10:47 AM.
      Reply With Quote Reply With Quote

    6. February 19, 2017 #6
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      The problem is that in MediaWiki, usernames can't have a space (spaces are underscores) because they are also page names. So in MediaWiki, "User_with_Space" has underscores. But the expectation is that in page names, "_" is treated as a space. However, in XenForo, it is possible to have 2 different users "User_with_Space" vs "User with Space". There's not really a great way to "fix" this. No matter which way you convert the name, you have a 50% chance that you will not find a user, or that you will find the wrong user.

      I think that this would need to be handled it on a user-by-user basis after the import, where we provide a tool to attribute all wiki records for user "The Source User" to user "The Target User".

      On the other hand, if the only difference is capitalization between the usernames and the matching profile isn't linked, then this might be a problem with the collation in the forum database, where it is case sensitive (not a *_ci collation). From what I understand, XenForo should be case-insensitive when it comes to usernames, so these usernames should have been linked automatically, unless you manually changed the xf_user.username collation to something like utf8_bin.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    7. February 19, 2017 #7
      ACL
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      ACL is offline
      Regular Member
      Join Date
      January 30, 2017
      Posts
      72
      Rep Power
      119
      A tool to link source and target users sounds like a neat solution! Depending how it is implemented, it may even help me relink old edits to particular users who had their username changed on an old (non-Xenforo) forum.

      I've checked the collation of xf_user.username and it is set as utf8_general_ci (I haven't altered this).
      Reply With Quote Reply With Quote

    Similar Threads

    1. Importing MediaWiki Tables
      By Scan New England in forum Pre-Sales Questions
      Replies: 2
      Last Post: July 29, 2011, 5:58 PM
    2. Namespace Main Page
      By CedricFP in forum VaultWiki Questions
      Replies: 4
      Last Post: June 18, 2010, 8:08 AM
    3. Importing from MediaWiki
      By Goatpod in forum Pre-Sales Questions
      Replies: 14
      Last Post: February 7, 2010, 7:53 PM
    4. How do I make a REAL main page?
      By Jaxel in forum VaultWiki Questions
      Replies: 6
      Last Post: September 7, 2009, 4:22 AM
    5. Main Page
      By Mokonzi in forum VaultWiki Questions
      Replies: 2
      Last Post: May 27, 2009, 5:48 PM

    Tags for this Thread

    main, mediawiki, page

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 1:37 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.