Add Photo To Profile..
I dident add the approval system because i know i will never use it, but its easy to encode if someone needs it..
This is the first time ive modded a hack before, so dont scream at me if im doin it wrong
member.php
Just Before
PHP Code:
eval("dooutput(\"".gettemplate("getinfo")."\");");
}
// ############################### start aim message ###############################
Add
PHP Code:
$checkphoto = $DB_site->query_first("SELECT comments,visible FROM memberphoto WHERE userid='$userinfo[userid]'");
if($checkphoto){
$profilephoto = "<img src=\"memberpics/photo$userinfo[userid]_$userinfo[photonum].$userinfo[phototype]\">";
} else {
$profilephoto = "$userinfo[username] hasen't uploaded a photo yet.";
}
if($checkphoto['comments'] != ""){
$photomessage = $checkphoto['comments'];
}
Then in your getinfo Template put
Code:
$profilephoto<br> $photomessage
Where you want the photo to appear..