The MU forums have moved to WordPress.org

User Level, Multi User, Posting and Avatar (15 posts)

  1. Nekusagi
    Member
    Posted 17 years ago #

    I was reading and we have 10 user levels, but how it work in MU version?

    Do exist a User-Level Image plugin?
    Anyone made a MU avatar plugin?

  2. donncha
    Key Master
    Posted 17 years ago #

    You should take a look at the WordPress codex at http://codex.wordpress.org/ where the user levels are explained. There isn't an mu-specific avatar plugin yet.

  3. suleiman
    Member
    Posted 16 years ago #

  4. drmike
    Member
    Posted 16 years ago #

    The annoying part above the avatars is I had folks bugging for it for awhile. But does anyone actually use it on my installs? Nooooooo............

    *snort* Last time I listen to my users. ;)

  5. demonicume
    Member
    Posted 16 years ago #

    we MUST have some of the same users. one guy actually sent me an email sayin that someone had hacked his blog and stuck little blue Devils all over his comment section. LOL. it was my avatar.

    this avatar pack rocks pretty hard.

  6. hempsworth
    Member
    Posted 16 years ago #

    suleiman, is there any fix for the IE7 bug yet?
    No way I could add that "enctype=multipart-form/data" part myself?

  7. suleiman
    Member
    Posted 16 years ago #

    sure there is, follow this thread here hempsworth: http://mu.wordpress.org/forums/topic.php?id=3858&page=2&replies=68#post-26072

  8. schwim
    Member
    Posted 16 years ago #

    Hi there suleiman,

    I thought I followed the instructs to the letter, but on a new install, when I attempt to upload an 80x80 jpg image through Firefox, I get the page refresh, but with no new image, Just the default image. The avatar directory is also empty still, besides the default.

    My default.jpg image shows fine, so I think my directories are set properly. I've chmod'ed avatars to 777 as well.

    Could you tell me how I might begin troubleshooting?

    thanks,
    json

  9. schwim
    Member
    Posted 16 years ago #

    I will assume that there will be no further assistance given.

    thanks,
    json

  10. suleiman
    Member
    Posted 16 years ago #

    sorry json, actually the support for this plugin is splintered across two different forum threads and my blog where I am responding to comments and providing limited support.

    My suggestion would be to make a post there explaining your problem so that I could look into it.

    Offhand, if you happen to be running on subdirectories instead of subdomains, then Corey from MKCproductions posted a patch for his subdomain installs that seems to resolve the issue you're having.

    Check my blog for more information: http://suleiman.hadithuna.com/wpmu-avatar-pack-release/

  11. schwim
    Member
    Posted 16 years ago #

    Hi there and thanks very much for your reply.

    I am using subdirectories instead of subdomains.

    I went through all of the comments in your blog post, and found two posts from Corey, one pointing to a thread on this forum. However, when I click the link, I get sent to this URL:

    http://mu.wordpr…eplies=32#post-25669

    Unfortunately, the truncating of the link is messing it up, and I don't have a topic ID.

    Could you let me know where I might be able to find this fix? I would be very appreciative.

    thanks for your help,
    json

  12. suleiman
    Member
    Posted 16 years ago #

    Json, try the following fix:

    Replacing lines 74 through Beginning at line 74 -82 with:

    $url = "/wp-content/avatars"; //edit to your own url
    $domain = " blogs.mkcproductions.com"; //edit to your domain/subdomain name Example: http://www.domain.com or subdomain.domain.com
    $path = "http://$domain$url";
    $thumbnail = '/' . $blogownerid . '.jpg';
    $filename= "$path$thumbnail";

    //This checks to see if the url of the filename sxists
    function url_exists($strURL) {
    $resURL = curl_init();
    curl_setopt($resURL, CURLOPT_URL, $strURL);
    curl_setopt($resURL, CURLOPT_BINARYTRANSFER, 1);
    curl_setopt($resURL, CURLOPT_HEADERFUNCTION, 'curlHeaderCallback');
    curl_setopt($resURL, CURLOPT_FAILONERROR, 1);

    curl_exec ($resURL);

    $intReturnCode = curl_getinfo($resURL, CURLINFO_HTTP_CODE);
    curl_close ($resURL);

    if ($intReturnCode != 200 && $intReturnCode != 302 && $intReturnCode != 304) {
    return false;
    }Else{
    return true ;
    }
    }

    //This displays the image
    if(url_exists($filename)) {
    echo "<img class=\"imagethere\" src=\"$url$thumbnail\" alt=\"$thumbnail\" max-width=\"200\" />";
    }
    else {
    echo "<img class=\"noimage\" src=\"$url/default.jpg\" max-width=\"200\" />";
    echo "$filename";
    }

  13. schwim
    Member
    Posted 16 years ago #

    Hi there,

    I made the changes, and the problem persists. I click browse, choose the photo, and click "update profile". The page refreshes, stating that the profile has been updated, the default picture remains and there is no avatar uploaded to the directory.

    Here's my data (URL & Domain are correct):

    function filechecking() {
    global $wp_query, $blogownerid;
    global $wpdb, $blog_id;
    $blogownerid = $wpdb->get_var("SELECT post_author FROM wp_" . $blog_id . "_posts");
    $url = "/wp-content/avatars"; //edit to your own url
    $domain = "blogs.domain.com"; //edited until fixed
    $path = "http://$domain$url";
    $thumbnail = '/' . $blogownerid . '.jpg';
    $filename= "$path$thumbnail";

    //This checks to see if the url of the filename sxists
    function url_exists($strURL) {
    $resURL = curl_init();
    curl_setopt($resURL, CURLOPT_URL, $strURL);
    curl_setopt($resURL, CURLOPT_BINARYTRANSFER, 1);
    curl_setopt($resURL, CURLOPT_HEADERFUNCTION, 'curlHeaderCallback');
    curl_setopt($resURL, CURLOPT_FAILONERROR, 1);

    curl_exec ($resURL);

    $intReturnCode = curl_getinfo($resURL, CURLINFO_HTTP_CODE);
    curl_close ($resURL);

    if ($intReturnCode != 200 && $intReturnCode != 302 && $intReturnCode != 304) {
    return false;
    }Else{
    return true ;
    }
    }

    //This displays the image
    if(url_exists($filename)) {
    echo "<img class=\"imagethere\" src=\"$url$thumbnail\" alt=\"$thumbnail\" max-width=\"200\" />";
    }
    else {
    echo "<img class=\"noimage\" src=\"$url/default.jpg\" max-width=\"200\" />";
    echo "$filename";
    }

    ?>
    <?php

  14. suleiman
    Member
    Posted 16 years ago #

    hmmm...i'll have to take a closer look into why it's not working for you json. I'm not on subdirectories so it's harder to diagnose unfortunately.

  15. schwim
    Member
    Posted 16 years ago #

    Hi there,

    I was wondering if suleiman(or anyone else for that matter) got this working with subdirectories. If not, I'll go ahead and remove it.

    thanks,
    json

About this Topic