🔥 HOT: Changeset/ - HD Photos!

Changeset 3338086


Ignore:
Timestamp:
08/02/2025 03:57:30 AM (5 months ago)
Author:
natekinkead
Message:

Tagging version 2.1.13.4

Location:
bbp-voting/tags/2.1.13.4
Files:
1 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bbp-voting/tags/2.1.13.4/ajax.php

    r3042272 r3338086  
    115115    do_action('bbp_voting_process_score_on_vote', $post_id, $ups, $downs);
    116116    // Log the user's ID or IP
     117    $change = $reverse_vote ? $direction * 2 : ($remove_vote ? -$direction : $direction);
    117118    $real_direction = $remove_vote ? 0 : $direction;
    118119    $voting_log[$identifier] = $real_direction;
     
    121122    // $voting_cookie[$post_id] = true;
    122123    // 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
    124126    echo json_encode(array(
    125127        'score' => $score,
  • bbp-voting/tags/2.1.13.4/bbp-voting.php

    r3325295 r3338086  
    77Description: Let users vote up or down on bbPress topics and replies just like Reddit or Stack Overflow.
    88Text Domain: bbp-voting
    9 Version: 2.1.13.3
     9Version: 2.1.13.4
    1010Requires at least: 4.0.0
    11 Tested up to: 6.8.1
     11Tested up to: 6.8.2
    1212License: GPLv3
    1313*/
     
    6666    require_once plugin_dir_path( __FILE__ ) . 'frontend.php';
    6767}
     68
     69// Load GamiPress integration after all plugins are loaded
     70function bbp_voting_load_gamipress_integration() {
     71    if( class_exists('GamiPress') ) {
     72        require_once plugin_dir_path( __FILE__ ) . 'gamipress.php';
     73    }
     74}
     75add_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  
    44Tags: bbpress, voting, vote, rating, rate, topics, replies, up, down, score, stackoverflow, reddit, forum
    55Requires at least: 4.0
    6 Tested up to: 6.8.1
    7 Stable tag: 2.1.13.3
     6Tested up to: 6.8.2
     7Stable tag: 2.1.13.4
    88Requires PHP: 5.6
    99License: GPLv3
     
    2929* Sort topics and replies by voting scores
    3030* Admin bypass
     31* GamiPress integration