fairlight 3 Posted May 7, 2020 Share Posted May 7, 2020 Like the list below? on my forum, guest couldn't see the post list(I forgot how I did that...) but not the popular contributors list also, in my case, I didn't use the default system build "popular contributors" block, Im using the block from "Members shop" Please help, thank you!! Link to comment Share on other sites More sharing options...
fairlight 3 Posted May 9, 2020 Author Share Posted May 9, 2020 {{$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 More sharing options...
Recommended Posts