Alexander Firth
Active member
I'm asking this here because I think this may be covered under general XF coding knowledge. Using AD credits and the shop add-on gives a mini 'inventory' in the user-info in each post, like this:
However, there is only one line. Adding another will displace the end icon. I'd like to make it so users can have multiple lines of these.
I believe these two templates are relevant:
and
Any idea what I'd have to change?
https://youthdebates.org/forums/threads/two-quick-updates.18325/
However, there is only one line. Adding another will displace the end icon. I'd like to make it so users can have multiple lines of these.
I believe these two templates are relevant:
Code:
<xen:if is="is_array({$icons})">
<xen:if is="{$icons.icons}">
<xen:require css="adcredit_shop_inventory_mini.css" />
<p class="muted">{xen:phrase adcredit_inventory}:</p>
<div class="adcredit_inventoryIcons">
<xen:foreach loop="$icons.icons" value="$icon">
<div class="icon">
<a class="Tooltip" title="{$icon.title}" data-tipclass="iconTip"><img src="{$icon.image_url}" style="max-width: 16px;"></a>
</div>
</xen:foreach>
</div>
</xen:if>
</xen:if>
and
Code:
{xen:helper clearfix, '.adcredit_inventoryIcons'}
.adcredit_inventoryIcons div.icon {
float: left;
width: 15%;
text-align: center;
height: 17px;
line-height: 17px;
padding-top: 4px;
}
.adcredit_inventoryIcons div.icon a {
display: inline-block;
}
Any idea what I'd have to change?
https://youthdebates.org/forums/threads/two-quick-updates.18325/
Last edited: