• 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 4.x Series
    • Feature
    • VW3 showthread.php to VW4 (XF) redirection

    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: VW3 showthread.php to VW4 (XF) redirection

    • Issue Tools
      • View Changes
    1. issueid=4271 April 4, 2015 8:16 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      VW3 showthread.php to VW4 (XF) redirection

      How does VW3 to VW4 redirection work when it comes to showthread.php ?
      XF already has redirection scripts for showthread.php
      What happens when a user clicks on a showthread.php link that previously pointed to a wiki article? Is this redirected to the correct wiki article?
    Issue Details
    Issue Number 4271
    Issue Type Feature
    Project VaultWiki 4.x Series
    Category Importing
    Status Implemented
    Priority 7 - Minor Features / Enhancements
    Suggested Version 4.0.2
    Implemented Version 4.0.21
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Votes for this feature 0
    Votes against this feature 0
    Attachments 0
    Assigned Users (none)
    Tags (none)


    Page 1 of 2 12 Next LastLast


    1. April 4, 2015 10:28 AM
      pegasus pegasus is offline
      VaultWiki Team
      In VaultWiki 3 showthread.php links that pointed to wiki articles were already 301 (permanent) redirects to the showwiki.php script. Thus, any sophisticated crawlers or bookmarks should have never indexed the showthread.php version of the URL. Because VaultWiki 3 automatically replaced showthread.php links with their showwiki.php counterparts in the page output, it is also unlikely that users ever saw the original showthread.php link in order to copy-paste those somewhere.

      The only exception is for wikis that existed before VaultWiki 3 was installed, where the wiki forum was converted to a VaultWiki 3 wiki forum at such time -- links that existed already may have used showthread.php versions. We do not handle this very small percentage of links.

      For those fringe cases, you are talking about many years already that 301 redirects have been in place. Our general practice for a version 3 to 4 conversion has not been to give 301 redirects for anything except VaultWiki 3's showwiki.php (and this is only automatic in the vBulletin version).

      --

      Still, we have recently been considering other ways to redirect things, and other things that may need redirecting. For example, we are migrating our own (vBulletin CMS) News pages into VaultWiki and need to preserve whatever vBSEO did to those URLs, but those versions of the URLs are not stored in the database to capture easily during an import process. If I recall correctly, this is the only thing holding us back from a vBulletin CMS to VaultWiki 4 migration path.

      Looking at the redirection scripts that are available for showthread.php in XenForo, it looks like they are designed to give up if a thread is not found. This doesn't work well when you are looking to have both a showthread.php handler for wiki URLs and one for standard XenForo URLs. There are a lot of things to consider for a showthread.php handler.
      Reply Reply
    2. April 4, 2015 2:04 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      You are probably right that the showthread wiki links originate from NuWiki. Vaultwikis predecessor.

      At this point in time I am looking into the possibility of a better showthread redirection script. I will be importing content from forum threads into separate content types like article system, reviews system, etc. So within that context it makes sense to redirect showthread to wiki as well.
      Reply Reply
    3. February 11, 2018 4:42 PM
      pegasus pegasus is offline
      VaultWiki Team
      I believe this is implemented in 4.0.21.
      Reply Reply
    4. July 22, 2018 4:46 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      I did mass replacement in the post table to replace all instances of /showthread.php?t=x by /threads/x
      So many forum posts linking to the wiki, have dead links.
      And as the showthread.php urls are automatically redirected to xenforo's /threads/x Google has indexed many hundreds of xenforo threads.

      Do you have any solution for this?
      Reply Reply
    5. July 23, 2018 3:19 PM
      pegasus pegasus is offline
      VaultWiki Team
      If you imported in 4.0.18 or later, in AdminCP > Options > VaultWiki: Miscellaneous, set Redirect Content IDs from Import = your import. This will attempt to redirect all the source IDs from that import to the target wiki content.

      Prior to 4.0.18, imports were not logged in a way that works with this setting.

      If your content is from multiple import sources, or if you re-imported the same source without using a clean state, this may not work well for you. Unfortunately there is not an easy way to automate such a situation, since you could have ID collisions.
      Reply Reply
    6. July 24, 2018 6:09 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      I used 4.0.19 but it doesn't seem to work:
      /threads/32111/page-6
      I see in the import log that 32111 has a targetid 51.
      Reply Reply
    7. July 25, 2018 11:46 AM
      pegasus pegasus is offline
      VaultWiki Team
      In the following files:
      • library/vw/XenForo/ControllerPublic/Attachment.php
      • library/vw/XenForo/ControllerPublic/Forum.php
      • library/vw/XenForo/ControllerPublic/Post.php
      • library/vw/XenForo/ControllerPublic/Thread.php

      Find:
      Code:
      vw_import_redirect
      Replace with:
      Code:
      vw_import_sessionid
      Reply Reply
    8. July 25, 2018 1:00 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Thanks, but it still doesnt redirect.
      Reply Reply
    9. July 25, 2018 4:14 PM
      pegasus pegasus is offline
      VaultWiki Team
      The only other issue that I see is in the following files:
      • library/vw/XenForo/ControllerPublic/Forum.php
      • library/vw/XenForo/ControllerPublic/Thread.php

      Find:
      Code:
      $e->_vwRedirect['itemid']
      Replace with:
      Code:
      $e->_vwRedirect['targetid']
      But you are not getting the associated error message in your logs, so it seems like there is another issue happening, such as an add-on conflict that is bypassing this code, or another XenForo/PHP bug that I have encountered: if your XenForo config file has certain caching turned on, there is a bug where your XenForo options are not actually updated on all pages even though you changed them. In these cases, I needed to restart PHP in order to get XenForo options changes to take effect. (If your options were not updated in cache, the code still thinks no import was selected to redirect).

      If you continue to have an issue with this, you will need to open a new ticket.
      Reply Reply
    10. July 27, 2018 11:31 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Did you report that XF bug to the XF team?
      Reply Reply
    11. August 5, 2018 3:45 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Does it matter that I am now using NGNIX? (I moved away from my old host to Digital Ocean)
      Reply Reply
    12. August 6, 2018 9:56 AM
      pegasus pegasus is offline
      VaultWiki Team
      In library/vw/XenForo/ControllerHelper/ForumThreadPost.php, find and remove:
      Code:
      $this->_vwImportThread = false;
      Code:
      $this->_vwImportForum = false;
      Code:
      $this->_vwImportPost = false;
      It looks like the code was added for debugging and was not properly removed.
      Reply Reply
    13. August 6, 2018 10:14 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      This is changed. But no redirection yet.
      Reply Reply
    14. August 6, 2018 1:23 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      I have opened a ticket.
      Reply Reply
    15. August 19, 2018 6:32 PM
      pegasus pegasus is offline
      VaultWiki Team
      This works now. The problem was that the import-forwarding was relying on XenForo_Controller::getHelper to return a singleton, but that is not the designed behavior of the method.
      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:41 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.