Michael 2020-11-17T10:28:14-05:00

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 649 total)
  • Author
    Posts
  • Michael
    Member
    Post count: 649

    Just to be certain, have some of them been earned already by users? If I recall right, we check against the user meta the plugins save.

    Michael
    Member
    Post count: 649

    Sam, do you have any previous achievements that were based on publishing a post? At least based on what I saw, and what I found after I deleted that step post type post from the database, the issue resolved itself, but while it was present and orphaned so to speak, it was somehow triggering and causing issues like you mention.

    Not sure why it’s suddenly shown up twice now, seemingly out of the blue, to be honest.

    Michael
    Member
    Post count: 649

    At this point, I don’t know. It’s not anything specific to LearnDash or any specific theme.

    Would you be willing to let me in to the site myself? Not sure I still have a login, since I think I did at one point.

    Michael
    Member
    Post count: 649

    Not quite what I’m trying to first confirm. I know and they’re intended to be logged, but I’m trying to make sure they’re only showing up where they should be.

    If they’re showing up when visiting: https://cloudup.com/chwiJfThT_H
    That’s bad.

    If they’re showing up when visiting “log entries”: https://cloudup.com/cC1UKaby4NE
    That’s where they’re supposed to.

    Once we’ve established this part, we can go about working out how to stop the logging as a whole, which it sounds like you’d like to potentially do.

    Michael
    Member
    Post count: 649

    Well, I’m trying to figure out how they’d end up in the Pages menu area. They should be as a badgeos-log-entry post type.

    The only place they should be showing up is under BadgeOS menu > Log Entries. If they’re showing up in Pages Menu > All Pages, then something is very wrong.

    That’s the first question I need confirmed.

    Michael
    Member
    Post count: 649

    Those shouldn’t be pages, but instead items in the badgeos log. Are they showing up in the Pages admin list?

    Michael
    Member
    Post count: 649
    in reply to: Leaderboards error #12222

    Have you created any leaderboards yet? That should theoretically fix it.

    Also if you want, I could help hotfix it.

    Michael
    Member
    Post count: 649

    Did it clear up the issues you were seeing? That’s the important part 🙂

    Michael
    Member
    Post count: 649

    From the looks of it, and based on my experiences, something being added to your posts post editor screen are causing the issues, but it’s not BadgeOS. I was able to recreate the media issues, for example, regardless of BadgeOS active status. I was also not able to recreate when editing an achievement. One thing I noticed was that there were less metaboxes and whatnot on the achievement editor screen, which could be a contributing factor for when the errors do occur.

    Michael
    Member
    Post count: 649

    Giving me incorrect password errors

    Michael
    Member
    Post count: 649

    You’ll need to use something like your browser’s developer tools, or have someone help you out with that.

    The error I pointed out was just an example of one I have seen affecting sites running WordPress 4.5.x and jQuery 1.12. However, it’s not the guaranteed source of the issue. I can say for sure that this example is not present in the BadgeOS javascript.

    Perhaps it’d be quicker to have me check on it myself directly, if you’re willing to grant me an admin login long enough to check on. If anything, I could help confirm whether or not it’s coming from something BadgeOS related, and where in general, so that you can take appropriate action from there.

    Michael
    Member
    Post count: 649

    I’d check your browser’s stack trace for the error. I know I’ve seen a lot of issues with jQuery selectors like a[href=#] being troublesome with WordPress 4.5 and jQuery 1.12. Should be a[href="#"] or single quoted, depending on the context it’s in.

    Michael
    Member
    Post count: 649

    The shortcode can handle showing just the earned achievements though. Have the filters set to false aka not show, and provide a user. With my tinkering last night to confirm, it showed just the earned ones my user had.

    The issue, of sorts, is that it’s not the most obvious to accomplish with the shortcode chosen, which is built to do a lot more than just that. The other half is that it’s not built to show just earned achievements via “displayed user” in cases where you drop the shortcode into a user profile template and it does the achievements for whoever’s profile is being viewed.

    The best solution I’ve managed to come up with in the past is using the WordPress do_shortcode() function in the appropriate template file and use BuddyPress’ functions to query for and pass in the displayed user ID to the shortcode at that time. Not sure if MemberMouse has functions like that. More on MM later in the reply.

    There is always the widget that we do have out of box, and does show just the earned achievements. So we haven’t left people completely in the dark here.

    We also have it set up to show earned achievements in user profiles for BuddyPress with the additional free BadgeOS Community addon, but it doesn’t cover anything but BuddyPress.

    Membermouse has no official integration with BadgeOS at the present time, and I’m not personally aware of any plans for it either. I won’t be of much help answering questions regarding that part of things.

    Michael
    Member
    Post count: 649

    I’m going to lean towards suggesting going the CSS route, but I will also explain out what would need done by someone willing to try.

    Basically we have this function: https://github.com/opencredit/badgeos/blob/master/includes/content-filters.php#L382-L443

    and the badgeos_render_achievement filter at the end.

    What would need to happen is using a filter callback on that filter itself, and copy pretty much all of the function highlighted into your callback and recreate the output, removing/altering/adding what you want to it, and return that new content.

    The filter would receive the default output and the achievement ID.

    Hope that provides some help for whoever decides to take on this part of the work.

    Michael
    Member
    Post count: 649

    CSS would be one way to handle the graying out idea.

    Providing the user to show for, and setting the show_filter shortcode parameter to false shows just that user’s earned achievements. However, there’s no easy way to customize that without hardcoding the user value. It’s possible we could use the shortcode_atts_{$shortcode} filter from WordPress core, but it’ll depend on how/where you’re trying to set user IDs.

    Michael
    Member
    Post count: 649

    How much of a coder are you? There’d be filters you could use or you could use CSS to visually hide it. Depends on your familiarity with things. There’s no checkbox option to hide, for what it’s worth.

    Michael
    Member
    Post count: 649

    This should have you covered: https://cloudup.com/ctmNs67tLMD

    Michael
    Member
    Post count: 649
    This reply has been marked as private.
    Michael
    Member
    Post count: 649

    Sent a refund request to the people who have the ability to issue them. I can’t personally.

    Michael
    Member
    Post count: 649

    Can you first test by flushing your permalinks? Visit the Permalinks settings page, and hit save without changing any settings.

    Second question would be if those accents from “ść” are perhaps showing up as part of the achievement type slug, which are actually post types to WordPress.

    It’s possible, due to the accents, that there are errors going on with the querying. If they are indeed present, may not hurt to try without the accents.

Viewing 20 posts - 1 through 20 (of 649 total)