Jump to content

Can you stop guest to see the most contribution list?


fairlight

Recommended Posts

Like the list below? 

image.png.427097aa45e47372fb4f3c60096647d1.png

on my forum, guest couldn't see the post list(I forgot how I did that...) but not the popular contributors list

image.png.2a7d702432374a1981a0f5f7b22ed28d.png

also, in my case, I didn't use the default system build "popular contributors" block, Im using the block from "Members shop" 

image.png.43f059ce4c6ea1192b207763208b820b.png

Please help, thank you!!

Link to comment
Share on other sites

{{$pointsName = \IPS\Settings::i()->ms_points_name;}}
<h2 class="ipsType_sectionTitle ipsType_reset">
    {lang="ms_most_points" sprintf="$pointsName"}
</h2>
<ol class='ipsDataList ipsDataList_reducedSpacing'>
    {{$idx = 1;}}
    {{foreach $mostPoints as $members}}
        {{$member = \IPS\Member::load( $members['member_id'] );}}
        <li class='ipsDataItem'>
            <div class='ipsDataItem_icon ipsPos_middle ipsType_center ipsType_large ipsType_light'><strong>{expression="$idx++"}</strong></div>
            <div class='ipsDataItem_main ipsPhotoPanel ipsPhotoPanel_tiny'>
                {template="userPhoto" group="global" app="core" params="$member, 'tiny'"}
                <div>
                    {$member->link()|raw}
                    <br>
                    <span title="{expression='number_format( $member->shopPoints() )'} {lang='ms_points' sprintf='$pointsName'}" data-ipsTooltip class='ipsRepBadge {{if $member->shopPoints() > 0}}ipsRepBadge_positive{{elseif $member->shopPoints() < 0}}ipsRepBadge_negative{{else}}ipsRepBadge_neutral{{endif}}'><i class='fa {{if $member->shopPoints() > 0}}fa-plus-circle{{elseif $member->shopPoints() < 0}}fa-minus-circle{{else}}fa-circle-o{{endif}}'></i> {expression="number_format( $member->shopPoints() )"}</span>
                </div>
            </div>
        </li>
    {{endforeach}}
</ol>
 

found the code....anybody have idea?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...