太阳成游戏网站CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
QQ1835022299
028-61286886
{php $user=dr_member_info($t.uid);}
{if $user.is_admin}
官方 {$t.author}
{elseif $user.author}
发布者 {$t.author}
{else}
网友 {$t.author}
{/if}
这是前台判断评论时的语句,在评论列表里,请问一下我要判断如果是这篇文章的作者评论的话就显示“发布者”,应该怎么写?
{php $user = dr_member_info($t.uid);} {if $user.is_admin} 官方 {$t.author} {elseif $index.uid==$t.uid} 发布者 {$t.author} {else} 网友 {$t.author} {/if}
{if $index.uid==$t.uid} 发布者 {$t.author} {elseif $user.is_admin} 官方 {$t.author} {else} 网友 {$t.author} {/if}
我的代码如下:
完美解决