Post by Retread on Dec 19, 2020 9:50:15 GMT -8
Hi whatsitsgalore1
After a more thorough examination, I discovered the first mini-profile layout template you posted isn't quite right. The section for the Location comes before the {/foreach}. That means it won't be displayed unless the user has at least one Custom Field entered in their mini-profile and will be duplicated if they have more than one Custom Field. That's surely not what you want.
I'd suggest using this Mini-Profile layout template for all of your themes:
After a more thorough examination, I discovered the first mini-profile layout template you posted isn't quite right. The section for the Location comes before the {/foreach}. That means it won't be displayed unless the user has at least one Custom Field entered in their mini-profile and will be duplicated if they have more than one Custom Field. That's surely not what you want.
I'd suggest using this Mini-Profile layout template for all of your themes:
<div class="$[miniprofile_class]">
$[user]<br />
{if $[user.is_guest]}Guest<br />{/if}
{if $[user.is_deleted]}<em>Deleted Member</em><br />{/if}
{if $[user.group]}
$[user.group.name]<br />$[user.group.stars]<br />
{elseif $[user.rank]}
$[user.rank.name]<br />
{if $[user.rank.stars]}
$[user.rank.stars]<br />
{/if}
{/if}
{if $[user.custom_title]}$[user.custom_title]<br />{/if}
$[user.warning.bar]<br />
{if $[user.avatar]}
<div class="avatar">$[user.avatar]</div><br />
{/if}
{if $[user.personal_text.message]}
$[user.personal_text]<br />
{/if}
{if $[user.is_member]}
<div class="info">Posts: $[user.posts]{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if}
{foreach $[user.mini_custom_field]}
<br /><span class="$[user.mini_custom_field.content_class]">$[user.mini_custom_field.name]: $[user.mini_custom_field.value]</span>
{/foreach}
{if $[current_user.is_member] && $[user.location]}<br />Location: $[user.location] {/if}
{if $[user.is_online]}<br /><span class="italic">Member is Online</span>{/if}
</div><br />
{/if}
{if $[user.badges_miniprofile]}
<div class="$[user.badges_miniprofile_container_class]">
{foreach $[user.badges_miniprofile]}
$[user.badges_miniprofile.icon]
{/foreach}
</div>
{/if}
</div>