
Сообщение от
Slavok47
рамку нужно делать после условия, а не перед
Я использовал
эту подсказку:
в шаблоне postbit_legacy найти
Нажми для просмотра
PHP код:
<div class="smallfont">
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
И заменить вот этим кодом:
Нажми для просмотра
PHP код:
<div class="smallfont">
<if condition="$post['joindate']">
<div class="postuserinfo">$vbphrase[join_date]: $post[joindate]</div>
</if>
<if condition="$post['field2']">
<div class="postuserinfo">$vbphrase[location_perm]: $post[field2]</div>
</if>
<if condition="$post['age']">
<div class="postuserinfo">$vbphrase[age]: $post[age]</div>
</if>
<div class="postuserinfo">
$vbphrase[posts]: $post[posts]
</div>
<div class="postuserinfo">$template_hook[postbit_userinfo_right_after_posts]</div>
<if condition="$show['infraction']">
<div class="postuserinfo">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div>
</if>
<if condition="$show['reputation']">
<if condition="$show['reppower']">
<div class="postuserinfo">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span></div>
</if>
<div class="postuserinfo"><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div>
</if>
<div class="postuserinfo">$template_hook[postbit_userinfo_right]</div>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
CSS код вставим во второе поле в Дополнительные определения CSS в админке (Стили и шаблоны - Управление стилями - Выбрать стиль - из выпадающего меню Основная таблица CSS, прокручиваем в самый низ страничку)
Нажми для просмотра
PHP код:
.postuserinfo{
border: 1px solid #d1d1e1;
background: #f5f5ff;
font-size: 8pt;
color: #727290;
padding: 4px;
margin: 2px 0 0 0;
}
Т.е. последние 2 строки в коде не верно оформлены?
PHP код:
<div class="postuserinfo">$template_hook[postbit_userinfo_right]</div>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
Используя ваши подсказки заменил на:
PHP код:
$template_hook[postbit_userinfo_right]
<if condition="$post['icqicon'] OR $post['aimicon'] OR $post['msnicon'] OR $post['yahooicon'] OR $post['skypeicon']">
<div class="postuserinfo">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</if>
</div>
В таком виде все работает!