WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Is it possible to make the badges unlinked?

[Resolved] Is it possible to make the badges unlinked?

Viewing 7 replies - 1 through 7 (of 7 total)
  • This is in the achievements section of a buddypress user profile, correct?

    Yep it is

    Not sure how familiar you are with the hooks system, but it looks like the best you’ll get for this, at the moment at least, is the following hook

    apply_filters( 'badgeos_render_achievement', $output, $achievement->ID );

    The $output variable is going to hold ALL of the output for the individual achievement, and the $achievement->ID part is the ID of the currently rendered achievement. You’ll need to do some str_replace, or similar function, on the $output to remove the tags.

    If you need some help with filtering this, let me know, and I’ll do what I can to help.

    Thanks

    I’m not sure where to put this, could you help me please?

    Thank you!

    The resulting code will go into your functions.php, but we can’t use the 1 line snippet above, that was just an example of the hook being used and what content is available.

    We still need to craft the hook to handle the removing of your links. What’s the achievement slug for the one you want to remove links on?

    Ah, that makes sense, thanks 🙂

    I wanted to make all of the badges removed links. Will this be impossible?

    Thanks!

    Not impossible, though not necessarily simple either. There are many ways that the output is generated and it’s a case of finding/altering each one.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Is it possible to make the badges unlinked?’ is closed to new replies.