http://www.h-realms.com/hacks/6.x/avatar6.txt public_topic_page.pl
That is the original hack (MM posted it a while ago)
where he said:
my $this_img = $user_profile[20];
chomp($this_img);
I did this:
my $this_img = $user_profile[18];
chomp($this_img);
The 18 is the second to last custom slot. I then went into the control panel, and made it so the second to last slot said "User images." This did not require any hacking...it is a built in option of this version of UBB.
If you want to change the image size,
find where MM says this:
if ($this_img ne "") {
$this_img = qq(

);
} else {
$this_img = "";
}
and change the numbers after width and height.