View Single Post
Old 08-30-2004, 04:50 AM   #14 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
Quote:
Originally posted by xtrax_22
Also the section you say is either worthless or a bad past job is a known function required for this to work as it needs it becuase not everyone will upload a JPG so it needs to reconize there format and the only other one we allow is the GIF format in the upload section
try replacing the if(file_exists, and the line below it $whoseonline.= with this:
PHP Code:
$path "/home/virtual/site13/fst/var/www/html/modules/Photo/memberphotos/";
if(
file_exists($path.$userid.".jpg")){
  
$file=$path.$userid.".jpg";
}elseif(
$file_exists($path.$userid.".gif")){
  
$file=$path.$userid.".gif";
}

$who_online_now .= "<TD><center><A HREF=\"modules.php?name=Your_Account&op=userinfo&username=$session[uname]\">
          <img src=\"$file\" border=\"0\" alt=\"$session[uname]\">
          <br>$session[uname]</center></TD></a>\n"

leave the stuff i commented before commented out.
__________________
Mike
sde is offline   Reply With Quote