Code:
if (!empty($additional_image_fields)) {
$additional_field_array = array();
foreach ($additional_image_fields as $key => $val) {
$additional_field_array[$key] = (!empty($image_row[$key])) ? format_text($image_row[$key], 1) : REPLACE_EMPTY;
$additional_field_array['lang_'.$key] = $val[0];
}
if (!empty($additional_field_array)) {
$site_template->register_vars($additional_field_array);
}
}
this was already in details.php from an earlier MOD (somewhere....
) so I didn't add it again.
Now I just need to tell details to look in the data/userpic folder - currently, I'm getting broken images that point to the root directory. Even hard-coding in the template "data/userpic/{userpic_img}" doesn't do it - it's not finding which userpic to insert....
it seems like
//User Pic
"userpic_img" => ($config['userpic'] && $user_row['userpic']) ? ROOT_PATH."data/userpic/".$user_row['userpic'] : "",
//End User Pic
should be somewhere in details.php or functions.php (
: )
BTW, ascanio, I'm using{if userpic_img} <img src="{userpic_img}" align="absmiddle">
{endif userpic_img}
to add the image - - that way if a user doesn't have an image yet, it won't show a broken image - - or a guest won't show a broken image (even though it DOES currently show a broken image for everyone !)
when I add
//User Pic
"userpic_img" => ($config['userpic'] && $user_row['userpic']) ? ROOT_PATH."data/userpic/".$user_row['userpic'] : "",
//End User Pic
somewhere in either details.php or functions.php , the broken images disappear - but so does the userpic that's SUPPOSED to be there (mine - I'm testing locally, so I can't send a link
)
V@no, does this make sense?? Now I'm confused..
SUMMARY: Details doesn't know where to find the userpic - how do I tell it where to look?