WordPress.org

Ready to get started?Download WordPress

Forums

Author Avatars List
Images not showing when using profile pics and a subdirectory (2 posts)

  1. clairetalk
    Member
    Posted 3 years ago #

    I've installed the plugin before and used with profile pic so I know they both work together, but this time I've tried it in a subdirectory call "blog" and it doesn't show the image on the page with the avatar code nor the sidebar widget.

    I looked on the source page and found that it isn't putting the subdirectory blog in the path.

    The path to the image in the code is:

    http://www.nastyfetishphonesex.com/wp-content/profile-pics/2.jpg

    when it should be:

    http://www.nastyfetishphonesex.com/blog/wp-content/profile-pics/2.jpg

    The avatar shows up fine on the bio pages, etc.

    Is there code on a page that I can alter to put the blog directory in?

    Thank you

  2. marcusstenbeck
    Member
    Posted 3 years ago #

    Hey!

    I had the same problem and fixed it by altering line 729 in the file profile-pic.php in the plugin folder (it could be http://yoursite.com/wp-content/plugins/profile-pic/).

    Change line 729 in profile-pic.php from
    return $path;
    to
    return site_url() . $path;
    and all your problems will be solved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic