Quote:
03-23-03 at 11:35 PM Steve123 said this in Post #79
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..
|
Thanks Steve123, I have been waiting for a long time for someone to come up with some code to do that,.
Is there a way of only having the thumbnail pic in the profile instead of the full pic?
Thanks again
Rebel38