如何統(tǒng)計一篇文章的會員點贊數(shù)或反對數(shù)
前提當(dāng)然是登錄后才可以點贊。
show.html內(nèi)顯示如下:
本篇文章共有xx個會員點贊,YY個會員反對.
其中點贊的用戶列表如下:
{table table=1_news_support cid=$cid GT_uid=0}
{php $user=dr_member_info($t.uid);}
{$user.username}
{dr_avatar($t.uid)}
{/table}
====問題在此,點贊會員數(shù)xx,和反對數(shù)YY如何統(tǒng)計出來???
插件版權(quán):官方插件
插件名稱:內(nèi)容點贊
{count action=table table=1_news_support cid=$id GT_uid=0}參考文檔:《統(tǒng)計量查詢標簽》
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@官方插件技術(shù)-大山 一直都顯示為0
{table table=1_news_support cid=$cid GT_uid=0}
{php $user=dr_member_info($t.uid);}
{$user.username}
{dr_avatar($t.uid)}
{/table}
{count action=table table=1_news_support cid=$id GT_uid=0}
show.html
{count action=table table=1_news_support cid=$id GT_uid=0} {$debug_count}開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!