Customizing SMF > Tips and Tricks

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

<< < (6/94) > >>

jamesgrant:
Good morning lol....

Everything is still working fine... i havent yet opened the 2nd forum up yet... but i have noticed something:

The initial setup was fine, linking the database tables and stuff, but now new members have joined my original forum, they dont seem to become "new members" in my second forum.

i had 308 members when i made the second database, and now new people are still joining my forum, it's updating the members in my original forum, but not in my second forum...

So my original forum says 309, and my new forum still says 308.  :-\ :-\
However, the new members are listed in the new forum if you search for them.... so i assume they can access it fine (seeing as it's the same database table anyways).... but it's not updating on the second forum as new people joining.... so even tho i have 309 members, the 2nd forum says i have 308 lol...

It's not important, but i just thought i'd let you know in case you have any sort of resolution for it :)

J

jamesgrant:
Just went into the new forum, and recounted all topics and statistics, which has sorted out the problem....

Is there any way to 'nudge' the forum to do that itself??? or am i going to have to 'syncronize' the forums every couple of days then??  :-\ :-\ :-\

J  8)

[Unknown]:

--- Quote from: [Unknown] on October 31, 2004, 05:41:46 AM ---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]

--- End quote ---

-[Unknown]

jamesgrant:
hi [unknown].... thanks for the tip lol... i should have read the entire post!!  ::)

That kills my forum though:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/crdscene/public_html/v6/Sources/Subs.php on line 1540

anything i am doing wrong?

[Unknown]:
Are you sure you copied and pasted exactly as I posted?

What code did you remove, and what did you add?

-[Unknown]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version