Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
404 / 301 after import redirect on import ids Details »»
404 / 301 after import redirect on import ids
Version: 1.00, by Jerry Jerry is offline
Developer Last Online: Oct 2010 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.9 Rating:
Released: 04-22-2008 Last Update: Never Installs: 52
Re-useable Code  
No support by the author.

After importing from a source board there will be internal and external links that point to the old URLS.

During the import the origional import id's are kept (for one import) so a redirect can be calculated to find the new user/forum/thread/post, by looking up the old import{$type}id.

ImpEx currently alters the table to add the import id, though a planned future version will have this separated so multi-import sites can be managed,

The original discussion thread on vBulletin.com :

http://www.vbulletin.com/forum/showthread.php?t=178161

It is advised that $do_404 = false; is set so the 301 is sent with the new URL to update search engines.

The script needs setting up and customising to each site as the domains and URLs can be different.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 10-27-2008, 08:35 PM
Jerry's Avatar
Jerry Jerry is offline
 
Join Date: Jun 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jca2112 View Post
Hmm. It looks like vBulletin isn't passing on a 404 error because the old url is pointing to "index.php?showtopic=", and vBulletin will automagically display "index.php" regardless of the "?showtopic=". Is there any way to stop vBulletin from doing this so it will properly call the 404.php file?
Yes, the regexs where the URL is parsed can be changed to take care of that.
Reply With Quote
  #43  
Old 11-04-2008, 02:04 AM
raymondblog raymondblog is offline
 
Join Date: Aug 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jerry, can you make it to support PunBB?
Reply With Quote
  #44  
Old 11-04-2008, 04:12 AM
Jerry's Avatar
Jerry Jerry is offline
 
Join Date: Jun 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd guess the phpBB2 settings would work.
Reply With Quote
  #45  
Old 11-15-2008, 10:02 AM
newsoftw newsoftw is offline
 
Join Date: Nov 2008
Location: Pakistan
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i import my forum from phpbb 3.0.2 to VB 7.3.4 ...

can it work on as a phpmm 3.0.2 importing...

if it working so how to install it..

thanks in ADVNS
new soft world
Reply With Quote
  #46  
Old 12-18-2008, 02:35 AM
Divvy Divvy is offline
 
Join Date: Nov 2008
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi everyone,

Can someone help me? I have installed this mod but dont know if is working...
My old forum: http://www.viciadosnosexo.com (ADULT)
My new forum: http://www.viciadosnosexo.com/forum/ (ADULT)

Try to write this in google:
site:viciadosnosexo.com

And click in a link that ends in .html

It is working? Or not?
Also one thing... the 404_actions table is empty for a while. It is normal?

Please help me fixing this...

Thank you!
Reply With Quote
  #47  
Old 01-21-2009, 04:51 PM
cooltechie cooltechie is offline
 
Join Date: Apr 2004
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry. What exactly do I do? Just edit paths and copy the 404.php to the root and that's it? Please provide more details. Thanks!
Reply With Quote
  #48  
Old 02-06-2009, 10:43 AM
brandonroy brandonroy is offline
 
Join Date: Dec 2008
Location: Louisiana
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need help too. My old forums were powered by smf 1.1.7. I need some help on how to set this up! I'm lost and Google is going to spit on my site!
Reply With Quote
  #49  
Old 02-16-2009, 10:56 AM
project-Buckfas project-Buckfas is offline
 
Join Date: Jul 2006
Location: Ireland
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm hoping to obtain the same thing as you guys.

I don't fancy adding every page on my site to the .htaccess for a 301 redirect.

Mainly because of the time consumption!
Reply With Quote
  #50  
Old 02-20-2009, 04:36 AM
Jerry's Avatar
Jerry Jerry is offline
 
Join Date: Jun 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well there is going to be a major change to this script soon as I'm going to be dealing with ImpEx2 soon that that will be using a separate MEMORY table that stores all the source/target id's (basically foreign keys with source import id).

This will allow for multi import 301 re-directs as there will be now the concept of a phase id, which is a new id for each whole form import. i.e. each merge import you do is a phase and has it's own ID. (p.s. yes this will allow for differential imports ).

There has been enough major boards and requests for this now. i.e. if one board assimilates 4 others with 4 merge imports, they will want 4 unique 301 handlers. And so they will be 4 phase id's to handle that.

Also to address the "Hey you only hard coded a few systems, mine isn't supported" ..... I'm going to try to add a drop in module system, much the same as impex itself that will allow for something along the lines of : "Ah, phase 2 is a phpBB3 -> vB import, I'll set the phase id in the 301 config file and drop in the module for 301 that is set for my urls". So then you can ensure that systems are supported. I'm guessing that the Tier 1 systems will be handled with logging so you'll get viability of the amount of SE redirects.
Reply With Quote
  #51  
Old 02-20-2009, 06:09 AM
ForumUser210 ForumUser210 is offline
 
Join Date: Feb 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

created my own solution.

Thanks
Reply With Quote
Reply


Posting Rules
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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05260 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete