![]() |
Quote:
|
Quote:
|
It works well but I have some problems:
-Private message text is broken in the slave board. -User's title is broken in the slave board. -signature is broken in the slave board My board is using utf-8 charset(vietnamese languages) |
Quote:
If you can enter the machine as root you could make a hard-link from the secondary forum avatars directory to the main one using "ln" (I'm assuming it's a U*IX/Linux machine) |
Hello loven! :)
That seems strange since str_replace shouldn't affect the strings encoding. Could you please check if both forums are running using the same encoding? The problem could be there... Could you provide the urls for us to test? :) Quote:
|
Quote:
Thanks for your reply. Both forums are running the same ecodeing. However, in my main board I turn this off Quote:
I try to turn this off on the slave board but I got some error. Could you tell me how to fix on this case? Thanks again |
Quote:
I also let people host their signature pics on my forum. So I also added "sigpic" to the list of shared tables. |
Also, I figured if both board share the same PMs, then why not visitor messages too?
Just add: "visitormessage","visitormessage_hash" And you are good to go :) |
Interesting way of doing it.
we've been running shared users for about 3+ years now and it has some minor "issues".. we initially did ours with PHP edits, then eventually by static links.. works well but has some issues with groups not updating sometimes. Currently looking at what modifications I'd need to make the functions affecting registration, changing password, changing username, changing email address... ideally i'd love to just share username, password and email address, and nothing else. Much to do. |
Hello
I´am very intersted in this modification, but there is no howto. Please explain the implementation of this mod. Where do i put the code in the class_core.php, btw. in which line ? thx Flo |
thanks for it...could you please provide a small tutorial on how to do it?
|
a little question: I believe the password's salt is based on the forum's license string. ¿Why doesn't this affect this mod?
|
Quote:
Quote:
1.- open includes/class_core.php 2.- find Code:
$this->querycount++; 3.- after that, add Code:
$shared_tables = Array("user","useractivation","userban","usertitle","userchangelog","usertextfield","userfield","usergroup","userlist","usernote","profilevisitor","reputation","reputationlevel","spamlog","strikes","pm","pmreceipt","pmtext","avatar","profilefield"); |
Now that was a nice short tutorial :D
Would this work with two different versions of vBulletin? Say for example a 3.6.x and a 3.7.x site? I assume that this would not cause major impacts with upgrading as long as we remember to update the core file again? I wonder what the chances are that vBulletin could do something as a standard feature in vBulletin as I always wondered what the master and slave setting were for in the config.php file but honestly I never really had the time to investigate. I will have to look at this code more and give it a try on one of my test boards and if it works I may need to buy some more vBulletin licenses! |
Hi there. :)
Is this working on the latest version of vB? This will work with two different databases right, basically sharing one database's vB users? |
If I also wanted to share my Who's Online data (so that users showing up as logged in on one forum also appear as logged in on the other), is there anything I should be concerned about before just sharing those tables?
|
great hack will use at some point.
|
I have been looking for such a mod to merge my two forums database, I will give a try and let everyone know the performance.
|
I've read this thread 4 times, all 4 pages & I can't seem to get the slave board to grab anything from the main.
The main forum has no prefix in it's tables so I have used the following: Code:
$shared_tables = Array("user","useractivation","userban","usertitle","userchangelog","usertextfield","userfield","usergroup","userlist","usernote","profilevisitor","reputation","reputationlevel","spamlog","strikes","pm","pmreceipt","pmtext","avatar","profilefield"); I also tried $main_prefix = "."; & $main_prefix = " "; The new forum has yf_ as prefix which I had entered into the config.php before install. Same database. Is there a setting within the config.php that could be affecting the class_core.php mod? I'm refreshing the member list on the new forum to check it's working. I should see it go from 1 member to 12,447 members to mirror the main forum right? |
i have the same problem my main forum does not use table prefix what can we edit to have it so that members can log into the second board - all i would like is the users shared nothing else.
Please anyhelp would be appreciated. |
Still not resolved.
Is there an easy & non destructive way to add prefixes to the start of all unprefixed tables? Some of the tables on the main forum are prefixed but like mw_ for media wiki, so a script needs to be variable. |
Is this the only Mod to do this? Anyone offer a commercial one with full support similar to how VBSEO does for search opt?
|
Wow,
I got it to work within like ten minutes by reading all five pages and getting everyones input. Thanks for a great hack this is what I have been looking for and it works perfectly. |
Do you have prefixes on the main db?
|
Quote:
|
when you share the usertable, will the vb featurees like avatars stop working on all forum or just the forum B that is sharing the usertable with from the forum A
|
also if i share the usertable will the usergroup be the same as forum A ?
and where do i paste that patch, on forum A or forum B? |
Quote:
Also guys my main DB does NOT have prefixes .... I just used this: Code:
$shared_tables = Array("user","useractivation","userban","usertitle","userchangelog","usertextfield","userfield","usergroup","userlist","usernote","profilevisitor","reputation","reputationlevel","spamlog","strikes","pm","pmreceipt","pmtext","avatar","profilefield"); |
Quote:
https://vborg.vbsupport.ru/showpost....1&postcount=53 put it in the class_core.php on the 2nd, 3rd, 4th, ect forums. Leave the class core on the main forum whos user database your using alone. |
thanks for the reply =)
now im wondering if this support mysql 5.1.30 |
Got it to work!!
This mod WILL NOT work if you have the database type on the subsequent forums set to 'mysqli' in the config.php. Change it to 'mysql'. Hope that saves some pulling of hair out of your noggin :) |
Hey guys ... running into an issue now ...
On the test site I have the Avatars set to the DB, but they still are not showing up. 2nd thing is I started to build the live site and have the patch set up, however unlike the the test site the Reg. User count isnt updating when someone registers, will it only do that when some reg on site B? should I set up a cron job just to update counters once a day? |
Quote:
You need to add "customavatar", to your array list. |
my main forum doesnt have prefix so what should i do
|
Quote:
|
Quote:
Thank ... ill look into that. |
Quote:
my second forum got prefix fb_ |
Quote:
Code:
$main_prefix = ""; |
Quote:
Also it looks like the user count will update when someone posts :up: |
Quote:
|
All times are GMT. The time now is 01:05 PM. |
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:
|