actually there is more wrong and it isnt working, whats about that here:
FIND:
my $AvatarBits = "";
if($Avatar && $vars_display{UseAvatars} eq "yes") {
$AvatarBits = qq~
<script language="JavaScript1.1" type="text/javascript">
<!--
var avline = avatar_line("$Avatar");
if(avline) {
document.writeln(avline + "
")
} // end if
// -->
</script>
~;
} # end if
ADD AFTER:
my $AvatarBits = "";
if($Avatar && $vars_display{UseAvatars} eq "yes") {
$AvatarBits = qq~
<script language="JavaScript1.1" type="text/javascript">
<!--
var avline = avatar_line("$Avatar");
if(avline) {
document.writeln(avline + "
")
} // end if
// -->
</script>
~;
} # end if
seems like you mixed up the things a bit
