• Hello. I try to use Add Local Avatar plugin (I install ver 7.5). it was worked in a past but after I move my SQL database to another cause of user database problem, it can’t work.

    It can upload and file is in correct directory but can’t display. I must to rename local field as full URL of my website to correct display.

    OK, it works for just my solution but i prepare to allow user upload their avatar and don’t want to do it manually, can anyone solve this problem ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Around line 224 of avatars.php, find this chunk of code….

    if(!empty($local)) {
        $src = $local;
        $avatar_type = TYPE_LOCAL;
    }

    Change this line…

    $src = $local;

    to this….

    $src = get_bloginfo('url').$local;

    I think that’ll do the trick.

    nope it does not. the avatar is uploaded to the document root (not to www or html directory) and in that case the plugin can’t use the link “/avatar.jpg”

    Its working fine in WP 3 as well.. using ver 8 ..I am using that.. I also had same issue like you all and I tried all things what mentioned here.. i even try to manually add path but no result

    but i was reading note below avatar upload field and i see there is written example like “/avatar” and I tired first like “home/myhostfolder/public_html/myrest path” but no result than I tried same as in note like “/avatar” and it works perfect than i check on root/avatar. and working fine now I breakdown the issue again I tired with “/publim_html/my path” no result than I remove public_html from path and tired only “/mypath” and it works absolutely fine.

    I dont know either I was funny or its like that only but now its working with above path..

    @anduriel

    Did you set a user uploads path in the Avatar Options?

    keeps telling me upload directory doesn’t exist.

    I got it to upload. I had to actually but the internal file path of httpdocs/avatars but not the avatar will not show up for the user. And the text for the user is off after adding the avatar. Can anyone help with why it won’t show up?

    @kwelch

    edit line 798 of avatar.php

    $root = avatar_root();

    change to:

    $root = ABSPATH;

    Ps: make sure you set permission for your avatar folder to 777

    important note.
    In the options for Avatar Plugin

    Make sure you check both boxes
    “User Uploads” (this is on the left column of the options)
    “Use Legacy” (this is in the description on the right)

    Above that is a text field.
    Make sure you use a “/” at the beginning of the path.

    LOCAL HOST EXAMPLE:
    Where Viewing path is:
    https://localhost/nameOfBlog/

    Place this in the text box under Avatar Options (without the quote marks)
    "/nameOfBlog/uploads/avatars"

    Make sure you have created a folder in the blog folder’s root called “uploads” and inside of that folder a folder called “avatars”

    LIVE SITE EXAMPLE:
    Where Viewing path is:
    https://www.nameOfBlog.com

    Place this in the text box under Avatar Options (without the quote marks)
    "/uploads/avatars"

    Make sure you have created a folder in the root called “uploads” and inside of that folder a folder called “avatars”

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Add Local Avatar] Local avatar can upload to server but not display’ is closed to new replies.