Ну вот как-то так, если ничего не напутал с условиями....
Код
<div style="color:#ffffff" align="center"><div style="margin-top:2px;border:1px solid #252525;-moz-border-radius:4px;padding:5px;"><b style="font-family: Comic Sans MS;">Привет, $USERNAME$!</b></div><br>
<?if($USER_AVATAR_URL$)?><img style="max-height:150px;max-width:150px;" class="userAvatar" title="$USERNAME$" src="$USER_AVATAR_URL$" border="0"><?else?><?if($USER_LOGGED_IN$)?><?else?><img style="max-height:150px;max-width:150px;" class="userAvatar" title="$USERNAME$" src="http://muzan.3dn.ru/nature_020.jpg" border="0"><?endif?><?endif?></div>
<div style="color:#ffffff" align="center"><div style="margin-top:2px; border:1px solid #252525;-moz-border-radius:4px;padding:5px;"><i><span style="font-size: 10pt;font-family:Bookman Old Style"><b>Дорогие Друзья, сердечно поздравляю Вас
с приходом Новой весны!</b></span></i></div>
<?if($USER_LOGGED_IN$)?>
<div align="center"><br>
<div style="margin-top: 2px; border: 1px solid #252525; -moz-border-radius: 4px 4px 4px 4px; padding: 5px;">
<i>Группа:</i> <br>$USER_GROUP$<br><hr>
<i>Вы с нами:</i> <strong>$USER_REG_DAYS$</strong>-й день<hr>
<a href="javascript:openOnClick('options')"> Изменить профиль</a><hr>
<a href="$PERSONAL_PAGE_LINK$" target="_blank"> <?if($PERSONAL_PAGE_LINK$)?>Мой профиль<?endif?></a><hr>
<a href="/index/15-1" target="_blank"> <?if($PERSONAL_PAGE_LINK$)?>Пользователи сайта<?endif?></a><hr>
<img alt="" src="/678236462.png" height="16" width="16"><a id="upml2" href="javascript:openOnClick('mail')"><span style="color: rgb(255, 215, 0);"><b>Сообщения </b></span>(<span style="font-weight: bold;">$UNREAD_PM$</span>)</a>
<hr></div></div>
<?if($IS_NEW_PM$)?><script type="text/javascript">function flashit(id,cl){var c=document.getElementById(id);if (c.style.color=='red'){c.style.color=cl;}else {c.style.color='red';}}setInterval("flashit('upml2','')",500)</script><?endif?>
<script type="text/javascript">
function openOnClick(client_type){
if(client_type=="mail")clientWindow = window.open("$PM_URL$","pmw","scrollbars=1,top=0,left=0,resizable=1,width=850,height=350") || alert("Отключите блокировку всплывающих окон!");
if(client_type=="send")clientWindow = window.open("/index/14-999-0-1","pms","scrollbars=1,top=0,left=0,resizable=1,width=850,height=350") || alert("Отключите блокировку всплывающих окон!");
if(client_type=="options")clientWindow = window.open("/index/11","options","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");
if(client_type=="users")clientWindow = window.open("$USERS_LIST_URL$","users","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");
if(client_type=="rules")clientWindow = window.open("/rules.html","rules","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");
}
</script>
<?else?>
<br>$LOGIN_FORM$
<?endif?>
Берите из прикрепления - надежнее
Выход убрал