# Some questions on vbulletin import script (groups, likes, attachments)

**URL:** <https://meta.discourse.org/t/some-questions-on-vbulletin-import-script-groups-likes-attachments/37990>\
**Category:** Support\
**Created:** [Janvier 15, 2016, 8:17 UTC](https://meta.discourse.org/t/some-questions-on-vbulletin-import-script-groups-likes-attachments/37990 "2016-01-15T08:17:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![lrossouw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lrossouw/32/121275_2.png) [@lrossouw](https://meta.discourse.org/u/lrossouw)\
**Post date:** [Janvier 15, 2016, 8:17 UTC](https://meta.discourse.org/t/some-questions-on-vbulletin-import-script-groups-likes-attachments/37990/1 "2016-01-15T08:17:08Z")

</div>

I’m importing a community forum from vbulletin. And I can’t wait to get it done, because I want to start using discourse pronto.

I’ve managed to get the script running and it can import: users, groups, categories, topics (i.e. first posts) and then failed. Because I gave it only read access to my vb db (to be safe). The backup / restore feature is also invaluable in testing this stuff because it’s so easy to go back to an empty forum.

At this stage, before I run it again I have some questions on this:

- How should I do the user ↔ group mappings? I see it takes the primary group in some way but I don’t see this on the imported forum anywhere. Plus other groups? I guess I’d be able to do the SQL from the mysql side, but how do I add the groups on discourse from the script? Thinking about it the easiest would be to do it “by hand” after import using bulk add user to group funciton.
- Our forum uses the DragonByte Tech: Advanced Post Thanks / Like plugin. I guess I’d be able to figure out who liked/thanked which post from the MySQL database, but again, how do I import said like to discourse. Probably after posts have been imported I need to loop through all the likes/thanks in my database and like the corresponding post on discourse? (Can’t wait for the dislike button to disappear…).
- I haven’t got to attachments yet, but our forum uses attachments that are stored in the DB it seems. Will this be handled by the script or do I need to make changes?
- I see posts with vb code are not being formatted at present. I need to run something after import I believe?

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/some-questions-on-vbulletin-import-script-groups-likes-attachments/37990)._
