![]() |
Make vbulletin use another table for users
I want to be able to make Vbulletin use another table for users.
Basicly i have 2 vb licences now, and i have one forum up and running. I want to get another forums up and running, but i want to use the same user table as my other forum. Is there a way to do this? |
Quote:
|
I don't think so. It would be sufficiant to hook db_mysql.php, and make the necessary additions to it.
|
You could just modify db_mysql.php, but that would add unecessary overhead on every query...the more efficient option would to do what Zachary said, which you can find (or write) a simple too that'll just do a find and replace on all files
|
exactly what has to be done?
|
Quote:
|
can someone post what i have to change or add in most or all of the files?
|
Lurk, unless your willing to either take some time and expirement or pay someone to do this, i really dont think anyone is going to list out the change of every file in the system.
|
ok, i'll set up a test board and play around with it. I don't know php/mysql though. But i kinda have an idea :D
|
actually, i give up :(
oh well |
I did this with 3 sites, works great. Took about 8 hours to set up and workout the kinks. Now members can go to any of the 3 sites without having to register 3 times. This has been live for about 2 months now, without any problems. I am planning to add 3 more sites as well.
|
Quote:
James do you have a few moments to talk i wouldnt mind knowing how you did it and worked around some of the problems. |
Sure, do you want me to send you a PM of what I did?
|
^_^ that works, you can also email me
zachery.woods <at> vbulletin.com |
Okay, I'll email a word doc to you - need to create the word doc anyway so I remember what I did..lol..
|
Quote:
Can you give us some details about your community's? How big are they and how many users do you have browsing at one time? :) |
I was playing around with this idea and wrote a script that searches through all php files replacing all the table prefixes for the user queries...
it took some time, but overall wasn't that difficult. |
I'll send doc to Zachery and let him have a look, then we should be able to post it.
I am running 3 forums now and will be adding 3 more in the next few months. My forums are not that big so I am not sure how this mod would perform with 10,000+ users. I have about 2 thousand users with max on line of 100+, avg is around 40. |
:)
i hope you post it :p i wanna try this :D |
I got the doc, havent had a chance to read over it, i want to ask a few more questions before anything else :)
|
that doc gonna be posted here? :) :p
|
Quote:
|
lol :D, i wanna try it though. I'm going to try it if i got a doc to help me out :p
|
So, Zachery, i hope you don't mind me asking this, but can you either post the doc here or send me a pm?
|
Zachery, please post either the doc or your modified version. I'm interested in this and I'm sure a LOT of others are as well.
|
yeah :)
|
Zachery, you gonna release it?? I really wanna try it
|
in includes/db_mysql.php
FIND: PHP Code:
PHP Code:
$yournewprefix = your new database have a different prefix i suppose... change it there... you can add these new variables to your config.php file... but have to be added or the script is useless. also, this hack is for sharing between different vB, and have not been tested for other purposes... and i will not release it, because you really have to own 2 different licenses to be able to deal with it - or it's illegal! this can become a official hack btw! |
I think, except the legal issues, there are several problems:
Id' like to know how this problems can be avoided/fixed? |
for this list, just make the exact same change as for the user table... tables are precisely identified, so it's not a problem... the friend just asked for the users table, not the entire system...
some will tell this change make some overhead, but when you want to share your stuff like that, you have to deal with some problems... you can make a global change around the script and make it impossible to update later, or make this little quicky that will enable you a complete merge of users without changing more of the script... i've done the same change for hivemail to use my own vb table instead of the regular vb integration ... job is cool! |
M8, all these things I mentioned ARE in the user table - and that's the problem.
If you have only one user table you have only one post counter, only one field for usergroup memberships and so on ... |
usually, users are the same from one board to another... so if you count the posts from one board, i suppose they have to be added to the other one ?!... logically...
and yes i didn't noticed your detail.. ;) with a merge of tables, users will have one sig, one count, etc... you can merge all the tables related to users details, or keep them independant from board to board... vB have built their users table with too much details, so we have to deal with this... |
hmm, i'm having a problem with that... some questions:
1. can i use a different database? (user, pass, db name) 2. am i supposed to add it after or below? |
1- to have a different db with different users/pass is a bit more complicated, because in this way, you have to add the password ans username to the process, and it can'T be done that way... you ask for too complicated procedure here.
and as it was written, you add it after the first part. btw, i just see there is a usergroup table, this can be hasardeous as the hack i give is replacing everything starting with user... i've updated with a space |
All times are GMT. The time now is 04:56 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|