[XTR] Top Poster of The Month

[XTR] Top Poster of The Month 1.0.3

No permission to download
What would be the best approach to have a banner out for the top X posters of the month instead of what appears to be singular?
 
Fixed my error but there was an issue with sizing. In terms of widget, the username font was just much larger than all content. A revised template can be found below.

tpm_sidebar_results

Code:
<div class="js-TPMSidebar">
    <xf:if is="{$style} == 'simple'">
        <ul class="block-body">
            <xf:if is="$user_datas is not empty">
                <xf:foreach loop="$user_datas" value="$user">
                    <li class="block-row">
                        <xf:macro template="widget_tpm" name="tpm_user" arg-user="{$user}" />
                    </li>
                </xf:foreach>
                <xf:else />
                <li class="block-row block-row--minor">
                    {{ phrase('no_results_found') }}
                </li>
            </xf:if>
        </ul>


        <xf:elseif is="{$style} == 'compact'" />


        <ul class="block-body">
            <xf:foreach loop="$user_datas" value="$user">
                <li class="block-row">
                    <div class="contentRow">
                        <div class="contentRow-figure">
                            <xf:avatar user="$user.user" size="s" />
                        </div>
                        <div class="contentRow-main">
                            <div class="contentRow-extra contentRow-extra--large">
                                {$user.value|number}
                            </div>
                            <div class="contentRow-minor--smaller">
                                <xf:username user="$user.user" rich="true" />
                            </div>
                            <div class="contentRow-lesser">
                                <xf:usertitle user="$user.user" />
                            </div>
                        </div>
                    </div>
                </li>
            </xf:foreach>
        </ul>


        <xf:else />


        <div class="block-row block-row--minor">
            <ul class="listInline listInline--comma">
                <xf:if is="$user_datas is not empty">
                    <xf:foreach loop="$user_datas" value="$user">
                        <xf:trim>
                            <li><xf:username user="$user.user" rich="true" /> {$user.value|number}</li>
                        </xf:trim>
                    </xf:foreach>
                    <xf:else />
                    <li class="block-row block-row--minor">
                        {{ phrase('no_results_found') }}
                    </li>
                </xf:if>
            </ul>
        </div>
    </xf:if>
</div>

i would update the code with this, personally.
 
XDinc updated [XTR] Top Poster of The Month with a new update entry:

Changelog 1.0.3

Version string 1.0.3
  • Added new phrases.
  • Changed widget style options
  • Updated public templates.
  • Added new style properties.
  • Fixed responsive issues.
ACP Widget style options,

View attachment 284396

Compact view,

View attachment 284397

Avatar view,

1681041296122-png.7471


Advanced view,
If you select this style...

Read the rest of this update entry...
 
I appreciate the update. Also, maybe multiple top poster banner outputs on next release? That would be ideal.
 
No permission to download?

You need to verify your account with a file :). (y)

 
You need to verify your account with a file :). (y)

That's something new. Is that file safe? Never heard about that, apart from Google to verify ownership.
 
That's something new. Is that file safe? Never heard about that, apart from Google to verify ownership.

I trust @Ozzy47 :)
 
I understand that it is not possible to update on version 1.4.0 of au lait? is that I would not like current users to lose their current positions. Great job!!
 
Back
Top Bottom