mybb / merge-system

The MyBB Merge System allows for easy merging of an existing forum (be it MyBB or another forum software) into a MyBB 1.8.x forum.
Other
34 stars 34 forks source link

Merge does not respect the threadid vbulletin #293

Open 3dpoder opened 2 years ago

3dpoder commented 2 years ago

Merge does not respect the threadid number?

I have done the merge from vbulletin but the url ID is different:

vbulletin --> showthread.php?t=141301 Mybb -----> showthread.php?tid=107762

How can I redirect one to the other?

It is that if not, it would lose the google indexing of years.

xJuvi commented 2 years ago

Hi, i think the reason is, that you can merge into an exist MyBB with threads.

The vBulletin ThreadID is temporary stored in "import_tid"

https://github.com/mybb/merge-system/blob/a5883f35f6d247758da7a15af4420b0b03fdaaa6/boards/vbulletin5/threads.php#L39-L40

The value "tid" (which is used in the url) is generated by auto_increment. Maybe, but untested, you can add th following:

$insert_data['tid'] = $data['threadid'];

But note, than you shouldn't have any theads in your MyBB.