try this and see if it helps....
1. make this code a snippet, name it whatever you want, for this example i will use
[!WebUserPhoto!]
<?php
// WebUserPhoto snippet code
$output ="";
if(isset($_SESSION['webValidated'])){
$uid = $modx->getLoginUserID();
$wuser = $modx->getWebUserInfo($uid);
$wuser_photo = $wuser['photo'];
if$wuser_photo !=""){
$output .="<img src='$wuser_photo' border='0' alt=''>";
}
// else{
// $output .="add your default content here if needed and remove the forward slashes from the front of the lines";
// }
}
return $output;
?>
2. make a TV named whatever, i will use the same name as the snippet, then add the TV to your template in the spot to show the image.
[*WebUserPhoto*]
edit: make the default value of the TV be the snippet:
If the user is logged in as a web user then their photo will show in the TV spot, if not it will show nothing.