The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
|||
|
|||
If you have access to both databases you could easily duplicate the new user code so that it made the inserts to both db's at the same time. You would need to handle the case of the username/email possibly already existing in one of the db's but not the other.
|
#3
|
|||
|
|||
that's what I was thinking too, but if I have the same members on both it won't happen, since when you reg for one your automaticaly reg for the other, and I would import the old users to the new board anyways!
Do you know how to do this? Any help will be really appreciated! |
#4
|
|||
|
|||
Yes I do but must ask the question : if both db's have the same user database why not just reference one database?
|
#5
|
|||
|
|||
well I mean if you have two boards not from the same person, like you want that all your users sign up for another board on another server on another database (even because you can't have more than one vbb on the same db) to sign up for your friend's board as well, and your friend is starting so his board had no users
|
#6
|
|||
|
|||
I'm sorry I think I know what you mean know, but how would I reference one database frmo another board? Where would I have to change?
|
#7
|
|||
|
|||
So first you would need to export your users table (the one with the users) and import it into your friend's user table. You know would have the same users. (You would do this using phpMyAdmin easily)
From here I assume you both make the hacks so that a new user at either board would be entered into the other boards database also. You would need to give your database info to your friend and he would need yours. The hack would be a minor one to member.php. You also would need to update a user's info on both boards if/when they choose to change their profile (homepage/password/ICQ/etc) Again this would be a minor change to member.php. Remember trying to maintain synchronized data on separate databases is not a fun task. What happens if a user regs at your server but your friend's server is down or inaccessible at that moment? You are now out of sync. You could write even more code too make sure a queue is maintained so that the database's can be synched but the hack then becomes tedious. What happens when the user's userids get out of sync? Userid is an auto-increment field and can easily get out of whack. User A regs at your board and user B regs at your friends board at the exact same moment and they both get userid 40. User A then get 41 on your friends board and User B gets 41 on your board. You now see they are different. vB operates off of the $bbuserid so it would be important for them to match. I hope I have scared you enough to not try this. I would suggest you just make (or ask) for a hack that would modify only one of your boards (yours or your friends) to use the other boards user database. You would have no synchronization problems with that outcome. |
#8
|
|||
|
|||
yes you have scared me enough
So is it possible to have not sharing a database, but to register for another board? if it doesn't sync t wouldn;t be such a problem, because the user would still be reged on one board, but not another Thanks for you help, and I'm sorry if I'm not understanding what you r trying to say but if I did, is ther a safe way to do this? Waht would you recommend? |
#9
|
|||
|
|||
Quote:
Say your forum is the one we are going to use for the user table. We change nothing on yours. You give your friend your database settings, he does what I said above. He then has to edit every php file that uses the user table and change the lines that insert/select/update/delete the user table from $DB_site to $DB_user Would this be sufficient for what you want? Your database would also need to have permission to allow your friend's server to connect. It may already allow connections from anyone but you would have to ask your admin, or just try and see if it works. You then lock your friend into having to make these changes every time he upgrades. |
#10
|
|||
|
|||
That would be great, thansk a lot for you time, and fast replies!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|