Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
WordPress/Vanilla integration with existing board
After testing a WP/Vanilla integration (with Janine) for a few days, I think I'm ready to try the real thing. I have a NEW WordPress install that I want to integrate with an existing, year-old Vanilla board.
I'm pretty good at HTML, CSS, and the like, but PHP, MySQL, et.al. is still mostly foreign to me. I'm not even sure I know how to completely back up my message board. (Help!) I'm not asking for a tutorial (although I'd welcome it!), but any hints and advice on how I might go about this (after the mystery backup), without making a total mess of everything, are welcome and appreciated.
0
This discussion has been closed.
Comments
I'm sure you've already read the Wordpress Integration document, right?
The hard part is that the integration relies on wordpresses user table rather than Vanilla's. And since you already have existing users with existing comments and discussions, you'll have to move your users over to the wordpress tables and re-link your discussions and comments to the new id's.
I'd like to help you out more than that, but I've got "work" to do. Sorry
I think this can work. The only quirk I foresee is the passwords. WP uses a different password encoding than Vanilla, so your users will have to use the password reset feature of WP to fix their passwords.
BIG DISCLAIMER: I have not tested this, but it should work. Hail Mary full of grace, and all that.
- Back up your database, obviously.
- Export the data in your existing Vanilla users table with mysqldump, like this:
- Open the result file "vanilla_users.sql" and do a search-replace on the following values:
- Now import the data into your WordPress users table, like this:
And there you go. Your users might not even need to reset their passwords (upon closer examination it looks like Vanilla and WordPress both use single md5 hashing on passwords). A handful of fields in the WP users table won't get set using this method but I don't think that will bother WP. Good luck!mysqldump --skip-opt --complete-insert --extended-insert --no-create-info --order-by-primary --result-file=vanilla_users.sql --user=user_name db_name LUM_User
Replace the values "user_name" and "db_name" as needed. Your sysop should have no trouble with this. The full documentation for mysqldump is here if you need it.
- Replace all `LUM_User` with `wp_users`
- Replace all `UserID` with `ID`
- Replace all `Name` with `user_login`
- Replace all `Password` with `user_pass`
- Replace all `Email` with `user_email`
- Replace all `DateFirstVisit` with `user_registered`
Save and close "vanilla_users.sql" when you're finished.mysql --user=user_name db_name < vanilla_users.sql
Again, replace "user_name" and "db_name" with the actual values.
Does this mean it worked for you?
(Deleted old comment)
New question: If I follow Mark's steps with a pre-existing Vanilla install, do I risk losing all my forum data? Also my User Table has been modified due to extensions (example: Captcha). Will this be an issue?
I used an existing Vanilla board and, no, I didn't lose the forum data.
Still have a few issues with Janine, but squirrel hasn't been around for while.
What else can be integrated?