Hi,
I serve images through a static server. That means most avatars have absolute URLs. In modules/news.php and modules/welcomeblock.php, you assume the URL is relative, and prepend $vbulletin->options['bburl']. It would be nice to have a check, and only prepend that value if the URL is relative. Here are my changes on the latest vba 3.2.0 downloaded < 1 hr
NB -this only works for me for relative URL avatars because my vba sits in the same folder as vbulletin. Hence it would be best if it were to check.
modules/welcomeblock.php line 28:
PHP Code:
if ($avatarurl[0])
{
//$avatarurl = $vbulletin->options['bburl'] . '/' . $avatarurl[0];
$avatarurl = $avatarurl[0];
}
modules/news.php line 297:
PHP Code:
if ($mod_options['portal_news_showavatar'] AND $vbulletin->userinfo['showavatars'])
{
if ($news['avatarpath'])
{
//$news['avatarpath'] = $vbulletin->options['bburl'] . '/' . $news['avatarpath'];
$news['avatarpath'] = $news['avatarpath'];
}