• There appears to be path issues when WP is installed on a sub-directory.

    Why do you use ABSPATH rather then $_SERVER[‘DOCUMENT_ROOT’]?

    My edit

    function profilepic_internal_picpath($authorID, $display = true, $type = ‘url’) {
    switch($type) {
    case ‘url’ :
    $ref = profilepic_internal_cleanpath(profilepic_internal_pickimage($authorID));
    if ($display) { echo $ref; } else { return $ref; }
    break;
    case ‘absolute’:
    $ref = profilepic_internal_cleanpath($_SERVER[‘DOCUMENT_ROOT’] . profilepic_internal_pickimage($authorID));
    if ($display) { echo $ref; } else { return $ref; }
    break;
    }
    }

  • The topic ‘Profile Pic Installed on a subdirectory’ is closed to new replies.