Here is the rough way i want it to appear on the Live Standings page
Jim 155
Bob 145
Sam 142 $
Bill 140 $
Nancy 138
and here is what i did first for my original code, which was done by a freelancer
1. Add the field(jackpot eg) to the users table (I'm assuming you will manually add $ against the names)
2. components\com_pools\models\tally.php (change as follows)
$query =
"SELECT u.name as user, u.jackpot, SUM(tp2.points) AS user_points " .
"FROM #__tc_pools as tp, " .
" #__tc_categories as tc, " .
" #__tc_selections as ts, " .
" #__tc_points tp2, " .
" #__users u " .
"WHERE tp.id = tc.pool_id " .
"AND tc.id = tp2.category_id " .
"AND tc.id = ts.category_id " .
"AND tc.winner_nomination_id = ts.nomination_id " .
"AND ts.nomination_type = tp2.nomination_type " .
"AND ts.username = u.username " .
"GROUP BY u.name, u.jackpot " .
"ORDER BY SUM(tp2.points) DESC";
3. change components\com_pools\views\tally\tmpl\default.php
<tr><th>User</th><th>Points</th><th>Jackpot</th></tr>
<tr><td><?php echo $row->user ?></td><td><?php echo $row->user_points ?></td><td><?php echo $row->jackpot?></td></tr>
hope that gives enough info as to what im trying to achieve, if your solution can suit this would be great if not i can live with the error until after SUnday night