View Full Version : Merge threads Redirect
hockyfan
01-25-2005, 01:53 PM
Can a hack be made that when two threads would be merged, ie. thread A into thread B, that a redirect similar to when a thread is moved would be in the place of thread A? As an added bonus, could there be an option to have the redirect send the user to a specific post in thread B (ie., this thread is a combonation of threads A and B)? Thanks in advance.
h
Andreas
01-26-2005, 01:32 AM
Having thread A redirect to thread B (instead of getting deleted after the merge) is pretty easy:
In postings.php FIND
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "thread WHERE threadid = $mergethreadid");
REPLACE that with
$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET open = 10, pollid = $threadid WHERE threadid = $mergethreadid");
However, redirecting to a specific post is difficult, as there are no built-in ways to do so.
hockyfan
01-26-2005, 02:09 AM
Thank you, that was the main goal, the redirect is just a bonus if possible - thanks again. :)
h
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.