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
  #52  
Old 02-22-2009, 02:44 PM
paintballer.ie's Avatar
paintballer.ie paintballer.ie is offline
 
Join Date: Jan 2009
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

This is what I am looking for, i am about to convert over to vb from phpbb2.

Are these steps still correct for vb 3.8.1
Reply With Quote
  #53  
Old 02-26-2009, 06:37 PM
lazydesis lazydesis is offline
 
Join Date: Sep 2006
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I imported from old vB to new version using Impex, and had the same problem. All threadIDs were different from what they were in my old forum, because I deleted some threads in between.

However instead of using the 404 method, I deleted the "threadid" column in my database and renamed the "importthreadid" column as "threadid"

Now all my threads are having same "threadid" as previous forum

Can anyone tell me if this has any adverse affects or what I did is wrong? Everything seems to working fine and it took me just 5 mins to do this.

What's the advantage of using the 404 method described in this thread?

Thanks.

EDIT: Its actually not working properly. Can someone tell me if its possible to change the new ids with the ones in the importids column and would this work ?
Reply With Quote
  #54  
Old 02-27-2009, 10:04 AM
project-Buckfas project-Buckfas is offline
 
Join Date: Jul 2006
Location: Ireland
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any help with the code for smf 1.x.x ?

I'm hoping to go live with my vb soon as I'm pretty much done customising it
Reply With Quote
  #55  
Old 03-01-2009, 08:47 AM
paintballer.ie's Avatar
paintballer.ie paintballer.ie is offline
 
Join Date: Jan 2009
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cooltechie View Post
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!

yes, more info please. I saw raference to a readme.txt what was made, but could not find it.


what does one do with the lines below, as it says to customise?

PHP Code:
$old_id         0;
$action_code    0;
$action         null;
$sql             null;
$page            null;
$postcount        null;

// Get the file names and types 
Reply With Quote
  #56  
Old 03-02-2009, 09:17 PM
paintballer.ie's Avatar
paintballer.ie paintballer.ie is offline
 
Join Date: Jan 2009
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have phpbb2 installed in the root folder and I will be instaling vbulletin in the root folder,

Will this work?
Reply With Quote
  #57  
Old 03-04-2009, 09:28 PM
paintballer.ie's Avatar
paintballer.ie paintballer.ie is offline
 
Join Date: Jan 2009
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I try this is redirects to the normal 404.shtml file I have.

Then in debug mode:

Action ::
SQL ::
REQUEST_URI :: /vbtest/404.php

Any thoughts?
Reply With Quote
  #58  
Old 03-18-2009, 11:39 PM
b00k b00k is offline
 
Join Date: Feb 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

-----------
Reply With Quote
  #59  
Old 04-30-2009, 01:28 PM
ranz ranz is offline
 
Join Date: Dec 2005
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like this mod - even if it is "unsupported"

i've been thinking -

perhaps it may also be useful if (in addition to the logging) we could make use of the moderator queue or report post. this way the mods can edit the posts, refer to the notes of the mod queue which shows the link to the new database id - then edit the post and release from the queue.

this could potentially alleviate the extra db load this script is using on the server.

another option is to provide an admincp script that lists the log - which can be used to edit posts.
Reply With Quote
  #60  
Old 06-09-2009, 01:26 AM
45wheelgun 45wheelgun is offline
 
Join Date: May 2009
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone used this in a move from EVE to VB? It seems like it is pretty straight forward, I am just unclear where these variables go:

Forum http://www.oldforum.com/eve/forums/a/frm/f/540103904
Thread http://www.oldforum.com/eve/forums/a...04/m/241103031
User http://www.oldforum.com/eve/personal...e&u=4131095313
Main http://www.oldforum.com/eve/

Can anyone give me a hand or point me in the right direction?

Thanks,
Dave
Reply With Quote
  #61  
Old 10-19-2009, 12:37 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can use one for MyBB 1.4
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 04:30 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.08688 seconds
  • Memory Usage 2,309KB
  • 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_php
  • (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