Posted on Thursday 7th June 2007 at 02:50 PM | |
MCP Junior Member |
Could someone help me setup an avatar capability on my site. For example. Thanks. |
Posted on Thursday 7th June 2007 at 08:55 PM | |
SkillMaster Senior Member |
Call it avatar.php PHP Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
<?php
Just add an avatar row in your PHPmyAdmin, avatar,VARCAHR,225 thats it. Must also create a folder called images where avatar.php is located. can CHMOD it to 777 Works its tested |
Posted on Friday 8th June 2007 at 02:32 AM | |
MCP Junior Member |
It works. Thanks a bunch. I taught myself to make the avatar appear. Easy. |
Posted on Friday 8th June 2007 at 05:06 AM | |
SkillMaster Senior Member |
<img src='$logged[avatar]'> ? |
Posted on Friday 8th June 2007 at 06:55 AM | |
MCP Junior Member |
Yup. I also have it linking to the profile. |
Posted on Friday 8th June 2007 at 06:57 AM | |
MCP Junior Member |
Actually it is PHP Code
1
<a href='members.php?user=$user[username]'><img src='$user[avatar]'></a>
|
Posted on Friday 8th June 2007 at 10:31 PM | |
SkillMaster Senior Member |
mhm great stuff basic html |
Posted on Friday 22nd June 2007 at 11:15 PM | |
dtnet Active Member |
What is the code for that if the users don't have uploaded their own avatar, there is a temporary avatar-picture in the profiles? |
Posted on Friday 22nd June 2007 at 11:30 PM | |
dtnet Active Member |
http://henrik.hotserv.dk/members.php?user=Kristina http://henrik.hotserv.dk/members.php?user=Mads As you can see it is two different users, with the same profile. That appeared when I used this code you gave me. http://norskwebforum.no/pastebin/8955 |
Posted on Saturday 14th July 2007 at 07:53 PM | |
dtnet Active Member |
? |