• I am using the custom community theme and on the Unlocked By list for an achievement it lists most but not all members, whether or not they have unlocked the achievement. It also shows everyone as having unlocked it Unlocked 42 years, 3 months ago ago. This is the same for all achievements.

    I noticed that this list is provided by members-loop.php by your plugin does not contain this so I assume it must be using the one from my theme?

    Any suggestions on how to fix this?

    https://www.ads-software.com/extend/plugins/achievements/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter NickMackz

    (@nickmackz)

    It works on the default buddy press theme but I haven’t been able to work out yet what is missing / wrong in custom community.

    Thread Starter NickMackz

    (@nickmackz)

    Tracked it down to something in my child theme. Any suggestions on what it may be? The main part of my child theme customises bbpress.

    Thread Starter NickMackz

    (@nickmackz)

    Done a bit more testing. It works on the parent theme, but not on an entirely empty child theme (nothing but style.css) so it would appear that the child theme is missing something required?

    Thread Starter NickMackz

    (@nickmackz)

    Managed to a hack a fix by commenting these lines from achievements-filters.php in the plugin includes folder:

    if ( isset( $sql_parts[‘select_main’] ) )
    remove_filter( ‘bp_core_get_paged_users_sql’, ‘dpa_filter_users_by_achievement’, 10, 2 );
    else
    remove_filter( ‘bp_core_get_total_users_sql’, ‘dpa_filter_users_by_achievement’, 10, 2 );

    Does anyone have any idea why this would fix the issue?

    Is this ‘fix’ likely to have any knock on effects?

    Plugin Author Paul Wong-Gibbs

    (@djpaul)

    I don’t know why this problem would have occurred, or why removing that particular filter would have fixed things. I’m going to assume the CC theme filters something that BuddyPress does too, and that they conflict. I’ll try to reach out to the people who make CC at some point.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Achievements for BuddyPress] Unlocked 42 years, 3 months ago ago even if they haven't!’ is closed to new replies.