聯(lián)系官方銷售客服
1835022288
028-61286886
{php $user=dr_member_info($t.uid);}
{if $user.is_admin}
<span class="label label-success" style="font-size: 12px">官方</span> {$t.author}
{elseif $user.author}
<span class="label label-primary" style="font-size: 12px">發(fā)布者</span> {$t.author}
{else}
<span class="label label-warning" style="font-size: 12px">網(wǎng)友</span> {$t.author}
{/if}
這是前臺判斷評論時的語句,在評論列表里,請問一下我要判斷如果是這篇文章的作者評論的話就顯示“發(fā)布者”,應該怎么寫?
{if $index.uid==$t.uid}
回復@外聘專員-明礬軟件
我的代碼如下:
完美解決