Changeset 3338086
- Timestamp:
- 08/02/2025 03:57:30 AM (5 months ago)
- Location:
- bbp-voting/tags/2.1.13.4
- Files:
-
- 1 added
- 4 edited
- 1 copied
-
. (copied) (copied from bbp-voting/trunk)
-
ajax.php (modified) (2 diffs)
-
bbp-voting.php (modified) (2 diffs)
-
css/bbp-voting-css.min.css (modified) (1 diff)
-
gamipress.php (added)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bbp-voting/tags/2.1.13.4/ajax.php
r3042272 r3338086 115 115 do_action('bbp_voting_process_score_on_vote', $post_id, $ups, $downs); 116 116 // Log the user's ID or IP 117 $change = $reverse_vote ? $direction * 2 : ($remove_vote ? -$direction : $direction); 117 118 $real_direction = $remove_vote ? 0 : $direction; 118 119 $voting_log[$identifier] = $real_direction; … … 121 122 // $voting_cookie[$post_id] = true; 122 123 // setcookie('bbp_voting', serialize($voting_cookie), time() + (86400 * 30 * 365), '/'); 123 do_action('bbp_voting_voted', $post_id, $real_direction, $score, $identifier); 124 do_action('bbp_voting_voted', $post_id, $real_direction, $score, $identifier, $change, $remove_vote); 125 124 126 echo json_encode(array( 125 127 'score' => $score, -
bbp-voting/tags/2.1.13.4/bbp-voting.php
r3325295 r3338086 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.13. 39 Version: 2.1.13.4 10 10 Requires at least: 4.0.0 11 Tested up to: 6.8. 111 Tested up to: 6.8.2 12 12 License: GPLv3 13 13 */ … … 66 66 require_once plugin_dir_path( __FILE__ ) . 'frontend.php'; 67 67 } 68 69 // Load GamiPress integration after all plugins are loaded 70 function bbp_voting_load_gamipress_integration() { 71 if( class_exists('GamiPress') ) { 72 require_once plugin_dir_path( __FILE__ ) . 'gamipress.php'; 73 } 74 } 75 add_action('plugins_loaded', 'bbp_voting_load_gamipress_integration', 20); -
bbp-voting/tags/2.1.13.4/css/bbp-voting-css.min.css
r3199598 r3338086 1 }.bbp-voting-avatars .bbp-voting-avatar{display:inline-block;margin:-15px 0 0 -15px}.bbp-voting-avatars .bbp-voting-avatar img{border-radius:100px;border:3px solid black!important;box-shadow:-2px 2px 5px rgba(0,0,0,.2)!important}.bbp-voting-avatars .bbp-voting-avatar.up img{border-color:green!important}.bbp-voting-avatars .bbp-voting-avatar.down img{border-color:#a11717!important}.bbp-voting-jump-to-answer{display:table;margin-top:15px;padding:10px;background-color:#ddefdd}.bbp-voting-jump-to-answer a{font-size:1.25em}.bbp-voting-accepted-checkmark{margin-top:15px}.bbp-voting-accepted-checkmark>path{fill:green}#bbpress-forums div.bbp-reply-content a.bbp-voting-accept-answer-button{display:inline-block;background-color:green;padding:6px 12px;color:#fff;text-decoration:none}#bbpress-forums div.bbp-reply-content a.bbp-voting-accept-answer-button:hover{background-color:#005700}.bbp-voting-sort{display:block;clear:both;margin:.75em 0}.bbp-voting-score-graph{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none}1 ;margin-bottom:20px}.bbp-voting-avatars .bbp-voting-avatar{display:inline-block;margin:-15px 0 0 -15px}.bbp-voting-avatars .bbp-voting-avatar img{border-radius:100px;border:3px solid black!important;box-shadow:-2px 2px 5px rgba(0,0,0,.2)!important}.bbp-voting-avatars .bbp-voting-avatar.up img{border-color:green!important}.bbp-voting-avatars .bbp-voting-avatar.down img{border-color:#a11717!important}.bbp-voting-jump-to-answer{display:table;margin-top:15px;padding:10px;background-color:#ddefdd}.bbp-voting-jump-to-answer a{font-size:1.25em}.bbp-voting-accepted-checkmark{margin-top:15px}.bbp-voting-accepted-checkmark>path{fill:green}#bbpress-forums div.bbp-reply-content a.bbp-voting-accept-answer-button{display:inline-block;background-color:green;padding:6px 12px;color:#fff;text-decoration:none}#bbpress-forums div.bbp-reply-content a.bbp-voting-accept-answer-button:hover{background-color:#005700}.bbp-voting-sort{display:block;clear:both;margin:.75em 0}.bbp-voting-score-graph{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none}body.buddyboss-theme.bbp-voting-buddyboss-css .bbp-voting.bbp-voting-float{margin-top:-75px}@media screen and (min-width:800px){body.buddyboss-theme.bbp-voting-buddyboss-css .bbp-voting.bbp-voting-float{margin-left:-65px;margin-top:-65px}}body.buddyboss-theme.bbp-voting-buddyboss-css .bs-item-wrap.topic-lead .item>div:not(.item-title),body.buddyboss-theme.bbp-voting-buddyboss-css .bb-reply-topic-title,body.buddyboss-theme.bbp-voting-buddyboss-css .bs-reply-list-item>div{margin-left:65px!important}@media screen and (max-width:799px){body.buddyboss-theme.bbp-voting-buddyboss-css .bs-item-wrap.topic-lead .item>div.item-description,body.buddyboss-theme.bbp-voting-buddyboss-css .bs-reply-list-item>div.bbp-reply-content{margin-left:0!important}body.buddyboss-theme.bbp-voting-buddyboss-css .bb-topic-states{margin-left:65px!important}} -
bbp-voting/tags/2.1.13.4/readme.txt
r3325295 r3338086 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.8. 17 Stable tag: 2.1.13. 36 Tested up to: 6.8.2 7 Stable tag: 2.1.13.4 8 8 Requires PHP: 5.6 9 9 License: GPLv3 … … 29 29 * Sort topics and replies by voting scores 30 30 * Admin bypass 31 * GamiPress integration