Back to vBulletin 3.6 Add-ons

phpBB2 Thread URL Redirection Script
Mod Version: 1.01, by bbcentral

This modification is in the archives.
vB Version: 3.6.7 Rating: (5 votes - 5.00 average) Installs: 23
Released: 01 Feb 2007 Last Update: 20 Jun 2007 Downloads: 191
Not Supported Additional Files  

This is a very simple script I wrote after I converted two forums from phpBB2 to vBulletin.

The problem was that there were dozens of pages across the web linking to particular phpBB2 threads, ie:
http://www.website.com/forum/viewtopic.php?t=1234

Of course now those links are dead, as the correct URL would be:
http://www.website.com/forum/index.php?t=2345

My simple script is just one single file that you upload to your forum root folder. It doesn't modify any code, doesn't require any installation, and zero configuration is required (it uses the includes/config.php to get the database settings.

If someone clicks on a link to viewtopic.php (either pointing to a thread or a post), then it will link to that same thread at showthread.php.

Installation Instructions
Upload viewtopic.php to your vBulletin root folder, eg /forum/

Working demo
Thread name "The Apogee Interview series and the weekly Prey update"
Old phpBB2 URL: http://www.bluesbrotherscentral.com/forum/viewtopic.php?t=2374
New vB URL: http://www.bluesbrotherscentral.com/forum/index.php?t=2190

Notes
  • Non existent threads will simply redirect to index.php
  • This file assumes that your vBulletin was installed to the same URL as your phpBB2 path, eg /forum/ rather than /phpbb/ and /vb/, or /forum/ and /newforum/
  • This will only work if your 'post' and 'thread' tables have values in the 'importpostid' and 'importthreadid' columns
Comments and suggestions welcome

Update
June 20, 2007 - Added changes suggested by 'propeller', now uses 301 redirect for search engines.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s viewtopic.php (1.4 KB, 107 downloads)


vblts.ru supports vBulletin®, 2022-2024