Here's the code in rating.php:
$img = '';
if(function_exists('profile_picture_show')) {
$picture = ModelUR::newInstance()->getPictureByUserId($user_id);
$picture['pic_ext'] = isset($picture['pic_ext']) ? $picture['pic_ext'] : '.jpg';
if(file_exists(osc_base_path() . 'oc-content/uploads/user_resources' . $user_id . $picture['pic_ext'])) {
$img = osc_base_url() . 'oc-content/uploads/user_resources' . $user_id . $picture['pic_ext'];
}
}
$def_img = mdh_avatar_normal_url(osc_user_id());
?>
The problem is that anything I try in rating.php, like modifying the paths to 'oc-content/uploads/user_resources/0', it doesn't work...
The img related code in rating.php and in new.php is identical, that's why I'm thinking it's something else in the code that doesn't click.
The question is, how can I make the script go inside the 0 folder 'oc-content/uploads/user_resources/0' ?