Avatar in comments refers to “Website” field in profile?

I found if I put user’s the primary blog uri in the “Website” field of the user profile (which is “http://” by defaut), then the avatar in comments works, if not, the avatar in comments will display the default avatar. it seems avatar plugin gets the site_url from the “Website” field of the profile, not the user’s primay blog uri, it seems not reasonable, user must put his primary blog uri to “Website” field to let the avatar works in comments.

  • Luke
    • The Crimson Coder

    That’s pretty strange.

    I guess you could hook into the create blog function that installs the blog (I think there is a hook for it), and use your own code to add in the url to their blog.

    As for my specific system, it’s privately written for my system. Although I did merge in the javascript for cropping the image from Andrew’s release.

    In a nut shell, how my system works is it takes the user_id, then names and stores the avatar based on that in a special avatar directory. I also have several directories for storing avatars, so that each directory doesn’t get overcrowded.

    Also, there aren’t any database calls involved, as each image is called directly vice having to go through a translation file.

    All the images end up as user_id-avatar_size.jpg, but I’m not really concerned about image names. For example, user #215 would have avatars like 215-16.jpg, 215-48.jpg, etc. The “advantage” to that is that if a user just has a user name, they can still have an avatar for their profile.

  • italways2
    • Design Lord, Child of Thor

    hi, luke

    thanks for your hints, I will try to make MU input the website url automatically when creating the new blogs.

    “The “advantage” to that is that if a user just has a user name, they can still have an avatar for their profile. ” this is great! would you mind telling me your website url? I wanna register and have a try on it:slight_smile:

  • Luke
    • The Crimson Coder

    To be honest, while I appreciate your enthusiasm about it, I really do prefer people don’t register on my site to just play around. Especially at this point in time, as it’s being written to fairly often as it’s prepped for bigger things to come.

  • Andrew
    • Champion of Loops

    Don’t get too excited bug we’re planning on coding a new version of the avatars plugin that will have both blog avatars and user avatars.

    We’ll provide functions for displaying avatars in comments and the like but you’ll still be responsible for updating your themes.

    Thanks,

    Andrew

  • italways2
    • Design Lord, Child of Thor

    Hi, Andrew

    it is really a good news in new year!

    btw, how about the new version of friends plugin? my site is supposed to be released in next month, should I expect to include your new version of avatar and friends plugins in my site’s first release? thanks!

  • Andrew
    • Champion of Loops

    > btw, how about the new version of friends plugin?

    That’s still up in the air at the moment. We’ll let you know something as soon as we decide.

    > should I expect to include your new version of avatar and friends plugins in my site’s first release?

    The avatar plugin should be released within the next month. However I cannot give you a time frame on the friends plugin.

    Thanks,

    Andrew