You can add "session" to $shared_tables if you want to share your sessions among forums under the same domain (Thanks Lionel)
This is only useful for new forums joining anothers one user database.
Requirements:
An old forum where all users are.
Sharing the same database, using diferent prefixes for tables (TABLE_PREFIX)
For example: Imagine we have FORUM_A , FORUM_B, and FORUM_C each one with their respective licenses.
FORUM A has table prefix FA_ in database, FORUM_B has FB_ and FORUM_C has FC_
FORUM A is the main, and older forum, where we have all our users.
then we would install FORUM_B and FORUM_C normally, using the same database that FORUM_A uses, but setting up their own table prefixes.
once FB_ and FC_ are installed then we go patching class_core.php from FORUM_B and FORUM_C setting up $main_prefix = "FA_"; so they use FORUM_A for shared tables.
Possible problems:
memcached issues?, not sure
avatar/signature pics/etc issues when storage is set to disk.
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)
I got it up and running and every thing seems to function perfect besides one thing.
I store my avatars on disk (file system) instead of the database storage. Anyone know how to properly link this? I am scratching my head on this, as avatars do not show up.
Yes, that's one of the things that cannot be used with this patch "directly"
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)
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:
Originally Posted by lovevn
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)
Yes, that's one of the things that cannot be used with this patch "directly"
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)
Yeah, I just transferred them back into the database and added "customavatar" to the list of shared tables.
I also let people host their signature pics on my forum. So I also added "sigpic" to the list of shared tables.
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.