Dave Strider
08-12-2023, 11:02 PM
I have the following code and it somewhat works:
if ($vbulletin->userinfo['userid']) {
require_once(DIR . '/includes/functions_user.php');
$userid = $pm['fromuserid'];
$pmavatar = fetch_avatar_url($userid);
if (!$pmavatar) {
$pmavatar = $stylevar['imgdir_misc'] . '/unknown.gif';
}
else {
$pmavatar = $vbulletin->options['bburl'] . '/' . $pmavatar[0];
}
}
else {
$pmavatar = $vbulletin->options['bburl'] . '/image.php?u='.$userid.'&type=thumb';
}
however the output is the following:
https://img001.prntscr.com/file/img001/UIpIEAh9RyaphHD5Wk30jg.png
The second avatar in the image should be in the first space while the third avatar should be in the second and third space as it's from the same user. I feel like I'm on the right track just don't know where to go from here, can anyone help?
if ($vbulletin->userinfo['userid']) {
require_once(DIR . '/includes/functions_user.php');
$userid = $pm['fromuserid'];
$pmavatar = fetch_avatar_url($userid);
if (!$pmavatar) {
$pmavatar = $stylevar['imgdir_misc'] . '/unknown.gif';
}
else {
$pmavatar = $vbulletin->options['bburl'] . '/' . $pmavatar[0];
}
}
else {
$pmavatar = $vbulletin->options['bburl'] . '/image.php?u='.$userid.'&type=thumb';
}
however the output is the following:
https://img001.prntscr.com/file/img001/UIpIEAh9RyaphHD5Wk30jg.png
The second avatar in the image should be in the first space while the third avatar should be in the second and third space as it's from the same user. I feel like I'm on the right track just don't know where to go from here, can anyone help?