Code: Select all
{{(VALUE(%status%)@IFEQ() @THEN(pending)@ELSE@NULL)}}
Code: Select all
{{(VALUE(%status%)@IFEQ() @THEN(pending)@ELSE@NULL)}}
Code: Select all
<STATUS>{{VAR(USER_ROLE)@IFMATCH(Admin)@THEN(All)@ELSE(Published)}}</STATUS>
Code: Select all
{{(VALUE(%status%)@IFEQ(Published)@THEN(%title% - %content% etc)@ELSE@NULL)}}
Is there also anyway or code show the total number of forum posts a user has madefrancisco wrote: ↑Fri Feb 23, 2024 9:09 pm In Post Lister you have a really cool setting called STATUS, but don't ask me why it's not documented hahaha
To accomplish what you want use the following in Enter Config:With this, only posts with Published status will be displayed to common users and visitors.Code: Select all
<STATUS>{{VAR(USER_ROLE)@IFMATCH(Admin)@THEN(All)@ELSE(Published)}}</STATUS>
However, if you wanted to continue using your own version of the code, the correct syntax would be:Code: Select all
{{(VALUE(%status%)@IFEQ(Published)@THEN(%title% - %content% etc)@ELSE@NULL)}}