• Resolved leetdonkey

    (@leetdonkey)


    Hello

    I’ve installed the wp-steam-auth login on my wordpress page and it works great.
    I’ve also installed buddypress since it was supposed to work with it, this also works great.

    I would like to show a link to their steam profile on their buddypress profile, the link shouldn’t be editable since it’s supposed to be tied to their steamprofile.

    I’m new to wordpress, buddypress and wp-steam-auth, and I’m wondering how I should go about doing this?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello!

    In order to display the Steam Profile on the buddypress page, you have to have some php knowledge.

    First, head over the Buddypress Codex on Templates Pages to understand how Buddypress manage pages.

    Then head over Playing with Buddypress Users ID in different Contexts, so you’ll understand how to get the specific user id you need.

    Now you know where you want to display the steam profile url, retrieve the specific user meta (it’s stored as steam_profileurl).

    Here is an example code:

    
    <?php
    $user_id = bp_displayed_user_id(); // Get the displayed Buddypress User ID
    $steam_profile_url = get_user_meta($user_id, 'steam_profileurl', true); // Get the User Meta 'Steam_ProfileURL'
    echo $steam_profile_url; // Display the Steam Profile URL
    ?>
    

    Hope it helps!

    Thread Starter leetdonkey

    (@leetdonkey)

    Thank you!

    I managed to get it done using the info you provided

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show steamprofile link on profile’ is closed to new replies.