Changeset 3199598
- Timestamp:
- 11/29/2024 05:34:42 PM (13 months ago)
- Location:
- bbp-voting/trunk
- Files:
-
- 1 added
- 4 edited
-
backend.php (modified) (1 diff)
-
bbp-voting.php (modified) (2 diffs)
-
css/bbp-voting-css.min.css (added)
-
frontend.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bbp-voting/trunk/backend.php
r3042272 r3199598 147 147 'Remove scores and voting buttons from replies', 148 148 'You can override this at the forum level'); 149 bbp_voting_field('bbp_voting_disable_forum_index_buttons', 150 'Disable Voting on Forum Index Page', 151 'Remove scores and voting buttons from the forum page', 152 'Voting on topics can still happen on the single topic pages.'); 149 153 150 154 -
bbp-voting/trunk/bbp-voting.php
r3128485 r3199598 7 7 Description: Let users vote up or down on bbPress topics and replies just like Reddit or Stack Overflow. 8 8 Text Domain: bbp-voting 9 Version: 2.1.1 2.79 Version: 2.1.13.0 10 10 Requires at least: 4.0.0 11 Tested up to: 6. 6.111 Tested up to: 6.7.1 12 12 License: GPLv3 13 13 */ … … 33 33 'bbp_voting_only_topics' => 'bool', 34 34 'bbp_voting_only_replies' => 'bool', 35 'bbp_voting_disable_forum_index_buttons' => 'bool', 35 36 'bbp_voting_disable_voting_for_visitors' => 'bool', 36 37 'bbp_voting_disable_voting_on_closed_topic' => 'bool', -
bbp-voting/trunk/frontend.php
r3091834 r3199598 68 68 } 69 69 70 function bbp_voting_buttons($post_obj = false) { // $author_link = '', $r = arrray(), $args = array()70 function bbp_voting_buttons($post_obj = false) { 71 71 // global $bbp_voting_last_author_link_post_id; 72 72 $current_action = current_action(); … … 109 109 case $topic_post_type: 110 110 $forum_id = bbp_get_topic_forum_id($post_id); 111 $post_setting = get_post_meta( $forum_id, 'bbp_voting_forum_enable_topics', true);111 $post_setting = get_post_meta($forum_id, 'bbp_voting_forum_enable_topics', true); 112 112 $broad_disable = apply_filters('bbp_voting_only_replies', false); 113 $disable_forum_index_buttons = is_singular('topic') ? false : apply_filters('bbp_voting_disable_forum_index_buttons', false); 113 114 break; 114 115 case $reply_post_type: 115 116 $forum_id = bbp_get_reply_forum_id($post_id); 116 $post_setting = get_post_meta( $forum_id, 'bbp_voting_forum_enable_replies', true);117 $post_setting = get_post_meta($forum_id, 'bbp_voting_forum_enable_replies', true); 117 118 $broad_disable = apply_filters('bbp_voting_only_topics', false); 119 $disable_forum_index_buttons = false; 118 120 break; 119 121 } … … 127 129 // Use broad disable settings 128 130 if($broad_disable === true) return; 131 // Use broad disable settings 132 if($disable_forum_index_buttons === true) return; 129 133 } 130 134 // Done with "allowed" checks... let's do this -
bbp-voting/trunk/readme.txt
r3128485 r3199598 4 4 Tags: bbpress, voting, vote, rating, rate, topics, replies, up, down, score, stackoverflow, reddit, forum 5 5 Requires at least: 4.0 6 Tested up to: 6. 6.17 Stable tag: 2.1.1 2.76 Tested up to: 6.7.1 7 Stable tag: 2.1.13.0 8 8 Requires PHP: 5.6 9 9 License: GPLv3 … … 106 106 == Changelog == 107 107 108 = 2.1.13.0 = 109 * New setting to disable voting on forum index page while allowing voting on topics on their single topic page. 110 108 111 = 2.1.12.7 = 109 112 * Support for Pro feature for topic authors to unselect accepted answer.
Note: See TracChangeset
for help on using the changeset viewer.