Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Redirection when changing your forums-folder Details »»
Redirection when changing your forums-folder
Version: 2.0.0, by Bernd Glasstett Bernd Glasstett is offline
Developer Last Online: Feb 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-16-2004 Last Update: 05-16-2007 Installs: 4
 
No support by the author.

Everyone knows the problem: If you want to change the structure of your site and especially change the forums-folder, you would loose all clicks from google or other search-engines. Setting up a 404-page could only redirect the users to the main-page. These small scripts have the same names as the main-pages of vbulletin. You can set them in your old forums-folder and they will redirect the users to the right postings or subforums. The scripts supports both links from vB 2.x and vB 3.x. I am pretty sorry, that I can only select one version of vB here But that's life

You don't need to edit any files of your vB-installation. Just place these files in your old forums-folder and please edit config.inc.php - There you can enter:
  • Siteowner
  • Newdirectory
  • And if you would like to use a different domain - just in case
  • New in version 2.0.0: Language support
  • New in version 2.0.0: Choose the method for redirecting
  • New in version 2.0.0: Statisticfunction
  • New in version 2.0.0: Choose the path to the homepage-script
  • New in version 2.0.0: X-HTML 1.0 Strict valid
It supports passing on links from:
  • index.php
  • forumdisplay.php
  • member.php
  • showthread.php
Supports these versions:
  • vb 2.x
  • vb 3.0.x
  • vb 3.5.x
  • vb 3.6.x
Supported languages (right now):
  • Englisch
  • German (Du)
  • German (Sie)
The script takes its own domain, if you don't define it otherwise - and is pretty flexible.

If you find any bugs, pass them on. And if you have any questions, post them here

Version 2.0.0 can be considered a comple rewrite. All bugs from the earlier version 1.0.0 have been eliminated. A documentation in english and german has been added.

If you want to contribute more languages, please be free to do so, I will add them to the main project as soon as they appear

Show Your Support

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

Comments
  #2  
Old 03-17-2004, 06:41 AM
Owen Owen is offline
 
Join Date: Jan 2002
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow cool hack, problem is I used invision board before I installed vbulletin -___-
Reply With Quote
  #3  
Old 03-17-2004, 06:56 AM
Bernd Glasstett's Avatar
Bernd Glasstett Bernd Glasstett is offline
 
Join Date: Sep 2002
Location: Waldshut-Tiengen Germany
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I never used an invision-board, but there are two ifs:
  • if you can tell me, what filenames they used
  • and if you are sure, that the threadids are the same on the invision-board and on the vB
I can add support for this too
Reply With Quote
  #4  
Old 03-17-2004, 02:05 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one, test it later ...
Reply With Quote
  #5  
Old 03-17-2004, 06:41 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah Bernd, this just comes to late.

i lost my 1st position on the google rank when i switched from /v2 to /

But great work, it will surely help people to prevent that in future
Reply With Quote
  #6  
Old 03-22-2004, 05:52 PM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is ok if you do not have htaccess support on your server. otherwise all you have to do is:

RewriteRule ^old_dir /new_dir [R=301,L]

.. and all the urls will be pointed to the correct place.
Reply With Quote
  #7  
Old 03-22-2004, 06:19 PM
Bernd Glasstett's Avatar
Bernd Glasstett Bernd Glasstett is offline
 
Join Date: Sep 2002
Location: Waldshut-Tiengen Germany
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

true Sebastian, but rewrite_mod has to be compiled with Apache in order to do so, which is no standard.
Reply With Quote
  #8  
Old 03-28-2004, 05:53 PM
rooshine rooshine is offline
 
Join Date: Sep 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much for creating this. It does not seem to be working correctly for me. It forwards users to the correct directory, but it is stripping off the last part of the url. For example, if the url is "/oldDirectory/forumdisplay.php?s=&forumid=3", it will forward to "/newDirectory/forumdisplay.php?s=&forumid=" without the "3". Any ideas?

Thanks.
Reply With Quote
  #9  
Old 03-28-2004, 06:23 PM
rooshine rooshine is offline
 
Join Date: Sep 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the double post, but I found a bug.

In the config.inc.php file there is a variable called $newdirectory

In the other pages it is referred to as $new_directory

I changed the config.inc.php variable to $new_directory and that seemed to work. It still does not fix the problem I mentioned above.
Reply With Quote
  #10  
Old 04-12-2006, 04:20 AM
mightyhitter mightyhitter is offline
 
Join Date: Jan 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah..change the variable in config to new_directory and replace all the _POST with _GET in other files. it helpful.
Reply With Quote
Reply

Thread Tools

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 01:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04393 seconds
  • Memory Usage 2,283KB
  • Queries Executed 23 (?)
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)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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