I extend the hack to Member Lists, combined with a Random Avatar suggestion from Michael Morris
https://vborg.vbsupport.ru/showthread.php?t=95870
Now all members in memberlist shown with avatars, randomly choosen from a given folder /images/avatars/xx.gif.
Where xx is a number from 1 to 50, which means, you need to have gif pictures in that folder with a name using a number.
Again AdminCP->Plugins & Products->Add New Plugin
Write as a title Default Avatar memberlist
Choose for Hook Location Memberlist_bit
Give PHP code
Quote:
if (!$avatarurl)
{
$randomavatar = rand(1,50);
$avatarurl = "/images/avatars/$randomavatar.gif";
}
$show['avatar'] = true;
|