• Resolved thecorkboard

    (@thecorkboard)


    Hello Paul and other Achievements users-

    I’m running WP 3.5.2, Achievements 2.4, and BP 1.8. I’ve run into two issues that I could some help with.

    1) Unlocked By
    On the Unlocked By page for a single Achievement, it shows a selection of users, of whom many have not unlocked the achievement, and the date is listed as “43 years, # days ago.” Here’s a screenshot: https://screencast.com/t/hMAwurjWCbA

    2) Directory Search
    When searching for an Achievement on the directory page, a random “0” shows up when the results are shown. This all happens when changing from All Badges to My Badges. Here’s a screenshot: https://screencast.com/t/92KK6JD791

    Thanks for any input you have,
    ~Kyle~

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter thecorkboard

    (@thecorkboard)

    Just a thought about number 1:
    I think having the unlocked by page is a bit redundant due to the home/activity stream on each achievement. Is there someway to filter the unlocked page out of the nav in

    <?php do_action( 'dpa_achievement_options_nav' ) ?>

    of single/home.php?

    Thanks,
    ~Kyle~

    Plugin Author Paul Wong-Gibbs

    (@djpaul)

    Hey Kyle,

    I feel bad, because I’d love to help you out, but you’re using version 2.4 of Achievements, which is out of date (but there are understandable reasons for using that particular version). I have not looked at the 2.x branch of code in a very long time, and I haven’t been testing it against recent WordPress or BuddyPress releases. It sounds like you’ve run into a bug caused by one of these.

    Thread Starter thecorkboard

    (@thecorkboard)

    That’s ok, Paul. Thanks for taking a look. Did you have any thoughts about a way to filter out the unlocked by page on single badges?

    No worries if you don’t.

    Have a nice weekend,
    ~Kyle~

    Plugin Author Paul Wong-Gibbs

    (@djpaul)

    There’s a BP global where the subnav items are stored. Take a look in achievements-core.php, around line 163, and you can see where the Unlocked By menu is added.

    The call to bp_core_new_subnav_item() on line 226 is BP’s function, which you can trace back in BP to see how it works.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unlocked By/Search Issues (v. 2.4)’ is closed to new replies.