MyBB Community Forums

Full Version: i tray to merge vb4 to mybb but the thread id problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In the name of Allah, the Beneficent, the Merciful.
May Allah `s peace, mercy and blessing be upon you

i tray to merge vb4 to mybb but the thread id problem

like that
in the vb thread id 1 in mybb its id is 6

thank you

and the Encoding problem
arabic

up up up up up
You can't do anything about the ids. That's how MySQL works, it auto increments to the next value.

You'll have to explain further the encoding issue.
thank you
encoding problem solve
but the main problem is id problem
the id in vb is 1 but in mybb 6
If you:

- Already have posts on the MyBB forum.
- Had threads, but deleted them from the MyBB forum.

Then the thread id will increment from the last position. So if you had 5 posts, deleted them, then MySQL will consider the next id as 6 anyway due to a 'marker' in the database.
thank you
but i didnt delete any thread i use the default database
If you are still trying to achieve identical URLs as in vbseo: It won't work.

The IDs will change (you'd probably have to change the merge system for that), the URLs will change (even if you manage to keep the same IDs), simply because the forum systems are different. You can redirect them with the solution provided to you in your other thread, but that's about it. Even if you don't redirect, with the sitemap, Google should pick up your new links fast.

If you don't want anything to change, your best option is probably to stick with vb.
thank you very much
now i want rewrite rule for this link
http://www.forum.g-ara.com/(forum title)/(Thread id)-(Thread title).html

Because I forgot the correct form links in the other post

so i want rewrite rule for this link
http://www.forum.g-ara.com/(forum title)/(Thread id)-(Thread title).html

like what you made
RewriteRule ^([1-9][0-9]*)/[^/]*\.html$ redirect.php?tid=$1 [L,QSA,NC]

in the other post

i have add this rule
RewriteRule ^([1-9][0-9]*)/[^/]*\.html$ redirect.php?tid=$1 [L,QSA,NC]
in the .htaccess but appeared 500 internal server error

thank you
^[^/]*/([1-9][0-9]*)-[^/.]*\.html$ then

but you still have to create / adapt a redirect.php which will do the right thing (as I have shown in an example for the phpbb) and make sure the merge system doesn't delete the table with the id relation (same)

Sorry if it's complicated.
thank you
every things fine
but
i will try when i finish the merge
^[^/]*/([1-9][0-9]*)-[^/.]*\.html$
and tell you

thank you it work good
now i need rule for
showthread.php?t=(Thread id)
and
/threads/(Thread id)-(Thread title)
and
t(Thread id).html

thanks

and
http://www.forum.g-ara.com/external.php?type=RSS2
to
http://www.forum.g-ara.com/syndication.php
please help
up up up up