![]() |
How everything works?
Hello,
Anyone have or willing to type up a layout of exactly how the vb backend works, like what happens when you hit the index, ie, init.php is loaded etc. Im trying to make the install I have share a database with another. And I cant seem to find anything. I cant find where vb defines what $user is, I cant find where the database query it for the $user string. I need to change the the prefix for the $user string.. Since I have one installed with no prefix, and the other with testvb_ I know it will end up being alot of changes to vb, that I dont mind.. I have nothing better to do ;) I just cant figure out how its layed out, where variables are stored.. etc etc.. Can anyone help? Also, just in case I dont end up figuring this out, does anyone have a script to copy any new content from one user db, to another? Brandon fraghard.com |
Pay me 1 Million dollars and give me about a year:) I'll give you all the tech docs you want.
At the moment there is no intensive docs like what you want, best off to ask a question and someone will anwser. |
Mainly all I want to know is where the $user variable is set. I could care less about a extensive tech doc, it would just make it easier ;) I dont mind working, and searching.. this damn variable is being a real $#%$^ to find though.
|
The user variable is set 86 times all across the vbulletin files. Which file are you looking at?
|
Im just wanting to change the $user query to look at a different table prefix
|
Quote:
|
Quote:
|
I wouldnt mind changing the code in every file if i knew what code to change ;) I know itll be alot of work.. doesnt bother me.. i have alot of time.
Quote:
|
Quote:
|
Give me some hints, lol.. please please.. I dont mind if its not pretty work.. and requires alot of time.. i need a challenge from time to time. But when you know nothing of how something works, it makes it near impossible to do anything with it.
|
Well after spending a great deal of time with vBulletin pokeing and reading source code i have a decent understadnig,
Stage one would be installing 1 board the first, then modifiing all the files removing ' . TABLE_PREFIX . ' from every occurence that appears before user in every file. once thats done, you move onto stage 2. |
Go get Editplus 2 and use the search and replace in files feature. Search for " . TABLE_PREFIX . "user and replace with: user
and tada! you've changed all the references to the user table in under 30 seconds. :) |
Ive already got the majority of it done ;) well.. everything in the root is changed. My memberlist shows all the members from my other forum, and I can login under my username at the other forum.. doesnt keep my logged in though.. im sure thats in the includes somewhere.
|
Ok, heres heres another question, is users all i change, or do i have to change sessions? etc etc Ive had it sharing the user database, but it wouldnt log me in for some reason, it would say i was, but after it redirected back to where i was.. i wouldnt be.
|
Quote:
|
:update: got it all working, took me less then 2 hours ;) Thanks for the info Zachery
|
Quote:
The messy stuff comes when you want to have specfic post counts for each forum, etc. |
The post counts and what not dont matter to me. I do know that I have to get another license. After we run some tests on this one to make sure its not going to die we are going to purchase another.. probably monday morning.
|
Quote:
|
All times are GMT. The time now is 12:20 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:
|