• I had to fiddle around with this quite a bit in order to get it to work properly. My solution was to give up on the recommended upload directory. There’s another option besides entering the directory name and location – there’s little radio button for legacy installations. Once I clicked that, it worked just fine.

    The publisher is not very helpful, kind of an arrogant guy who assumes that anyone that has a problem with his plugin must be a dumbass and not worthy of his time.

    Even so, it does work for me now.

    https://www.ads-software.com/extend/plugins/add-local-avatar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thanks for the post McPenny. I installed plugin … everything was working except the image itlsef was not uploading to my created directory. I was being stubborn and didnt want to select the legacy installation option … however after finding you post realised it was the only way i was going to get the uploads to work.

    Yeah. I had problems with the upload path. Even checking that box didn’t work for me.

    Digging into the plugin, I see he has a lot of, what appears to be unnecessary, monkeying with the paths instead of just using the WordPress constants, as is.

    Also, when generating the local avatar img src URL, it appears that he didn’t consider that some WP installs may be in a subdirectory and not in the root.

    line 48 defines the avatar_root function. I commented out the entire contents of the function and added
    return ABSPATH;

    after this line:

    $local = get_usermeta($id, 'avatar');

    I added this:

    if (!empty ($local)) {
        $local = get_bloginfo('url').$local;
    }

    After making those changes, everything worked great for me.

    Overall, it’s a great plugin. Too bad I was forced to have to make those changes. Hopefully, this will help others.

    McPenny, baldgoat thx a lot ??

    Not working for me.

    I have had problems with up loading avatars with this plugin for a long time. Exchanged messages with the author a few times but provided very little help.

    my WP root folder is /public_html

    and if I placed this before the avatar folder(/public_html/avatars) then the file uploaded fine (/avatars gives a “dir don’t exist error“), but the plugin couldn’t find it(even though it was in the correct folder.

    didn’t have as much knowledge as BALDGOAT but knew it had to do with how the root path was difined.

    so search the code avatars.php and at line 798

    $root = avatar_root();

    I commented it out

    //$root = avatar_root();

    and add this in a new line below

    $root = ABSPATH;

    all seem to be well now

    PS: make sure you make the /avatars folder writable (permission 777)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Add Local Avatar] Finally got it to work’ is closed to new replies.