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.
A Tale of Two Vanillas
I've got two Vanillas: One is a forum and the other is being turned into a blog. I was wondering if they both could have separate databases, yet use the same table for all user info.; in other words, work independantly as far as posting is concerned, but users would not have to register twice to use both. What would I have to do to make this work?
0
This discussion has been closed.
Comments
You'd need to set up the first database and then change the table prefix on all tables to something else. Delete LUM_User. Then install the other forum and leave all db tables as they are.
Open up your conf/settings.php file for the first app and add/change the DATABASE_TABLE_PREFIX variable to reflect the new prefix you used.
both apps should then be using their own tables for everything but user accounts. After that you can let the users sign in on different people.php pages or you can have them go to the same one with a few other configuration changes if you want.
Interestingly, it only happens when I log in.
The LUM_Style table.
The user account has a StyleID field that tells the app which style to load from LUM_Style. For the first app, it is loading the correct style, but the other app is trying to retrieve the same ID from a different table (where, perhaps, there isn't an entry yet). The key to making it work would be to make sure that the second app has a valid entry in it's style table with the id in StyleID on the user table.
I am logged in to both vanillas. After some hours without visiting any of them, I am logged out at the first one. Going to the second one I am logged in, going back to the first one being logged in again automatically (using links to go from one to another).
Anybody with the same problem and a solution?
Thank you, Jazzman.
Edit: Just wanted to say that the hint of Jazzman worked.
Edit: I moved to another server and it seems to work again.