PDA

View Full Version : user photo in bio?


12-08-2000, 04:03 PM
yeah i know i'm asking alot, hope ya don't mind :)

Is there a hack (i searched for it, but i couldn't find it)
that enables that users can give an url for a photo in
their profile? and maeby even the photo's integrated in
the memberlist?

I'm asking this cuz at my forum, there are alot of "post
your photo here" threads... and those threads always
get messy..

Thank You,
X-Phoenix.

12-08-2000, 05:54 PM
Originally posted by X-PhoeniX
at my forum, there are alot of "post
your photo here" threads... and those threads always
get messy..

Why? a lot of fuglies?

:D

-jim

12-08-2000, 07:25 PM
Wahaha no it's just that some users don't post a pic, and are always commenting about the pic's of the users that DO post them.. so there's about 1 pic every 2 pages or so... that's why :)

12-08-2000, 09:47 PM
That would be a cool hack.

12-10-2000, 03:44 PM
Originally posted by X-PhoeniX
yeah i know i'm asking alot, hope ya don't mind :)

Is there a hack (i searched for it, but i couldn't find it)
that enables that users can give an url for a photo in
their profile? and maeby even the photo's integrated in
the memberlist?

I'm asking this cuz at my forum, there are alot of "post
your photo here" threads... and those threads always
get messy..

Thank You,
X-Phoenix.

Hmmm, I guess that playing with the "Custom Image under User Name (http://vbulletin.com/forum/showthread.php?threadid=5301)" hack would be the fastest way to make it... :D

I was thinking... hey JimF why don't you expand your above hack making so that the choosen image would be showed at the same time on the user post and his profile? I've seen this on the Snitz board.


[Edited by Cr4z33 on 12-10-2000 at 12:46 PM]

12-10-2000, 07:29 PM
Yeah as it does on my forum ;)

http://www.hedgehogwheels.com/forums/member.php?action=getinfo&userid=1

Reading the url from the user table and showing in the getinfo template is a trivial task.

12-10-2000, 08:15 PM
Originally posted by freddie
Yeah as it does on my forum ;)

http://www.hedgehogwheels.com/forums/member.php?action=getinfo&userid=1

Reading the url from the user table and showing in the getinfo template is a trivial task.

Er... I didn't see a photo there. Where is it? :)

12-10-2000, 10:09 PM
Uh you saw my avatar, if I chose to have a picture of myself for my avatar than you would have seen that instead.

It is the same thing you asked Jim to do, edit his hack to show the avatar in the profile. I just brought mine up to show what it could look like.

12-11-2000, 07:20 AM
Originally posted by freddie
Uh you saw my avatar, if I chose to have a picture of myself for my avatar than you would have seen that instead.

Oh OK.

It is the same thing you asked Jim to do, edit his hack to show the avatar in the profile. I just brought mine up to show what it could look like.

Yep, I thought the same thing... Will not be so difficoult I guess... :D

12-11-2000, 01:06 PM
I wanted to add the

$custom_img


on the "modifyprofile" and on the "getinfo" templates but it doesn't display. Maybe the problem seems to be related on the fact that the image URL does never appear on the "Custom image" line on the "Modify Profile" page. And this happens even if the img is displayed on the user post and even if the img url is existing on the db (I checked it with phpMyAdmin). Strange huh? :confused:
It's the same like the fact that I've always to insert my user and pass if I need to edit my profile, while the board always welcomes me with the right nickname...

Anyway the code I put on the two templates was:

On modifyprofile before the line:
<FONT face="verdana, arial, helvetica" size="2" >Custom Image URL:</font></B></td>

I put this:
<td><B><center>$custom_img</center><br>


On getinfo I put this:
<normalfont color="{tableheadtextcolor}"><B>Profile For $username</B></normalfont><p>

$custom_img

instead of:
<normalfont color="{tableheadtextcolor}"><B>Profile For $username</B></normalfont><br>

So, what's wrong?

12-11-2000, 02:58 PM
$custom_img only exists if you create in the code!

You will have to edit member.php, the section that applies to the "getinfo" template.

(1) You will have the add the field name of the image url to the database query. (I don't know what you guys have called it)
(2) You have to assign the url to the $custom_img variable BEFORE the getinfo template is called then it will be available to you.

JimF will know how to do this so prod him to give you exact code to use if you do not know how.

12-11-2000, 03:09 PM
Originally posted by freddie
$custom_img only exists if you create in the code!

You will have to edit member.php, the section that applies to the "getinfo" template.

(1) You will have the add the field name of the image url to the database query. (I don't know what you guys have called it)
(2) You have to assign the url to the $custom_img variable BEFORE the getinfo template is called then it will be available to you.

JimF will know how to do this so prod him to give you exact code to use if you do not know how.

Isn't it just enough to apply JimF's "Custom Image under User Name" hack to make $custom_img work on the two templates? If not, can you/someone experienced tell me please what have I EXACTLY to do? :)


[Edited by Cr4z33 on 12-11-2000 at 12:12 PM]

12-11-2000, 08:04 PM
No.

12-11-2000, 08:14 PM
I solved everything. I don't need help no more...