Search

bbPress Showcase » theme bbPress Themes

  1. tikitakfire
    tikitakfire

    member
    Joined: May '08
    Posts: 11

    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) 6 months old
    Posted 6 months ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 330

    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 6 months ago #
  3. tikitakfire
    tikitakfire

    member
    Joined: May '08
    Posts: 11

    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 6 months ago #
  4. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 330

    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 6 months ago #
  5. tikitakfire
    tikitakfire

    member
    Joined: May '08
    Posts: 11

    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 6 months ago #
  6. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 330

    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 6 months ago #

RSS feed for this topic

Post a reply to “Show user avatar”

You must log in to post.

keep _ck_ coding >> donate $1 <<     Theme Switcher:
10 users online from  US  CN in the past 30 minutes. 8 bots 2 guests
349 views today 2798 yesterday 3411 ever. Most at once 19 today 24 yesterday 19 ever. Visited today: _ck_
724 posts in 106 topics over 19 months by 146 of 676 members. Latest: nicoosuna, Wish, insightdesigns