opencredit / BadgeOS-Community-Add-on

The "BadgeOS Community Add-on" integrates BadgeOS features into BuddyPress and bbPress. Site members complete achievements and earn badges based on a range of community activity and triggers. This add-on to BadgeOS also includes the ability to display badges and achievements on user profiles and activity feeds.
GNU Affero General Public License v3.0
11 stars 8 forks source link

Achievements not showing in BP Profile area #9

Open tw2113 opened 11 years ago

tw2113 commented 11 years ago

Original thread: http://wordpress.org/support/topic/achievements-not-showing-in-bp-profile-area?replies=13#post-4531830

After some extensive testing, I have found that the "Achievements" tab in the BuddyPress profile only works directly out of the box. If you use multiple achievement categories, not all of them will display. Here's how I think the program operates and where I think there is a problem.

How it "should" operate:

1) Admin creates multiple categories with multiple badges/awards/medals 2) User unlocks an award. 3) Upon unlocking an award, the BuddyPress "Achievements" tab is supposed to trigger so that the tab displays. 4) Clicking on that tab will show all the achievements a user has earned from all categories.

Here's some problems I noticed:

1) The trigger to display the "Achievements" tab does not seem to be all-inclusive. If I just make one category and make achievements only in that category, everything seems to work fine. The problem arises when one starts making multiple categories. This leads me to believe that the trigger to display achievements is too defined and needs to be broadened.

2) The display of achievements is also confined to only 1 category. Something in the coding needs to be expanded to include all achievements, not just one category.

I am not a programmer, so this is just my two cents. I tinker with code a bit so perhaps I'm on the right track here, but I just wanted to write this so that the plugin developers might have a better idea of where the issue is so they can adjust it.

tw2113 commented 11 years ago

Hey @brichards or @messenlehner think we could check on this one a bit soon? The userbase is getting a bit restless over it, and I have one new report of

 "Well, with the new version of everything, the achievements are no longer showing for me ... with the above functions.php code or without.

Any idea how I get these to show again? Quite frustrating for users, now that they have disappeared and no users can see what is available.

going on regarding it as well.

I believe it may be part of the BadgeOS_Community_Members class extension in bp-members.php at line 110

tw2113 commented 11 years ago

Confirming that I am seeing an "Achievements" tab in the profile area on a BuddyPress frontend. I do have badges awarded to my user as well, but the output is empty. I should be seeing at least a "Test Badge" output there.

screen shot 2013-10-02 at 12 32 46 am

rastarr commented 11 years ago

Having similar issues on my http://www.geekandjock.com site. Viewing a single badge and those that have got the badge works though. Is the shortcode for displaying available badges also broken as it is with me?

tw2113 commented 11 years ago

More investigating has me thinking that the badgeos_achievements_list_shortcode callback is potentially disconnected from any ajax that actually loads the achievements.

We're getting the content output in badgeos_achievements_list_shortcode() but once it comes to #badgeos-achievements-container nothing is ever loaded on the frontend. Something is not occurring in those stages. Other possibility, we're never reaching badgeos_ajax_get_achievements(). For what it's worth, the [badgeos_achievements_list] shortcode doesn't appear to be working for me either on localhost.

End of the day, all of these spots appear to rely on ajax and they're all currently not working.

Edit: I did spend some time trying to debug the community addon part, but my navigating of the code lead me to these conclusions.

tw2113 commented 10 years ago

If we get more reports of ajax issues being resolved, we could probably mark this issue closed. I know Martin mentioned on the forums that it was working for him with BOS 1.3

sc0ttkclark commented 10 years ago

I believe there were a couple of fixes in 1.3 that could have resolved this.

tw2113 commented 10 years ago

@sc0ttkclark i'm having a report from the .org forums that it's reversed of what it should be doing.

http://wordpress.org/support/topic/achievements-tab-not-visible-on-admin-profiles?replies=5

tw2113 commented 10 years ago

http://wordpress.org/support/topic/for-anyone-with-issues-with-the-achievements-tab-on-user-profiles?replies=2#post-5388869