PDA

View Full Version : profilepic variable


cashaddy
12-23-2008, 06:05 AM
hey guys,

i am still modifing my wordpress blog, the login box on there is working fine. thanks again to deceptor that helped me make it run :).

but i have got a new problem. i want to display the profilepic of the user, when logged in. the problem: if the user is logged in but did not upload a profilepicture, the code displays nothing. well, that's normal but i want to get a default profilepic in there under this conditions.

like:

if (profilepic-uploaded == 1 ) {

echo "<img src="profpic">";

}

else {

echo "<img src="DEFAULT_profpic">";

}

that means: i am searching for something like a variable that contains information if the user did upload a customprofilepic.

got any hints?? i couldn't find something like this :(.

i think i have to write a little db query to read out the customprofilepic table....

and, if anyone has got already a codesnippet for this query ... just post it :D :D