Announcement

Collapse
No announcement yet.

How do I pull avatar images in 3.7.x?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Boofo
    replied
    The $prepared does not do a thumb on Showgroups. That is what I am looking for.

    Leave a comment:


  • NeuroLancer
    replied
    Could we get a response on what we need to do to use the avatars where we want? the image.php method is useless and $prepared only gives a thumb... help

    Leave a comment:


  • Boofo
    replied
    I would like to be able to pull the thumb but $prepared isn't in the showgroups. That is where I am wanting the avatar thumb.

    And that line doesn't work for custom avatars in the showgroups, by the way.

    Leave a comment:


  • NeuroLancer
    replied
    Originally posted by Wayne Luke View Post
    Change your image src to:

    src='image.php?type=thumb&u=$user[userid]'
    That works for custom avatars, but its a blank box for anyone with a predefined avatar. Surely there is a simple way of pulling avatars weather they are custom or not?

    in 3.6.8 on the memberinfo page we had
    Code:
    $userinfo[avatarurl]
    , this no longer works. What is 3.7 using?
    Code:
    <img src="$prepared[avatarurl]"
    is for the thumb, how do we get the normal avatar?

    Leave a comment:


  • Boofo
    replied
    I don't think that is gonna work in the showgroups though. I'd like to pull the thumb out like the one in the profile for the showgroups if that is possible. I already had to do a query to get the member's location since the showgroups.php doesn't do that anymore. Have I said showgroups enough?

    Leave a comment:


  • NeuroLancer
    replied
    Im not sure about this, but i used to have similar problem in 3.6.8 until i started using this:

    Code:
    $avatarurl = fetch_avatar_url($userid);
            if ($avatarurl == '') {
              $avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='images/misc/noavatar.gif' border='0' width='100' height='100' alt='View $username/'s profile'></a></div>";
            }
            else {
              $avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='$avatarurl[0]' border='0' width='100' height='100' alt='View $username/'s profile'></a></div>";
            }

    Leave a comment:


  • Nightmarex
    replied
    Yeah that did not work...is there another way to pull the avatar from the image.php file?

    Leave a comment:


  • Boofo
    replied
    That is still not showing up in the showgroups_usergroupbit on 3.7.0 beta 4.

    Leave a comment:


  • Nightmarex
    replied
    Okay thank you I will try this!

    Leave a comment:


  • Wayne Luke
    replied
    Change your image src to:

    src='image.php?type=thumb&u=$user[userid]'

    Leave a comment:


  • Nightmarex
    started a topic How do I pull avatar images in 3.7.x?

    How do I pull avatar images in 3.7.x?

    How do I pull avatar data in 3.7.x? I used the code posted below to pull a user's avatar data from image.php in 3.6.8 on my showgroups or forum leaders page but it no longer works in 3.7.x. Does anyone know how to do this in 3.7.x?

    HTML Code:
    <div style="padding: 5px; float: left; width: 125px;"><img style="margin: 15px;" src='image.php?u=$user[userid]' border='0' alt='$user[username]`s Avatar'></div>
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X