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

    (@tw2113)

    The BenchPresser

    This is in the achievements section of a buddypress user profile, correct?

    Thread Starter koreancandy

    (@koreancandy)

    Yep it is

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Thread Starter koreancandy

    (@koreancandy)

    Thanks

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

    Thank you!

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    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?

    Thread Starter koreancandy

    (@koreancandy)

    Ah, that makes sense, thanks ??

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

    Thanks!

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    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 ‘Is it possible to make the badges unlinked?’ is closed to new replies.