Has anyone succesfully added the facility for a user to add a photo to their user's profile ? If so, how did you handle this ?
Announcement
Announcement Module
Collapse
No announcement yet.
Photo in profile ?
Page Title Module
Move
Remove
Collapse
-
Tags: None
-
http://www.edevboards.com had it in 1.1x... and soon to put it into 2.0
I had it on my board when it was 1.15 as well...
But I'm not at liberty to tell... sorry
-
It is in v2 as well
http://www.edevboards.com/member.php...tinfo&userid=2
Here is how I did it:
Add a custom profile field for URL to picture.
Just above this line in member.php:
Add this:PHP Code:eval("dooutput(\"".gettemplate("getinfo")."\");");
Replacing field8 with whatever ID your field is. Then put $getinfo[picture] in the template somewhere.PHP Code:if ($userinfo[field8] == "") {
$getinfo[picture] = "No Picture Available";
} else {
$getinfo[picture] = "<img src=\"$userinfo[field8]\" height=150>";
}
Hope that helps
Comment
-
That guy on the pic looks familiar......It's me!
Anyway I'd suggest you also add <a href....></a> to it so users can click on it so they can view the full non resized version of it...
Comment
-
Oh, excellent! I tried adding a new profile field, but it corrupted my database and gave me the following error:
Now what ?Database error in vBulletin Control Panel: Invalid SQL: INSERT INTO profilefield (profilefieldid,tit
le,description,required,hidden,maxlength,size) VALUES (NULL,'Photograph URL','Why not post a
photograph of yourself in your profile page ? (optional)',0,0,'100','100','')
mysql error: Column count doesn't match value count at row 1
mysql error number: 1136
Date: Sunday 04th of March 2001 09:56:48 PM
Script: /vb/admin/profilefield.php
Referer: http://www.ten-tenths.com/vb/admin/p...?s=&action=add
Comment
-
i am quite keen but to include this in the database as well like avatars. I guess this is going to be a bit harder to do ... ):
Comment
-
That is something that I really hope Jelsoft will include in 2.01 - at least have it so there's the option there...
Comment
-
I might make a hack after v2 final is out for inclusion in the db.
Craig --> that is a bug - freddie posted a fix for it somewhere in the bugs forum.
Comment
-
No v2 has an Avatars feature - this is for a much larger picture. See the link I provided to my boards above for an example
Comment
-
Thanks James - i'll take a look for that fix.
I like the sound of that hack...
You mention Avatars though... possibilities there - our site does not and will not use them - i'll have to look into them a bit more
Comment
-
We use the avatar feature and the only "avatars" allowed are photo profile pictures 65x65 pixels wide. If someone uses something that isn't a picture of themself, we delete it. It works really great with our getinfo template (I customized it quite a bit)Originally posted by Craig Antill
You mention Avatars though... possibilities there - our site does not and will not use them - i'll have to look into them a bit more
Comment
-
Craig
You could just turn on custom avatars and remove the image info from postbit. The avatars would then only show up on the user's profile and you would have what you were wanting.
Comment

Comment