• Resolved mrjarbenne

    (@mrjarbenne)


    I’ve got a few badges appearing without titles. I’m not sure where they came from (I did have badgestack enabled, but I’ve since deleted all the badges that it created).

    Because they have no titles, I can’t track them down to delete them. It seems the only way to get rid of them is to Revoke them on each user’s profile, but I’ve got 15 000 users, so that’s not going to happen.

    If you delete a badge, do all of the instances of that badge that were awarded get deleted as well?

    https://screencast.com/t/5vQHYzuUu

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

    This is on the main domain of a BuddyPress install. BadgeOS 1.2, and the Community Add on 1.1.0 both enabled

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi mrjabenne.

    Sorry for the brief delay in reply.

    The way that BadgeOS handles the badge creation is a bit unique. There’s the “Achievements” post type, and with that you create badge types. Essentially a post type is used to make other post types. Due to this, deleting the “badge” from the Achievement post type doesn’t delete any badges created in the badge post type. Those are still going to be in the database and the wp_posts/wp_postmeta tables.

    So to delete the from within the WP Admin, you’d need to re-register the badge achievement type, then delete all of the badges posts associated with that, and then the badge achievement type.

    For a thought on tracking them down, view the source of the rendered page and check the markup around the area in question for some numbers in class or ID attributes. Those are likely going to be post ID that you can check on via your database, if you need to go that far.

    Hopefully that makes sense ??

    Thread Starter mrjarbenne

    (@mrjarbenne)

    I hadn’t deleted the Badge Post Type, I deleted the Badges that had been added within the post type. All the Achievement Types are still there. There are no Badges under any of the Achievement Types, and yet I have these ghost badges that have no title.

    I haven’t delved into the database yet (I’d prefer not to, but will if that’s the solution.)

    At this point I could delete all of the tables and start from scratch. On a multisite instance I assume that the plugin creates a separate table for each sub-domain, correct?

    Thread Starter mrjarbenne

    (@mrjarbenne)

    I think I found the problem: I have 4 blank “Steps”

    https://www.screencast.com/t/xrJvJ95AV

    How do I delete instances of Steps? Is that an achievement type?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    In multisite instances, I believe the plugin would create posts/post types in the individual sites, no global table that works for all sites in the network.

    This is actually a peculiar issue, regarding steps. One way that you could edit them, though is never made obvious via UI only, and I’m not recommending to ANYONE reading this. is going to wp-admin/edit.php?post_type=step You could technically add new ones that way as well, however, this method would not establish the posts2posts connection with the achievement.

    That said, the best and *proper* way to delete the steps would be to find the achievement they’re tied to, edit the achievement, and delete there. That way the relationship would be broken properly as well. I am wagering that you have some that you perhaps started adding a step to, and then abandoned part way through the process. The “label” field looks to make the title for the step post type.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Badges without Titles’ is closed to new replies.