[WordPress] 外掛分享: Rate

首頁外掛目錄 › Rate
40+
安裝啟用
★★★★
4.3/5 分(6 則評價)
3884 天前
最後更新
問題解決
WordPress 3.0+ v0.4 上架:2010-11-29

內容簡介

大部分評分外掛都含有過多的代碼:內嵌JavaScript,亂七八糟的標記,奇怪的CSS。Rate 則是簡單、不會佔據太多空間,而且完全可覆寫。

文章 / 頁面 / 自定文章類別的評分會是所有評論評分的平均值。用戶可以在評論時對內容進行評分,並在留言後(如果已登錄或有Cookie)更改評分。

不要害怕嘗試並擴展程式碼:在你的佈景主題目錄中加入一個 rate.css 檔案,我們的樣式就不會預設載入(預設,Rate 星星是透明的,有白邊框,所以你可以使用 background-color 去設定你的星星顏色)!

<?php
// 在此版本中,你需要在你的佈景主題中插入這些函數才能出現評分
// 你不必使用 the_rating(),只用 the_comment_rating() 即可,但無法使用 the_rating()

// 對於文章、頁面或自定文章類別(所有評論評分的平均值)
the_rating();

// 對於評論
the_comment_rating();
?>

閱讀更多:http://scottctaylor.wordpress.com/2010/11/30/new-plugin-rate/

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Rate」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Most ratings plugins contain too much code: inline JavaScript, messy markup, weird CSS. Rate is simple, hardly intrusive, and completely overridable.
A Post/Page/Custom Post Type’s rating is the average of all comment ratings. A user can leave a rating when commenting, and change that rating inline after leaving a comment (if logged-in or Cookie’d).
Don’t be afraid to play around and extend the code: drop a rate.css file in your theme directory and mine won’t even load (by default, Rate stars are transparent with a white border, so you can use background-color to set your stars’ colors)!

Read More: http://scottctaylor.wordpress.com/2010/11/30/new-plugin-rate/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon