Quote:
Originally Posted by Lynne
No, I can't see that better. Images are resized here. But, try what you wrote on your test site and see if it is what you want.
|
Alright, it worked.
Original Code:
Code:
<dt>{vb:rawphrase total_messages}</dt>
<dd> {vb:raw prepared.vm_total}</dd>
</dl>
<dl class="blockrow stats">
<dt>{vb:rawphrase most_recent_message}</dt>
<dd>{vb:raw prepared.lastvm_date}<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw prepared.lastvm_time}</span></vb:if></dd>
</dl>
<ul class="group">
<li><a href="javascript://" onclick="return tabViewPicker(document.getElementById('visitor_messaging-tab'));">{vb:rawphrase visitor_messages_for_x, {vb:raw prepared.username}}</a></li>
Modified Code:
Code:
<vb:if condition="$prepared['vm_total']"><dt>{vb:rawphrase total_messages}</dt></vb:if>
<vb:if condition="$prepared['vm_total']"><dd> {vb:raw prepared.vm_total}</dd></vb:if>
</dl>
<dl class="blockrow stats">
<vb:if condition="$prepared['vm_total']"><dt>{vb:rawphrase most_recent_message}</dt></vb:if>
<vb:if condition="$prepared['vm_total']"><dd>{vb:raw prepared.lastvm_date}<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw prepared.lastvm_time}</span></vb:if></dd></vb:if>
</dl>
<ul class="group">
<vb:if condition="$prepared['vm_total']"><li><a href="javascript://" onclick="return tabViewPicker(document.getElementById('visitor_messaging-tab'));">{vb:rawphrase visitor_messages_for_x, {vb:raw prepared.username}}</a></li></vb:if>
Also, while it does work, I'm not sure if the "if condition" text (vm_total) is the right text for them all.