Skip to:
Content
Pages
Categories
Search
Top
Bottom

show user avatar

  • @arturo84

    Participant

    hi, i need the function to show the user’s avatar on the forum sidebar, anyone can help me?

    thanks

    edit: i’ve tested this

    <?php echo bb_get_avatar($user->ID, 40, $default); ?>

    but i see a generic avatar and not my gravatar… help me!

Viewing 5 replies - 1 through 5 (of 5 total)
  • @rich-pedley

    Member

    what value are you using for $default? have you tried just using:

    <?php echo bb_get_avatar($user->ID, 40); ?>

    @arturo84

    Participant

    yes but i see my avatar only on my profile page, in home, topic, etc i see a generic avatar…

    @rich-pedley

    Member

    I’m coming to grips with bbPress.. slowly.

    Is the $user->ID actually availabel for use at that point or do you need to do a

    bb_get_current_user_info('ID'); ?

    @arturo84

    Participant

    you rocks Rick :)

    this is the solution:

    <?php echo bb_get_avatar(bb_get_current_user_info(‘ID’), 40); ?>

    @rich-pedley

    Member

    glad it worked.

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