latinosamorir
Forum Replies Created
-
Forum: Plugins
In reply to: [Football Pool] Points for a tie game and goal differencegreat!!! thank you!
Forum: Plugins
In reply to: [Football Pool] Choose user StatisticsHi Antoine – thanks again!
I’ve installed and activated the plugin and the bar is great! I tried figuring out how to display it at the top of the page instead of at the bottom.
Could you please let me know how to display at the top?
I see in the plugin code that the output is modified in line 50:
$output = self::str_insert( $output, '</table>', $chart->draw() );
I tried modifying the above as follows:
$output = self::str_insert( $chart->draw(), $output, '</table>', );
However, only the chart shows up but the table no longer shows up. What am I missing?
Thank you!
PS – The donation link worked, I’ve sent a small donation, thank you!
Forum: Plugins
In reply to: [Football Pool] Choose user Statisticsgood point. =)
newby here – where/how would i add a jQuery extension? by the way, i want to donate $50 to you — this plugin is awesome! how can i do that?
another question – is there a chart that shows the distribution of predictions per match?
for example, x% of users predict Russia will win, % say they’ll win 2-0, the largest goal difference prediction is 3,
thanks!
Forum: Plugins
In reply to: [Football Pool] Choose user StatisticsThanks for the question and answer! I have the same question – I see the Chart Settings Icon but I have to select each user in order to add users. I have 50+ and don’t want to check all 50 players. Is there a way to add an “Check all” option? Or does that exist already?
Thanks!
- This reply was modified 6 years, 5 months ago by latinosamorir.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Update players by importIn addition – is there a way to import new player lists?
Forum: Plugins
In reply to: [Football Pool] Final Game Not Saving — UrgentProblem solved — please ignore.
The user I was logged in with (Admin) was not part of the league so I could not save predictions … that was the change I had made. I logged in with a different user and I can save.
Forum: Plugins
In reply to: [Football Pool] Time in different timezonesHi.
I have the same issue. I have players in France, London, New York, SF, and Brazil.
How can I make it so users can change it to 15 minutes before match — someone in London tried making a change but they couldn’t because of the timezone issue.
“I’m in the London office and we found a bug. It takes the time from our computers so it thinks Germany-Portugal (scheduled to play at 9am sf time) has already played, because it is after 9am here.
My colleague tried to change his prediction and was prevented due to this. He emailed me his change so I can give to you!”
Thank you in advance!
Forum: Plugins
In reply to: [Football Pool] How Do I Paginate The Rankings?The latest – 2.4.2
Forum: Plugins
In reply to: [Football Pool] How Do I Paginate The Rankings?Thanks but unfortunately that did not work.
See screenshot:
The pagination shows but the following pages don’t work.
Any idea?
Forum: Plugins
In reply to: [Football Pool] Predictions and GroupsYes — the IF check if it’s a draw — don’t use !empty().
Use instead isset()
empty() is true even if it has a 0 value. isset is only true if the variable has been set.
Forum: Plugins
In reply to: [Football Pool] Sort Statistics Match pageThanks!
Forum: Plugins
In reply to: [Football Pool] How Do I Paginate The Rankings?Any chance you have the example? I haven’t been able to figure it out.
Thanks!
Forum: Plugins
In reply to: [Football Pool] Sort Statistics Match pageOk — I’ve succeeded if I add $match_info to the filter — would you mind adding that to avoid losing this when I update next:
I changed line 363 in class-football-pool-statistics.php to:
$rows = apply_filters( 'footballpool_statistics_matchpredictions', $predictions, $match_info );
and added the following to my functions.php:
// Change sort of statisctics page add_filter('footballpool_statistics_matchpredictions','gd_chgorder',10,2); function gd_chgorder ($rows, $match_info){ global $wpdb; $prefix = FOOTBALLPOOL_DB_PREFIX; $pool = new Football_Pool_Pool; $i=0; foreach ( $rows as $row ) { $rows[$i]["score"] = $pool->calc_score( $match_info['home_score'], $match_info['away_score'], $row['home_score'], $row['away_score'], $row['has_joker'] ); $i++; } $rows = sort_by_key($rows, 'score'); return $rows; }
Forum: Plugins
In reply to: [Football Pool] How Do I Paginate The Rankings?Thanks. I took a look and put that in my funcions.php but nothing happens.
After digging in, I saw that version 2.3.8 had the filters set, but version 2.4.2 lost the filters.
Should I be calling a different filter tag?
Which one?
Thanks!
Forum: Plugins
In reply to: [Football Pool] Sort Statistics Match pageThanks Antoine.
I can try to use the filter but you don’t pass the variable $match_info.
I believe I need this to use calc_score(), yes?
Please advice.
Thank you.