Forum Replies Created

Viewing 1 replies (of 1 total)
  • Antoine, maybe you can upgrade this “score breakdown plugin” to show points from “different points per match type” plugin. I made it just for full and toto:

    line 114:
    ,SUM(full) ASbreakdown_full`
    ,SUM( full * score ) AS breakdown_full_sum
    ,SUM( toto ) AS breakdown_toto
    ,SUM( toto * score ) AS breakdown_toto_sum`

    line 128:

    													'full' => (int) $row['breakdown_full'],
    													'full_sum' => (int) $row['breakdown_full_sum'],
    													'toto' => (int) $row['breakdown_toto'],
    													'toto_sum' => (int) $row['breakdown_toto_sum']

    line 177:
    `if ( array_key_exists( ‘full’, $breakdown[$user_id] ) ) {
    $params[‘breakdown_full’] = $breakdown[$user_id][‘full’];
    // $params[‘breakdown_full_points’] = $full * $breakdown[$user_id][‘full’];
    $params[‘breakdown_full_points’] = $breakdown[$user_id][‘full_sum’];

    $params[‘breakdown_toto’] = $breakdown[$user_id][‘toto’];
    // $params[‘breakdown_toto_points’] = $toto * $breakdown[$user_id][‘toto’];
    $params[‘breakdown_toto_points’] = $breakdown[$user_id][‘toto_sum’];
    }`

    • This reply was modified 7 years, 11 months ago by maddamon.
Viewing 1 replies (of 1 total)