Search

bbPress Showcase » bbPress Themes

Show user avatar

RSS

Tags:


  1. tikitakfire
    tikitakfire

    member
    Joined: May '08
    Posts: 16

    offline

    hello, it's me again...

    I'm using Avatar Upload and I want to show the avatar of the logged user like in the image, now, when see the profile of another user the plugin display the avatar of the user profile that I see and not my avatar...

    I'm using this code to show the avatar of the current logged user
    <?php avatarupload_display(bb_get_current_user_info('id')); ?>
    but, as I said earlier, the ID changes in each profile, showing the avatar of each profile and not the ID of the connected user...

    There is some way to show the logged user avatar and not to each profile?

    Attachments

    1. JujuyBlogs.png (30.6 KB, 10 downloads) 4 years old
    Posted 4 years ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    In the profile you have to use
    <?php avatarupload_display($user->ID); ?>

    This is a demo of the bbPress Signatures plugin!
    If you use my plugins, please considering donating to help continue their development.
    Posted 4 years ago #
  3. tikitakfire
    tikitakfire

    member
    Joined: May '08
    Posts: 16

    offline

    yes, I know that, but I need display the avatar of the current logged user in all pages...

    I created a user so you can see that is what I want do:
    URL: http://jujuyblogs.com.ar/foro/
    USER: demo
    PASS: 123456

    if you logged in my forum, you will see that I show the avatar of user identified, but when the connected user look at the profile of another user, the plugin shows the avatar of the curren profile...

    explained to me?

    Posted 4 years ago #
  4. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    You can try then doing something like this:
    <?php global $bb_current_user; avatarupload_display($bb_current_user->ID); ?>

    That essentially has to work.

    Posted 4 years ago #
  5. tikitakfire
    tikitakfire

    member
    Joined: May '08
    Posts: 16

    offline

    don't work...

    Look, when I use bb_get_current_user_info('id') like this <?php echo 'Bienvenido <strong>'.bb_get_current_user_info('id').'</strong>'; ?>, always shows the user logged id, but, when I use in this form <?php avatarupload_displaythumb(bb_get_current_user_info('id')); ?> change my ID for the ID each profile...

    you know why?

    I think I will withdraw...

    Posted 4 years ago #
  6. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    I think there is a bug in his function.
    It takes the $id, but it doesn't use it and switches to the global $user later on, which is wrong.
    Let me see if I can figure out the fix.

    You might be able to trick it into a workaround by using the $forcedb option, ie.

    avatarupload_get_avatar($id, 1, 1)

    Posted 4 years ago #
  7. belounsi
    User has not uploaded an avatar

    new member
    Joined: Aug '11
    Posts: 4

    offline

    Dear CK,

    i have the same problem, did you already found out a bugfix for this?

    Thanks

    Posted 9 months ago #

RSS feed for this topic

Post a reply to “Show user avatar”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
31 users online from in the past 30 minutes. 13 bots 18 guests
7,548 views today 8,426 yesterday 16,043 peak. Most at once 50 today 62 yesterday 131 peak. Visited today: Amylawrence, guava, JeffreyCasivant, wigbuy123, gdfddfs, nandao, _ck_, summerfortun
2,288 posts in 394 topics over 66 months by 430 of 2,167 members. Latest: watchessaleus, wigbuy123, JeffreyCasivant