Post by shammy on Apr 18, 2017 12:59:32 GMT -8
Hopefully this will be a simple one for you, but how do I go about changing the code in the Layout Templates for the mini profile.
I'm trying to get only certain parts of the mini profile text to appear in BOLD text. At the moment it looks like this.
Posts: 655 I'm trying to get only certain parts of the mini profile text to appear in BOLD text. At the moment it looks like this.
Male
Location: UK
Member is Online
Likes: 730
And I would like it to appear like below.
Posts: 655
Male
Location: UK
Member is Online
Likes: 730
And I would like it to appear like below.
Posts: 655
Male
Location: UK
Member is Online
Likes: 730
Here is the code I have at present in the Mini Profile Template.
<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]}<br /><span class="float-centre">$[user.gender.text]</span>{/if}
<br />{if $[user.location]}Location: $[user.location]{/if}<br />
{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 $[user.is_online]}<span class="italic">Member is Online</span>{/if}
</div><br />
Likes: $[user.likes]
{/if}
{if $[user.badges_miniprofile]}
<div class="$[user.badges_miniprofile_container_class]">
{foreach $[user.badges_miniprofile]}
$[user.badges_miniprofile.icon]
{/foreach}
</div>
{/if}
<br />
<span class="post_act" style="display:none">$[user.registered_on]</span>
</div>
Thanks if anyone can help me out.