<div class="dis-post-left">
<ul>
<li class="dis-usr-icon">
<a href="[[DiscussUrlMaker? &action=`user`
¶ms=`{"type":"username", "user":"[[+author.username]]"}`]]"
class="auth-avatar" title="[[%discuss.view_author_profile]]">
[[+author.avatar]]
[[+author.title:notempty=`<span
class="dis-usr-title">[[+author.title]]</span>`]]
</a>
</li>
<li class="dis-usr-post-count">[[+author.posts]]
[[%discuss.posts]]</li>
<a href="[[DiscussUrlMaker? &action=`messages/new`
¶ms=`{"user":"[[+author.username]]"}`]]" class="dis-pm-btn">Send
PM</a>
</ul>
</div>This question has been answered by BobRay. See the first response.
to try to figured out what need to be used to make it work with modx lang like [[+post_count:greater:10:then=`Master`]] or something like that ... i shoot in dark to find the exact command if he even exist ...
[[+author.posts:greaterthan=`50`:then=`Master`:else=`NonMaster`]]
[[!GetLevel? &count=`[[+author.posts]]`]]
<?php
/* GetLevel snippet */
$defaultValue = 0;
$count = $modx->getOption('count', $scriptProperties, $defaultValue);
if ($count > 50) {
return 'Master';
} else {
return 'NonMaster';
}
$fields = array(
'placeholder1' => 'someValue',
'placeholder2' => 'someOtherValue',
);
return $modx->getChunk('myChunk', $fields);