I have amember and SMF integration working fine, with member creation by amember and single login to SMF forum. However I noticed that the stats do not include these new members. Not sure why SMF thinks the members created are not members for purpose of stats. Currently stats show 1 member (me). But there are about 20-30 at this point. Does anyone know why this does not work correctly?
Hello, I happen to use SMF forums and noticed the same thing but never bothered with it because I have not gone primetime yet, but since you noticed it also I decided to investigate and this is what I found. The function smf_update_stats in file smf.inc.php needs to be modified. Its setting memberCount in the SMF settings table when it should be setting totalMembers in the SMF settings table. Maybe this field has changed in newer versions of SMF and no one noticed it until now. So modify the following line in smf_update_stats in file smf.inc.php from the following: PHP: $qry = mysql_query("update {$ydb}settings set value=$cnt where variable='memberCount'"); to this: PHP: $qry = mysql_query("update {$ydb}settings set value=$cnt where variable='totalMembers'"); This will fix it so aMember will correctly update the field when new members are either added or deleted. The next time a member joins it should set the correct value in the database, so if you manually create a dummy member in aMember Control Panel you should be able to verify the fix and verify that the right member count is displayed in SMF. By the way I'm using SMF 1.1.4 and SMF 1.1.5. So I know this fix is applicable to these versions. I'm not sure about older versions. Hope this helps. Jimmy
Hello, I just verified the above posted fix works for SMF version 1.1.4 on one of my sites. I am assuming it will work for other SMF versions that are 1.1.x based. For 1.0.x or earlier you should probably not do this fix because it will not be needed. Jimmy
Hey thanks for that, it worked! the amember registrations are still not considered registrations, but that's a lot less important. I just didn't want the thing to show only one member! Thanks again, Tim