Quote:
Originally Posted by TigerC10
Yeah, actually the avatar stuff in Farcaster's mod is more complicated than it needs to be.
Open your AdminCP, go to the Plugins Manager, and open up the GETDAY_EVENT: Add RSVPs and Form to Event plugin for Farcaster's Event Attendance v3
Find:
Code:
/*********************************************************************
* Get Users Avatar (If Used)
*********************************************************************/
if ($vbulletin->options['rah_rsvp_showavatar']) {
$avatarurl = "";
if (!empty($rsvp['avatarpath']))
{
$avatarurla = array($rsvp['avatarpath']);
}
else if ($rsvp['hascustom'])
{
$avatarurla = array('hascustom' => 1);
if ($vbulletin->options['usefileavatar'])
{
$avatarurla[] = $vbulletin->options['avatarurl'] . "/avatar{$rsvp['userid']}_{$rsvp['avatarrevision']}.gif";
}
else
{
$avatarurla[] = "image.php?u=".$rsvp['userid']."&dateline=".$rsvp['dateline'];
}
}
if ($avatarurla) {
$avatarurl = $vbulletin->options['bburl'] . '/' . $avatarurla[0];
$showavatar=true;
} else {
$showavatar=false;
}
unset($avatarurla);
} // END AVATAR
Replace with:
Code:
/*********************************************************************
* Get Users Avatar (If Used)
*********************************************************************/
if ($vbulletin->options['rah_rsvp_showavatar']) {
if (!empty($rsvp['avatarpath']) || $rsvp['hascustom'])
{
$avatarurla = fetch_avatar_url($rsvp['userid'], true); //Change the true to false to get regular sized avatars
$avatarurl = $avatarurla[0];
unset($avatarurla);
$showavatar=true;
}
} // END AVATAR
|
Is this still the best way to adjust the size of the avatar? I was hoping to just use the default xs size (or the prepared avatar, not 100% sure what it's called but the one that shows up under friends list in profile) but I don't know how I would do that.