Link to offsite avatars can be displayed on the Nuke side in a block or on the Your Account page.
This is a general idea of the code change. I am using the Site Visitors block with user avatar for Nuke6.5 as an example.
code change is this(or something similar):
OLD CODE
|
Code:
|
if ($userinfo[user_avatar]) {
$content .= "
<center><img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\"></center>
\n";
} |
NEW CODE
|
Code:
|
if ( ereg( "(http)", $userinfo[user_avatar]) )
{
$content .= "
<center><img src=\"$userinfo[user_avatar]\">
</center>\n";
}
else
if ($userinfo[user_avatar])
{
$content .= "
<center><img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\"></center>
\n";
} |
works like a charm...
Now offsite avatars will display on the Your Account page in Nuke and in a Block that contains the users avatar.
The code change would need to be applied to Your Account/index.php and or the block you use.
I have updated the Nuke 6.5 Site Visitors/Avatar block with this code.
P.S. This should work for both Nuke6.0 with Tom's port and Nuke6.5
mikem