Ready to get started?Download WordPress


Profile Pic
Profile Pic Installed on a subdirectory (1 post)

  1. Jorge A. Gonzalez
    Posted 3 years ago #

    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; }
    case 'absolute':
    $ref = profilepic_internal_cleanpath($_SERVER['DOCUMENT_ROOT'] . profilepic_internal_pickimage($authorID));
    if ($display) { echo $ref; } else { return $ref; }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Jorge A. Gonzalez
  • This topic is not resolved
  • WordPress version: 3.1