PDA

View Full Version : Help please custom user profile page 2


Jolten
07-14-2004, 12:23 AM
Hi,

I'm putting together a secondary user profile page. I've got the vBulletin backend using permissions and user accounts. One problem i can't seem to solve is pulling the user's avatar into the page. All the coding I try pulled the viewing user's avatar into the page. Nothing I try will pull the profile owner's avatar into the page. I've looked through member.php to see how it's done there, but even jsut copy and pasting that code results in teh viewer's avatar showing.

Can anyone show me how to display a user's avatar on a non-vb page and have the page display the profile owner's avatar not the users?

For example if the page address is http://www.yourhost.com/forum/profile2.php?uid=Bob

On that page I want Bob's avatar to show.

Thanks

Jolten
07-15-2004, 03:59 PM
Please, anyone.

Andreas
07-15-2004, 04:26 PM
Basically it's


$avatarurl = fetch_avatar_url($userid);


Where $userid is the user id of the user for which you want to retrieve the avatar.

Jolten
07-15-2004, 04:34 PM
Thanks kirby. I'm having a serious problem getting things to actually call the avatar of the user who owns the profile page. For some reason everything I try shows the avatar of the user who is surfing. Even the code youv'e posted above shows the avatar of the user who is viewing the page. Not the user who owns the page.

Jolten
07-19-2004, 10:08 AM
Please, anyone.

Jolten
07-25-2004, 06:08 AM
man.... who'd have thought it'd be so difficult.