View Full Version : fetch_ function for Profile Pictures?
DeMiNe0
08-25-2005, 04:12 PM
Hello, I am working on making a hack that displays profiles on another page. Currently though i am having problems finding out how i can show the profile picture. I have one work around but it only works if the images are stored in the database. My images are stored in the file system. I noticed that the avatars have a fetch_avatar_url() function. Is there also one of these functions for profile pictures?
Andreas
08-25-2005, 04:14 PM
"Stolen" from member.php
$userinfo = verify_id('user', $vbulletin->GPC['userid'], 1, 1, 15);
if ($vbulletin->options['usefileavatar'])
{
$userinfo['profilepicurl'] = $vbulletin->options['profilepicurl'] . '/profilepic' . $userinfo['userid'] . '_' . $userinfo['profilepicrevision'] . '.gif';
}
else
{
$userinfo['profilepicurl'] = 'image.php?' . $vbulletin->session->vars['sessionurl'] . 'u=' . $userinfo['userid'] . "&dateline=$userinfo[profilepicdateline]&type=profile";
}
if ($userinfo['ppwidth'] AND $userinfo['ppheight'])
{
$userinfo['profilepicsize'] = " width=\"$userinfo[ppwidth]\" height=\"$userinfo[ppheight]\" ";
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.