sillery4ever
Forum Replies Created
-
Forum: Plugins
In reply to: [Football Pool] hide avatar only in shortcode ranking ?good
Forum: Plugins
In reply to: [Football Pool] hide avatar only in shortcode ranking ?you are THE KING
Thank you !!!!
Forum: Plugins
In reply to: [Football Pool] hide avatar only in shortcode ranking ?sorry antoine, i dont know write php ??
i will ask to my friend to do this, i understand but i dont knwo how to write it !
TY
Forum: Plugins
In reply to: [Football Pool] hide avatar only in shortcode ranking ?sorry antoine, i dont know write php ??
i will ask to my friend to do this, i understand but i dont knwo how to write it !
TY
Forum: Plugins
In reply to: [Football Pool] hide avatar only in shortcode ranking ?sorry i dont understand what to do :
here is the code of plugin :
add_filter( ‘footballpool_ranking_ranking_row_template’, function( $template, $all_user_view, $type ) {
if ( $all_user_view ) {
$ranking_template = ‘<tr class=”%css_class%”>
<td style=”width:3em; text-align: right;”>%rank%.</td>
<td>%user_avatar%%user_name%</td>
<td class=”ranking score”>%points%</td>
<td>%league_image%</td>
</tr>’;
} else {
$ranking_template = ‘<tr class=”%css_class%”>
<td style=”width:3em; text-align: right;”>%rank%.</td>
<td>%user_avatar%%user_name%</td>
<td class=”ranking score”>%points%</td>
</tr>’;
}
return $ranking_template;
}, null, 3 );Forum: Plugins
In reply to: [Football Pool] hide avatar only in shortcode ranking ?my first problem was to diplsay avatar so i installed your plugin to show avatar.
2nd problem it s i want only see avatar in main ranking page, not in ranking displayed by shortcode.
Forum: Plugins
In reply to: [Football Pool] hide avatar only in shortcode ranking ?NOTE : i have insatlled your plugin :
* Plugin Name: Football Pool Avatars
* Description: Football Pool extension: put the avatars back in the ranking.Forum: Plugins
In reply to: [Football Pool] Joker questions ?Is it possible to easily set more than 1 joker ?
It will be cool if we could set Number of joker affected to each rankings.
So if i want to have new joker, i must reset the entire pool, isn’t it ?
TY
nano
Forum: Plugins
In reply to: [Football Pool] Some page content don't be diplayed after upgrade !TY for help
Forum: Plugins
In reply to: [Football Pool] Some page content don't be diplayed after upgrade !I have send you an email… with my admin access login , if you could help me to debug thsi display problems. it will be very of you. ^^
Forum: Plugins
In reply to: [Football Pool] Some page content don't be diplayed after upgrade !I am totaly agree with you… but upgrade dont run with my site configuration. Too many problems to fix… for only one “update” (Possibility to desactivate a ranking)
I have tried many times to debug… but my knowledge dont permit that !
??
Forum: Plugins
In reply to: [Football Pool] Some page content don't be diplayed after upgrade !I have tru to modify in calculation class like that :
$sql = “SELECT COUNT( * ) FROM {$prefix}rankings WHERE user_defined = 1”;
replace by
$sql = “SELECT COUNT( * ) FROM {$prefix}rankings WHERE user_defined = 1 AND calculate = 1”;
When i launch the calculation process, only the ranking definined by calculate=1 are now calculated… It is GOOD but …. other ranking are emptied ??
I would like to keep the results of this ‘non actived’ rankings.
Could you tell me if it is possible to desactived rankings but keep displayed the last calculated ranking result ?
I think the score history is emptied before each calculation, isn’t it ?
Is it possible to delete only the line where ranking is actives ?
TY
nano
Forum: Plugins
In reply to: [Football Pool] Some page content don't be diplayed after upgrade !I have tru to modify in calculation class like that :
$sql = “SELECT COUNT( * ) FROM {$prefix}rankings WHERE user_defined = 1”;
replace by
$sql = “SELECT COUNT( * ) FROM {$prefix}rankings WHERE user_defined = 1 AND calculate = 1”;
When i launch the calculation process, only the ranking definined by calculate=1 are now calculated… It is GOOD but …. other ranking are emptied ??
I would like to keep the results of this ‘non actived’ rankings.
Could you tell me if it is possible to desactived rankings but keep displayed the last calculated ranking result ?
I think the score history is emptied before each calculation, isn’t it ?
Is it possible to delete only the line where ranking is actives ?
TY
nano
Forum: Plugins
In reply to: [Football Pool] Some page content don't be diplayed after upgrade !I had a ‘calculate’ column in rankings table. (with value 1 or 0)
I replace code in football-pool/admin/class-football-pool-admin-score-calculation.php by the new code.
But the calculaton don’t run… i think there are some other changes. ??
Forum: Plugins
In reply to: [Football Pool] Ranking order and display.@ R2one :
Could you tell me what change in
get_ranking_order() function in admin/class-football-pool-score-calculation.php
to do to have
ORDER BY:
1 / POINTS
2 / TOTAL GAME PREDICTION
3 / # FULL SCORE???
TY
NAno.