Achievements for WordPress
[resolved] Unlocked By/Search Issues (v. 2.4) (5 posts)

  1. thecorkboard
    Posted 3 years ago #

    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: http://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: http://screencast.com/t/92KK6JD791

    Thanks for any input you have,


  2. thecorkboard
    Posted 3 years ago #

    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?


  3. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 3 years ago #

    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.

  4. thecorkboard
    Posted 3 years ago #

    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,

  5. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Achievements for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic