{"id":35489,"date":"2015-04-03T11:02:58","date_gmt":"2015-04-03T11:02:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/bbpress-votes\/"},"modified":"2020-01-13T23:47:38","modified_gmt":"2020-01-13T23:47:38","slug":"bbpress-votes","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/bbpress-votes\/","author":245975,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.5","stable_tag":"trunk","tested":"5.3.21","requires":"4.1.1","requires_php":"","requires_plugins":"","header_name":"bbPress Votes","header_author":"G.Breant","header_description":"","assets_banners_color":"","last_updated":"2020-01-13 23:47:38","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/bit.ly\/gbreant","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/bbpress-votes","header_author_uri":"https:\/\/profiles.wordpress.org\/grosbouff\/","rating":3.9,"author_block_rating":0,"active_installs":70,"downloads":11466,"num_ratings":15,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":4,"2":0,"3":0,"4":1,"5":10},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1126951","resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1494991","resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"A single reply with score, vote up and vote down links (top) and vote log (after reply content)","2":"Plugin's options page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2770,2294,2295,9827,11299],"plugin_category":[53],"plugin_contributors":[83793],"plugin_business_model":[],"class_list":["post-35489","plugin","type-plugin","status-publish","hentry","plugin_tags-bbpress","plugin_tags-rate","plugin_tags-rating","plugin_tags-vote","plugin_tags-votes","plugin_category-ratings-and-reviews","plugin_contributors-grosbouff","plugin_committers-grosbouff"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/bbpress-votes.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/bbpress-votes\/assets\/screenshot-1.png?rev=1126951","caption":"A single reply with score, vote up and vote down links (top) and vote log (after reply content)"},{"src":"https:\/\/ps.w.org\/bbpress-votes\/assets\/screenshot-2.png?rev=1494991","caption":"Plugin's options page"}],"raw_content":"<!--section=description-->\n<p>Allows logged users to vote up or down to topics and replies inside bbPress, just like you can on StackOverflow for example.<\/p>\n\n<ul>\n<li>Ajaxed<\/li>\n<li>BuddyPress integration<\/li>\n<li>Votes log with users icons<\/li>\n<li>Options page<\/li>\n<li>Allow to filter a query to sort posts by votes, see FAQ.<\/li>\n<li>Hooks and filters to extend the plugin<\/li>\n<li>Templates functions to use in your themes (see the file <strong>bbpvotes-template.php<\/strong>); eg. <em>bbpvotes_get_author_score()<\/em> to get an author's score (karma)<\/li>\n<\/ul>\n\n<h4>Demo<\/h4>\n\n<p>We don't have a running demo anymore.  If you use this plugin and would like to be featured here, please <a href=\"https:\/\/github.com\/gordielachance\/bbpress-votes\/issues\/12\">contact us<\/a><\/p>\n\n<h4>Donate<\/h4>\n\n<p>Donations are needed to help maintain this plugin.  Please consider <a href=\"http:\/\/bit.ly\/gbreant\">supporting us<\/a>.\nThis would be very appreciated \u2014 Thanks !<\/p>\n\n<h4>Contributors<\/h4>\n\n<p>Contributors <a href=\"https:\/\/github.com\/gordielachance\/bbpress-votes\/contributors\">are listed here<\/a><\/p>\n\n<h4>Bugs\/Development<\/h4>\n\n<p>For feature request and bug reports, please use the <a href=\"https:\/\/github.com\/gordielachance\/bbpress-votes\/issues\">Github Issues Tracker<\/a>.<\/p>\n\n<p>If you are a plugin developer, <a href=\"https:\/\/github.com\/gordielachance\/bbpress-votes\">we would like to hear from you<\/a>. Any contribution would be very welcome.<\/p>\n\n<h3>Localization<\/h3>\n\n<p>If it hasn't been done already, you can translate the plugin and send me the translation.  I recommand <a href=\"https:\/\/fr.wordpress.org\/plugins\/loco-translate\/\">Loco Translate<\/a> to work on your translations within Wordpress.<\/p>\n\n<!--section=installation-->\n<p>Upload the plugin to your blog and Activate it.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>I can\u2019t see the vote links<\/dt>\n<dd><p>Users cannot vote for themselves.  If you are the author of a topic or reply, the vote links won\u2019t be available; the score only will be shown.<\/p><\/dd>\n<dt>Can I filter the query to sort posts by votes ?<\/dt>\n<dd><p>Yes, you can sort the posts by score or votes count, using the query variable 'bbpvote_sort'.\nAllowed values are 'score_desc', 'score_asc', 'count_desc', 'count_asc'.<\/p>\n\n<p>Example of a <a href=\"https:\/\/codex.wordpress.org\/Class_Reference\/WP_Query\">query<\/a> that will fetch the 5 last topics, ordered by score (desc) :<\/p>\n\n<pre><code>&lt;?php\n$best_rated_topics_args = array(\n  'post_type'       =&gt; bbp_topic_post_type(), \/\/or 'topic'\n  'posts_per_page'  =&gt; 5,\n  'bbpvote_sort'       =&gt; 'score_desc' \/\/plugin\n);\n\n$best_rated_topics = new WP_Query( $best_rated_topics_args );\n?&gt;\n<\/code><\/pre>\n\n<p>See function sort_by_votes() for more details.<\/p><\/dd>\n<dt>How can I customize the look of the vote links ?<\/dt>\n<dd><p>The best way to customize the links is to setup some CSS rules in your theme.\nCheck <a href=\"http:\/\/codepen.io\/anon\/pen\/KpwrMp\">this example on CodePen<\/a> to see how to have images displayed instead of text.<\/p>\n\n<p>If you need more complex customization, you can filter the links using those hooks :<\/p>\n\n<ul>\n<li>bbpvotes_get_vote_up_link<\/li>\n<li>bbpvotes_get_vote_down_link<\/li>\n<li>bbpvotes_get_vote_score_link<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.4<\/h4>\n\n<ul>\n<li>karma transient fix<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>new BuddyPress profile submenu : forum&gt;karma, where replies are sorted by score<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Fixed sort topics by votes<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fixed bug when displaying topic score<\/li>\n<li>Fixed typo in settings<\/li>\n<li>Rebuild scores option<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Migrate options page<\/li>\n<li>Option to choose the 'score' unit (pts, kudos, ...)<\/li>\n<li>Option to choose which post types are enabled for voting (topics\/replies)<\/li>\n<li>Use Dashicons instead of fontAwesome in some places<\/li>\n<li>Use a transient to cache author's karma<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>supports unvoting (by reclicking the link)<\/li>\n<li>\"sort by votes\" link before topics loop<\/li>\n<li>Added option to hide voters identity in the vote log<\/li>\n<li>Added option to disable downvoting<\/li>\n<li>Added options page (under Settings &gt; Forums)<\/li>\n<li>Display the score of an topic next to its author when showing a topics list<\/li>\n<li>Display the \"reputation\" score of an author next to its name when displaying a reply<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<ul>\n<li>SCSS files<\/li>\n<li>CSS bug fix (https:\/\/wordpress.org\/support\/topic\/avatars-not-in-a-row)<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Removed the function 'author_link_karma' hooked on the filter 'bbp_get_reply_author_link' as it shows up everywhere.<br \/>\nIt's easier to edit the bbPress templates and to call bbpvotes_get_author_score().<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>New template functions to get votes count by user : bbpvotes_get_votes_down_by_user_count(), bbpvotes_get_votes_up_by_user_count(), bbpvotes_get_votes_total_by_user_count()<\/li>\n<li>New template functions to get an author's score : bbpvotes_get_author_score()<\/li>\n<li>Embeds author's karma (score) under its name, when showing a reply<\/li>\n<li>Russian translation by VovaZ<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Added two meta keys : 'bbpvotes_vote_score' (total score) and 'bbpvotes_vote_count' (total votes).<\/li>\n<li>Filter query to sort items by score or votes count.<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Fixed crash when BuddyPress is not installed<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Append votes log with ajax when user has voted<\/li>\n<li>French translation<\/li>\n<li>Added pot files for translations<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Replaced ajaxurl with bbpvotesL10n.ajaxurl in bbpvotes.js<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Fixed $user_vote_link link in bbpvotes_get_post_votes_log()<\/li>\n<li>Fixed \u2018bbpvotes-post-no-score\u2019 class in bbpvotes_get_score_link()<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Minor fixes<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First release<\/li>\n<\/ul>","raw_excerpt":"Allows logged users to vote up or down to topics and replies inside bbPress, just like you can on StackOverflow for example.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35489"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/grosbouff"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35489"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35489"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35489"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35489"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35489"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}