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.
Session is useful only if it's for different forums from the same site. It will avoid double login and keep who's online synchronized.
In the example above, I remembered that I had to do those 2 changes also (version 3.60) since they appeared to be independent from class_core
Quote:
In adminfunctions.php print_delete_confirmation you also need to specify the below (insert it somewhere) or it will switch to default and you will not be able to delete any usergroups. (I don't use prefixes so I have " . ")
case 'usergroup':
$item = $vbulletin->db->query_first("
SELECT usergroupid, title
FROM " . "usergroup
WHERE usergroupid = '" . $vbulletin->db->escape_string($itemid) . "'
");
break;
also in functions.php copy function fetch_query_sql into function fetch_query_sql2 . alter that copy by replacing the 2 instances of " . TABLE_PREFIX . to reflect your master prefix.
Then in usergroup.php call that fetch_query_sql2 instead of fetch_query_sql (many instances)
Session is useful only if it's for different forums from the same site. It will avoid double login and keep who's online synchronized.
Yes, for the same site it's ok. In my config I have different domain names. So I should keep session table independently
[QUOTE]
Quote:
Originally Posted by Lionel
In the example above, I remembered that I had to do those 2 changes also (version 3.60) since they appeared to be independent from class_core
I have tried to create/delete a usergroup from admincp in the secondary forum, and it worked fine, so I suppose that this change is not needed anymore (at least for 3.7.2PL1) :-)
This will just be duplicate content in search engines. If you think this is going to give you extra exposure your right, however at what cost? getting dropped from the search engines.
There is need for this tho, and only in some situations, eg. maybe you got a support board that is for registered users only and you have a few websites, then that would be useful.
Thanks for sharing, I do look forward to seeing this progress, however I currently don't have that need for it like some sites do. Just for the other sites who think great I can now have several domains but with the same forums showing, this is a really bad idea.
What I want is not to get my members indexed, the real intention of this patch is to make my users life easier to move between forums.
Greetings honstar1337!
I must have been really tired when I made that post lol. I can now see a much larger purpose for this mod. (I was thinking something much different yesterday lol).
I might actually end up using this afterall. Thanks.