@AddonFlare if you could just give me the code so that more than one image comes up on the profile or so that I can have at least 20 show on the page if a user has that many I would really appreciate it. The template I have found to edit is
af_as_user_award_list
and this is the code (the only code) I'm positive I need to change below:
PHP:
<xf:foreach loop="$userAwards" value="$userAward">
<div class="block block--close">
<div class="block-container">
<h3 class="block-header"><a data-xf-click="overlay" href="{{ link('award-system/user/awards/category', null, {'user': $user.user_id, 'category': $userAward.Award.award_category_id}) }}">{{ $userAward.Award.Category ? $userAward.Award.Category.title : phrase('af_as_award_cat_title.uncategorized') }}</a></h3>
<div class="block-body block-row">
<div class="contentRow">
<div class="contentRow-figure contentRow-figure--fixedSmall">
{{ award_image($userAward.Award) }}
</div>
<div class="contentRow-main">
<h2 class="contentRow-header">{$userAward.Award.title}</h2>
<div class="contentRow-minor">{{ phrase('af_as_points:') }} {$userAward.Award.award_points}</div>
<xf:if is="$xf.visitor.is_admin OR $xf.visitor.user_id == $userAward.user_id">
<div class="contentRow-snippet">
{{ phrase('af_as_issue_reason:') }}
{$userAward.award_reason}
</div>
</xf:if>
<div class="contentRow-minor contentRow-minor--hideLinks">
<ul class="listInline listInline--bullet">
<xf:if is="$user.user_id != $userAward.User.user_id">
<li><xf:username user="{$userAward.User}" /></li>
</xf:if>
</ul>
</div>
</div>
<div class="contentRow-extra">
<xf:date time="{$userAward.date_received}" />
</div>
</div>
</div>
</div>
</div>
</xf:foreach>
The top part is what I would need to change. I can undo the block-headers and fix the per category myself. The only thing I need your help with is a few lines of code above that need changing (to show 20 or less awards for example). This code right here is what gets the image to appear ->
{{ award_image($userAward.Award) }}
. If I put more then one of those it shows the same award.
Thanks if at all possible to help. I have no other questions about the add-on. Everything else I know how to do. Thank you