Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Alein_Atryda_III - helmikuu 19, 2006, 08:24:49 IP

Otsikko: Separate forums sharing some tables
Kirjoitti: Alein_Atryda_III - helmikuu 19, 2006, 08:24:49 IP
I know this topic was touched few times before, but it was concerning older versions of SMF and I didn't find answer to my question.

I did make 2 forums that are sharing some of the tables and almost everything works. But there is 1 problems that I got onto:(

When I register a member on forum 'A' current number of members doesn't increase on forum 'B'.

Before it would be solved by

Lainaus käyttäjältä: [Unknown] - lokakuu 31, 2004, 05:41:46 AP
Find, Sources/Subs.php:

updateSettings(array(
'latestMember' => $latestmember,
'latestRealName' => $latestRealName,
'memberCount' => $memberCount,
'unapprovedMembers' => $unapprovedCount
));


Replace:
db_query("
REPLACE INTO prefix1_settings
VALUES ('latestMember', '$latestmember'),
('latestRealName', '$latestRealName'),
('memberCount', '$memberCount'),
('unapprovedMembers', '$unapprovedCount')", __FILE__, __LINE__);

db_query("
REPLACE INTO prefix2_settings
VALUES ('latestMember', '$latestmember'),
('latestRealName', '$latestRealName'),
('memberCount', '$memberCount'),
('unapprovedMembers', '$unapprovedCount')", __FILE__, __LINE__);


-[Unknown]
But I didn't find that in 1.1RC2 subs.php:( What should be edited in this version?

I found a mod for that thing too but it was for older version too... If my question was answered somewhere and only blind wouldn't find it then OK, I'm blind(my friends always tell me that XD)
Otsikko: Re: Separate forums sharing some tables
Kirjoitti: manuelap - maaliskuu 05, 2006, 07:33:58 AP
I am looking for an answer to exactly the same question, so anyone who knows the trick.. Please share it with us...  ;)

Greetings, Manuela