vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Keep Redirects for merged Threads (https://vborg.vbsupport.ru/showthread.php?t=91788)

Andreas 07-06-2005 10:00 PM

Keep Redirects for merged Threads
 
Keep redirections for merged Threads
This is just a fast redux of my vB 3.0 Mini-Mod, now as a Plugin for vB 3.5 :)

Description
If you merge Thread A into Thread B, Thread A will be deleted afterwards.
Now your users might be confused as they can't find the thread anymore.

This hack changes this behaviour: Thread A will become a redirect to the merged Thread B.

Details
1 Plugin XML

History
0.1 Initial Version for vBulletin 3.5
0.2 Added Support for Inline Moderation
0.3 Added Support for Table-Prefixes

Unfortunately no Screenshots as there is nothing to see :D

Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer!

This Hack is redundant as of vBulletin 3.5 Final.
Do not install it on this or any higher Version

Biker_GA 07-07-2005 01:43 PM

Hmmmmmm. I'm not getting a redirect message left behind. I've just tested by merging two threads into the same forum, and by merging two threads and moving to a different forum.

Andreas 07-07-2005 01:47 PM

Works for me, no matter if the Threads are in the same Forum or in different Forums.

Christine 07-07-2005 03:00 PM

Not working for me either -- same forum or different forums.

Andreas 07-07-2005 03:11 PM

Hmm, then I don't know why :(
Can you put

PHP Code:

die("Attempting to delete Thread " $threadid " as it was merged with " $GLOBALS['threadinfo']['threadid']); 

inside the if to see if it gets executed?

Biker_GA 07-07-2005 04:34 PM

Do you want me to replace the existing code with that, or add it?

Biker_GA 07-07-2005 05:57 PM

I just noticed something.. I did a split and move, and saw the options for merging a thread when I selected the "move" option. However, there was no option to leave a redirect in the dialog box.

Andreas 07-07-2005 06:07 PM

Man I dont understand anything :)

From the Thread Tools mean you just select "Merge Thread".
In the upcoming dialog you enter the URL of the other Thread that should be merged.
Without this Hack, after the merge this other Thread will be deleted.
With this Hack it should become a redirect to the first one.

Christine 07-07-2005 06:10 PM

Added the die statement, and that isn't it -- the query is executing. Gave me the 'merging threads - you will be redirected...' splash screen and took me to the new thread.

Just no redirect links.

I attempted a merge with 3 threads on this -- 2 in one forum and 1 in another, leaving the new combined thread in the forum where the 2 originated.

I have no other plugins for threaddata_delete -- so don't believe it is being stepped on.

Christine 07-07-2005 06:10 PM

Quote:

Originally Posted by KirbyDE
Man I dont understand anything :)

From the Thread Tools mean you just select "Merge Thread".
In the upcoming dialog you enter the URL of the other Thread that should be merged.
Without this Hack, after the merge this other Thread will be deleted.
With this Hack it should become a redirect to the first one.

HA!

I was using inline and thread checkboxes...

Edit to add: Just tested the 'add URL' way, and is working just fine. :D


All times are GMT. The time now is 05:14 AM.

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.01201 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete