The MU forums have moved to WordPress.org

WPMU Avatars Released! (91 posts)

  1. billyyo
    Member
    Posted 15 years ago #

    Hello Suleiman,
    I installed your plugin and I uploaded a picture without problem. The avatar is displayed next to comments but the "about" section is not displayed in the sidebar. And even when I click the "About" link of my themes the avatar doesn't show up :-(
    I hope there is a workaround.

    Thanx anyway for your work!

  2. flys
    Member
    Posted 15 years ago #

    Hi to all,
    There’s a way to add the avatar pics from this plugin,
    into the list-all / most-comment plugins, in order to show in mu home page ?

    Thanks

  3. billyyo
    Member
    Posted 15 years ago #

    No, I was wrong. I can't upload images. The image that was displaying next to comments were already in the "avatars" folder. When I try to upload a new image nothing happens!
    I use firefox.

  4. flys
    Member
    Posted 15 years ago #

    billyyo , are you renamed it to default.jpg ?
    In my site works fine

  5. billyyo
    Member
    Posted 15 years ago #

    Only the default.jpg works. Users can't upload files.

  6. kosir
    Member
    Posted 15 years ago #

    suleiman thanks for the tip but I already do use FF. I'll take a closer look and will hopefully be able to provide more info.

  7. suleiman
    Member
    Posted 15 years ago #

    hmm...i'll try and track the problem folks. Right now working with xiando as he appears to have a better version of the profile pics plugin.

  8. xiand0
    Blocked
    Posted 15 years ago #

    billyyo, suleiman will give you a fix for two issues soon: 1) if you allowed pictures bigger than 80 kb to be uploaded then pictures weren't uploaded due to a bug fixed in suleiman's next release, and 2) if you picture was smaller than the avatar-size then pictures also were not uploaded.

    have you set $image_dir and made sure the webserver can write to it? You can configure that from the admin panel.

    A detail, if you don't have php-gd installed (Fedora, CentOS, etc don't install php-gd*.rpm together with php, make sure you have that) then you're screwed and not notified since

    if (extension_loaded('gd') && function_exists('gd_info'))

    doesn't have any }else{ die("No GD, no picture!?"); } type statement.

  9. billyyo
    Member
    Posted 15 years ago #

    Thank your for the reply.
    After reading your post I tried to upload 2 pictures that were exactly 80x80 and below 80KB (and of course .jpg) . The one didn't upload at all, without showing any error message. Just didn't upload. The other did upload but it became a black picture. I mean that the uploaded picture was all black.
    I have gd installed.
    I am looking forward to your new version because it will be very usefull!

  10. nolageek
    Member
    Posted 15 years ago #

    I love this plugin! Any idea how I could get it to show the user's avatar in bbPress as well? :) That'd be super-nifty.

  11. flys
    Member
    Posted 15 years ago #

    There’s a way to show the avatar pics from this plugin,
    into the list-all/most-comment plugins, in order to show in WPMU home page ?

    Thanks

  12. overclockwork
    Member
    Posted 15 years ago #

    Great job!
    The display of the avatars works fine in all browsers, I'm running windows xp. Picture upload works perfectly fine with firefox 2.0.0.3. But not with:
    - Opera Version 9.00
    - Internet Explorer 6

    I suggest that you enable the Blog administrators to view and edit the avatars in the user profiles, as all other parameters can be set there. Otherwise the avatars will not be administrable.

  13. suleiman
    Member
    Posted 15 years ago #

    overclockwork, we don't want blog owners to be able to edit other user's avatars.

    Also, in terms of the size and positioning of the avatars in the themes, it's a simple matter of setting the style of the gravatar display to whatever height, width, and position you think looks best.

  14. alexz
    Member
    Posted 15 years ago #

    But the admin should be able to delete an avatar if it contains something that not should be showed?

  15. drmike
    Member
    Posted 15 years ago #

    Um, just noticed the MyCSS page being shown to all users. Wouldn't that be an issue?

    I'm having billy's issue as well with files not being uploaded. Working on it though.

  16. suleiman
    Member
    Posted 15 years ago #

    folks, the files not uploading issue is because of the way the form in profile.php is set up.

    Change it to a "multipart" formtype and you should be good to go. (google it)

    With respect to the MyCSS page doc, it should only display to the site admin. Run through the mycss.php file and check to see you have this:

    function mycss_add_options() {
    get_currentuserinfo();
    if( is_site_admin() )
    add_submenu_page('themes.php', 'MyCSS Editor', 'MyCSS', 8, basename(__FILE__), 'mycss_options_subpanel');
    }

  17. nolageek
    Member
    Posted 15 years ago #

    If anyone is interested, here's a hack I use to show the avatar in BBPress:

    In post.php, after the

    <small> <?php post_author_title(); ?> </small>
    bit I use the following:

    
    <?php
    $userid = get_post_author_id();
    $wp_avatar = '/full/path/to/public_html/wp-content/avatars/' .$userid. '.jpg';
    $wp_avatarURL = '/wp-content/avatars/' .$userid. '.jpg';
    
    if (file_exists($wp_avatar)) {
    echo '<img class="avatar" src="'. $wp_avatarURL.'" />';
    }
    ?>

    Probably not the most elegant, but it works:

    http://blognola.org/forums

  18. drmike
    Member
    Posted 15 years ago #

    suleiman, thanks for the response.

    If you're taking suggestion for the next round of features, I'd like the option to make multiple sizes. Either that or allow you to call the display function (I don't have a copy of the plugin handy so I can't give you a specific name) with a specific size you want outputted.

  19. suleiman
    Member
    Posted 15 years ago #

    drmike, are you talking about the sidebar widget or the avatar display on web pages?

    As you know the avatar display css is located in each themes specific stylesheet, so opening that up to user edits isn't allowed on my system as yet.

    If you're talking about the sidebar widget then I'm working my way into customizing it for size, border, border color, and alignment inshAllah (God-willing) as time permits.

    :)

  20. kimyong
    Member
    Posted 15 years ago #

    thanks, I will try it first if stable or not.

  21. drmike
    Member
    Posted 15 years ago #

    In general actually. For example, wp.com uses a 24x24 size for the comments. In the forums, they use a 80x80 for teh original poster of a thread with smaller sizes for the followups.

    Thnaks by the way,
    -drmike

  22. suleiman
    Member
    Posted 15 years ago #

    so I've been setting the size of the comments on a per-theme basis, and as far as the forums go, i'm using a slightly modified version of bbpress' original template and i think I"ve got avatars size limited by a width setting in the css file.

    bottom line: I'm setting it via css, not really trying to use multiple different image sizes, though I'll consider it for future releases.

  23. drmike
    Member
    Posted 15 years ago #

    The 80 pixel size was too big for our bbpress install and running over the next post. I made the following change to make them smaller:

    echo '<img class="avatar" src="'. $wp_avatarURL.'" height="48" width="48" />';
  24. drmike
    Member
    Posted 15 years ago #

    OK, I've got this install and, as noted up above, it works fine on our bbpress install. The avatars aren't showing up on the blogs though. Have to work on that.

    The Can't upload issue: Open up wp-admin/profiles.php, find the form line about 15 lines down and change it to this:

    <form name="profile" id="your-profile" action="profile-update.php" method="post" enctype="multipart/form-data">

    MyCSS does only show up for the site admin. The accoutn I was using to test was also a site admin that I had bumped up to test something else. Sorry about that.

    I'm not seeing teh add_action though that adds the avatar code into the comment portion of the post. Am I missing it or am i just brain dead?

  25. kdesilva
    Member
    Posted 15 years ago #

    This sounds like a great plugin - are there any chances that it will be working in IE7 on the horizon?

  26. suleiman
    Member
    Posted 15 years ago #

    The fix for IE uploads, as Dr. Mike posted:

    Open up wp-admin/profiles.php, find the form line about 15 lines down and change it to this:

    <form name="profile" id="your-profile" action="profile-update.php" method="post" enctype="multipart/form-data">

    IE 7 uploads should work.

  27. demonicume
    Member
    Posted 15 years ago #

    yeah, cant wait to try them out! good work, brother.

  28. kdesilva
    Member
    Posted 15 years ago #

    I like it!

    so you say you can't use gif's or png's?

  29. demonicume
    Member
    Posted 15 years ago #

    2 things... i'm getting

    "Profile pic size is above the maximum size KB." i'm using jpgs and i've resized and resized.

    and i cant seem to find my.css. i get the menu under PRESENTATION. but when then i get the error message "Oops, my.css cannot be found! Please check the plugin directory and try again, terima kasih."

    its there. i've already tried moving it to plugins. no good there either.

    ideas?

  30. usermrpapa
    Member
    Posted 15 years ago #

    yeah, I cant get it to upload either... with FF... it displays them just fine as I hand uploaded a default one... just cant upload anything...

About this Topic

  • Started 15 years ago by suleiman
  • Latest reply from scorpianrules007