• Resolved maruyamah

    (@maruyamah)


    Hi, I have installed the latest version of BuddyPress, BadgeOS wordpress plugin, and BadgeOS Community Add-on. I have created two accounts with which to test it. It seems to be working fine on one account but the other one will not display achievements in the activity stream. The working account is an admin, the other was a subscriber but changing that didn’t affect the results. Do you know what’s going on?

    https://www.ads-software.com/plugins/badgeos-community-add-on/

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter maruyamah

    (@maruyamah)

    Maybe I should also note that the badge does show up on the achievements page for both users and is working fine, so I know the badge has been awarded.

    Thread Starter maruyamah

    (@maruyamah)

    new update: once I changed the status of the non-working account to super admin the badges started to display on the activity stream. For obvious reasons, I’d rather this be possible without making a member a super-admin of our site.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    To clarify, it doesn’t post to the activity stream when an achievement is earned as a subscriber, contributor, author, or editor, just admin or super admin?

    Thread Starter maruyamah

    (@maruyamah)

    Sorry–it doesn’t post to the activity stream when an achievement is earned as a subscriber, contributor, author, editor, or admin. It does post for super admin.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Gotcha. Strange.

    Not sure if you have any dev sites available, but have you managed to confirm if the same happens in a single site, instead of multisite?

    Thread Starter maruyamah

    (@maruyamah)

    Sorry I don’t really have a place to test that on a single site. Based on the constraints of our timeline and the needs of our users, we’re probably going to just not use the activity stream at all–although using the activity stream would be ideal. Let me know if you have any more questions.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Can you test something for me on this topic. Go to Settings > Discussion in your WP admin, and set the comment moderation link count to 3 or higher.

    I’ve spent some time today trying to determine what is going on, and that setting is where I ended up. Changing it started posting to the activity feed like expected.

    Thread Starter maruyamah

    (@maruyamah)

    Just tested that at 3 and 4 comments in link moderation and it didn’t really change anything for our non-super admin users. Thanks for your work on the issue!

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure exactly which part of the process your case is getting caught in then. At some point, before the actual insertion of the activity data, the component is being set to false, and that’s causing BuddyPress to return early.

    With my testing last night at least, it was because of too many links making the activity item pending moderation. The BadgeOS side of things are working as expected, it’s once it enters BuddyPress’ code that it’s stopping.

    If you want, I can send a modified copy of the right file to implement this possible solution: https://github.com/opencredit/BadgeOS-Community-Add-on/issues/46

    I was hoping that the limit upping would take care of it for the time being though.

    Thread Starter maruyamah

    (@maruyamah)

    Thanks! I’ll let you know how it works when I have the chance to implement it. I have another question on another topic: how are a submission and an achievement related to one another? Specifically, is there a way that I can get the $achievement_id if all I have is the $submission_id?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    the achievement ID associated with a submission is going to be a meta field on the submission ID. So you could use get_post_meta() with the submission ID as the first param, and _badgeos_submission_achievement_id for the key to fetch, and it should return the associated achievement ID.

    Thread Starter maruyamah

    (@maruyamah)

    Thanks! Also new update on the activity front: it seemed like it was working briefly when I increased the number of posts permitted to 6, and continued working for twenty minutes or so when I decreased it back to 3, then stopped. (And I could not get it to start working again, although it’s possible it would have if it had been given more time–it seems like it was taking a little while to kick in, which is why I thought it hadn’t worked the last time.) I put in your recommended alteration and it seems to be working perfectly now!

    I have another question, hopefully the last one. I’ve messed with the program to make it so that the submission content shows up next to the badge rather than the description of the achievement. But the problem that is arising is that the wp_oembed_get() looks really strange–it’s taking on my theme’s css rather than the twitter/youtube, etc. css. Do you know why that is happening? I really appreciate all of your help with this.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    I do not, perhaps instead of using wp_oembed_get() directly, try running the values through the_content filter, it may help with some details.

    echo apply_filters( 'the_content', $myvalue );

    @michael I seem to be having the same issue- no achievements are showing up in my activity stream (www.theheroquest.com/activity).

    I’m using badgeos, community addon, buddypress.

    I’ve ensured all achievements have the box “When a user earns any achievements of this type create an activity entry on their profile” checked.

    Achievements are propagating correctly on each user’s page.

    Any things I can check? Thanks for your help.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Did you check and look over the parts related to amount of links and moderation? Specifically https://www.ads-software.com/support/topic/achievements-not-showing-up-in-activity-stream-for-some-users?replies=15#post-6755341

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘achievements not showing up in activity stream for some users’ is closed to new replies.