Customizing SMF > Tips and Tricks

Share user database for 2 (or more) different forums.

<< < (3/94) > >>

Anguz:
http://mods.simplemachines.org/index.php?mod=41 ;)

Nic:
Hi, Anguz.  That's more or less what I have done with my board, but it still won't tally the members on the second board if they register on the first, or vice versa...

[Unknown]:
Find, Sources/Subs.php:


--- Code: --- updateSettings(array(
'latestMember' => $latestmember,
'latestRealName' => $latestRealName,
'memberCount' => $memberCount,
'unapprovedMembers' => $unapprovedCount
));
--- End code ---

Replace:

--- Code: --- 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__);
--- End code ---

-[Unknown]

Anguz:

--- Quote from: Nic on October 31, 2004, 05:17:25 AM ---Hi, Anguz. That's more or less what I have done with my board, but it still won't tally the members on the second board if they register on the first, or vice versa...

--- End quote ---

That'd be because that information is saved in the settings table.

Nic:
Thanks both of you.  Just what I needed [Unknown].  I had looked at that bit before but couldn't for the life of me figure out what to change it to.  It's now working perfectly :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version