Skip to:
Content
Pages
Categories
Search
Top
Bottom

Show avatar of current user

  • How can i show the avatar of the current user?

    Which function do i need to use?

    Can i find somewhere a reference with all the possible functions?

    grz,

    Mathias

Viewing 6 replies - 1 through 6 (of 6 total)

  • minervaa
    Participant

    @minervaa


    mr_pelle
    Participant

    @mr_pelle

    Those plugin are way too old!

    I use:

    if ( $avatar = bb_get_avatar( bb_get_current_user_info( 'id' ), 80 ) ) {
    echo $avatar;
    unset( $avatar );
    }

    OK, thx!

    I’m new to bbPress and I’m having the hardest time figuring out how to enable/display gravatars on my site.

    I’ve tried:

    if ( $avatar = bb_get_avatar( bb_get_current_user_info( ‘id’ ), 80 ) ) {

    echo $avatar;

    unset( $avatar ); }

    With the PHP tags on the start and end. I’ve added the code on the profile.php file of my template as well as on the post.php file and nothing is showing.

    Do I need to do an img src as well?


    zaerl
    Participant

    @zaerl

    and nothing is showing.

    Can you post here the HTML generated?

    Sure. Nothing is showing…

    Here’s the code from post.php

    <br />
    <li id="post-2"><br />
    <div id="position-1"><br />
    <div class="threadauthor"> </p>
    <p> <p><br />
    <strong><a href="http://www.travismamone.net"&rt;Travis_Mamone</a&rt;</strong><br />
    <small><a href="http://somethingbeautifulpodcast.com/forum/profile.php?id=5"&rt;Administrator</a&rt;</small> </p>
    <p> <p></p> </p>
    <p><small><div class="post_socialize_wrap"></div></small><br />
    </p><br />
    </div><br />
    <div class="threadpost"><br />
    <div class="post"><p>Anybody you'd like to hear interviewed on Something Beautiful? Speak now!<br />
    </p></div><br />
    <div class="poststuff">Posted 20 hours ago <a href="#post-2"&rt;#</a&rt; <a href="http://somethingbeautifulpodcast.com/forum/bb-admin/posts.php?poster_ip=69.2.182.113"&rt;69.2.182.113</a&rt;<br />
    <a href="http://somethingbeautifulpodcast.com/forum/edit.php?id=2"&rt;Edit</a&rt;<br />
    <a href="http://somethingbeautifulpodcast.com/forum/bb-admin/delete-post.php?id=2&status=1&_wp_http_referer=%2Fforum%2Ftopic.php%3Fid%3D2&_wpnonce=06dca23c66"&rt;Delete</a&rt;<br />
    <a href="http://somethingbeautifulpodcast.com/forum/bb-admin/delete-post.php?id=2&status=0&view=all&_wp_http_referer=%2Fforum%2Ftopic.php%3Fid%3D2&_wpnonce=06dca23c66"&rt;Undelete</a&rt;<br />
    <a href="http://somethingbeautifulpodcast.com/forum/bb-admin/delete-post.php?id=2&status=2&_wpnonce=06dca23c66"&rt;Spam</a&rt;<br />
    <a href="#post_content"&rt;Quota</a&rt;</div><br />
    </div><br />
    </div>

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar