Linux 软件免费装

bbPress Votes

开发者 grosbouff
更新时间 2020年1月14日 07:47
捐献地址: 去捐款
PHP版本: 4.1.1 及以上
WordPress版本: 5.3.2
版权: GPL2+

标签

BuddyPress bbPress rating ratings vote rate votes reputation

下载

详情介绍:

Allows logged users to vote up or down to topics and replies inside bbPress, just like you can on StackOverflow for example. Demo We don't have a running demo anymore. If you use this plugin and would like to be featured here, please contact us Donate Donations are needed to help maintain this plugin. Please consider supporting us. This would be very appreciated — Thanks ! Contributors Contributors are listed here Bugs/Development For feature request and bug reports, please use the Github Issues Tracker. If you are a plugin developer, we would like to hear from you. Any contribution would be very welcome.

安装:

Upload the plugin to your blog and Activate it.

屏幕截图:

  • A single reply with score, vote up and vote down links (top) and vote log (after reply content)
  • Plugin's options page

常见问题:

I can’t see the vote links

Users cannot vote for themselves. If you are the author of a topic or reply, the vote links won’t be available; the score only will be shown.

Can I filter the query to sort posts by votes ?

Yes, you can sort the posts by score or votes count, using the query variable 'bbpvote_sort'. Allowed values are 'score_desc', 'score_asc', 'count_desc', 'count_asc'. Example of a query that will fetch the 5 last topics, ordered by score (desc) : `<?php $best_rated_topics_args = array( 'post_type' => bbp_topic_post_type(), //or 'topic' 'posts_per_page' => 5, 'bbpvote_sort' => 'score_desc' //plugin ); $best_rated_topics = new WP_Query( $best_rated_topics_args ); ?>` See function sort_by_votes() for more details.

How can I customize the look of the vote links ?

The best way to customize the links is to setup some CSS rules in your theme. Check this example on CodePen to see how to have images displayed instead of text. If you need more complex customization, you can filter the links using those hooks :

  • bbpvotes_get_vote_up_link
  • bbpvotes_get_vote_down_link
  • bbpvotes_get_vote_score_link

更新日志:

1.2.4 1.2.3 1.2.2 1.2.1 1.2 1.1.0 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0