1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Xenforo importer preserves unique id's

Discussion in 'XenForo Pre-Sales Questions' started by AndyB, Sep 14, 2012.

  1. AndyB

    AndyB Well-Known Member

    I just learned that if I import my vB4 forum to Xenforo, there's an option to preserve unique id's. This means the following id's are preserved; userid, threadid, postid and attatchmentid. I assume there are other id's which are preserved, perhaps someone from Xenforo could follow up and indicate which ones.

    Preserving unique id's is extremely important for larger forums wishing to migrate to Xenforo because a simple mod-rewite rule can be used to redirect back links to the new Xenforo URLs.

    Another great feature related to URLs is that admins like myself that prefer Standard URLs, the type without any titles in the URL have an option in Xenforo to use that type of URL. An example of Standard URLs:

    Jake Bunce likes this.
  2. Sadik B

    Sadik B Well-Known Member

    Hi Andy, Nice to see you here.

    Yes Xenforo's importer (both the official vb3.8 one and the unofficial vb4 importer) have the option of preserving member, thread, forum ids (and I believe the visitor message to profile post id as well, though not sure on that).

    Actually the fiasco with vb5 changing Ids is because they have adopted the approach of treating all content as same in the database and only differentiating between the content type in the presentation layer. So a thread post, a blog post, a visitor message or a private message are all stored in absolutely the same way in one single table. They will then be easily able to query content by just passing the contentType as a parameter in a single retrieval function. Because of this design decision, the content ids are renumbered and hence anyone migrating (it's a migration, not upgrade) from earlier vb versions to vb5 will lose their content ids, which will then be kept in a mapping table in the DB.

    The theory is very good for a non-web application, but vbulletin being a website builder, obviously people don't want to lose their URLS. They can still do a backward compatibility implementation, if they provide dummy showthread.php and other files and then perform a query in those files to get the correct content id based on the url thread / blog id and display the content to the user. So it's possible, but obviously I doubt you will see a solution for months, possibly years there.

    Xenforo has different tables for different content, much like vb 4 and earlier versions so they can insert the old Ids being migrated which is what they do in their import. The friendly URL structure, without the title is also very nice.
  3. AndyB

    AndyB Well-Known Member

  4. DBA

    DBA Well-Known Member

    Hey Andy, I've been using this redirection script and haven't had any issues.

    Redirects to

    Unchecking this option should do what you want.


    Edit: You know it looks like you're the very reason we even have that option. lol However I've yet to see a XF forum that uses it.
  5. AndyB

    AndyB Well-Known Member

Share This Page