• Resolved Denis

    (@denis_miller)


    I changed a little Recently Active. Now we could see achievements by clicking the user. Is Is possible to add to function.php somehow? And protect this changes against any plugin updates?

    /var/www/mysite/wp-content/plugins/buddypress/bp-members/bp-members-widgets.php

    <a href="<?php bp_member_permalink(); ?>/achievements/" title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>

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

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

    (@tw2113)

    The BenchPresser

    Not quite sure what you’re referring to for what you changed. Can you provide some more information on that?

    Thread Starter Denis

    (@denis_miller)

    The idea is to show achievement page instead of default member page.

    bp_member_permalink() => bp_member_permalink() + /achievements/

    If I click any avatar I will see his member page with achievement. Without any extra clicking.

    It means I open opportunity to my community members to compare them self with others (+ this cool hack). It intresting to see other achievements and their points. It will force competition thinking as one of gamefication background principle.

    This is an additional tool as Top10 filter of the month.

    So transparency and visualization to create gamefication environment.

    Thread Starter Denis

    (@denis_miller)

    BTW, is it possible to override bp_member_permalink in function.php somehow?

    Thread Starter Denis

    (@denis_miller)

    OMG! I did it!

    `function denis_bp_get_member_permalink($url) {
    echo $url.”achievements/”;
    }
    add_action( ‘bp_get_member_permalink’, ‘denis_bp_get_member_permalink’ );’

    Actually I need to start programming on PHP. I like this flexibility ??

    Thread Starter Denis

    (@denis_miller)

    After playing around. I realized it’s not good idea.

    People would like to see dynamic activities on user member account tab, instead of static achievements.

    Thread Starter Denis

    (@denis_miller)

    Maybe It’s only relevant for BadgeOS-Leaderboard-Add-on (I extended the link)

    plugins/BadgeOS-Leaderboard-Add-on/includes/display.php

    // If link profiles is on, and BP exists...
    if( true == $args['link_profiles'] && class_exists( 'BuddyPress' ) )
    $output .= '<a href="' . bp_core_get_userlink( $user_metrics['user_id'], false, true ) . 'achievements">';
    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Actually I need to start programming on PHP. I like this flexibility :)

    I agree, but want to make note that the hooks system that WordPress and BuddyPress do is pretty fleshed out compared to what you may see in non-WordPress related php.

    There is already an achievements tab available from the Community Addon that gets added to a user’s profile, in case you weren’t aware. I do realize that you may be wanting to change/override it as well.

    Thread Starter Denis

    (@denis_miller)

    Resolved!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Recently Active – link to achivements’ is closed to new replies.