robbylai
Forum Replies Created
-
Forum: Plugins
In reply to: [Football Pool] Point settings correct?That’s great. Tks for quick reply and supports!
Forum: Plugins
In reply to: [Football Pool] Point settings correct?“Change the score calculation (v2.5 and up)
Since version 2.5 changing the way the plugin calculates the score has become very simple. This example also rewards the goal diff points when the match ended in a draw and the user predicted a draw.”The last time I used this plugin is on Worldcup 2022. This plugin add award goal diff bonus for matches ending in a draw only.
Now, it’s also add award goal diff bonus for win matches (full scores). That’s what I want to say.
Forum: Plugins
In reply to: [Football Pool] .cvs import errorHi AntoineH,
I can’t find plugin’s prefix “pool_wp_”, like “pool_wp_leagues”.
Try the following:
1. Open the file /data/install.txt in a text editor —-> done
2. Replace all occurrences of “{$prefix}” with “pool_wp_” —-> done
3. Run the changed sql command in your database via phpmyadmin ——>WordPress database error Table ‘wordpress864.pool_wp_leagues’ doesn’t exist
No records on DB to change. It’s seems the plugin didn’t create in the table.I also try update MySQL 5.1 to 5.5; remove plugin and active again but no miracle appear.
So I have to re-install fresh wordpress with new DB. And now everything are fine, match imported!.
Many thanks for your supports!
Forum: Plugins
In reply to: [Football Pool] .cvs import errorHi,
I’ve done as your suggests but still got same errors.
What should I do?
Forum: Plugins
In reply to: [Football Pool] .cvs import errorHi,
I got this on debug.log file:
[24-Mar-2021 10:16:09 UTC] WordPress database error Table 'wordpress864.pool_wp_leagues' doesn't exist for query SELECT id AS league_id, name AS league_name, user_defined, image FROM pool_wp_leagues ORDER BY user_defined ASC, name ASC made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, wp_widgets_init, do_action('widgets_init'), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, register_widget, WP_Widget_Factory->register, Football_Pool_Ranking_Widget->__construct, Football_Pool_Pool->__construct, Football_Pool_Pool->get_leagues [24-Mar-2021 10:16:09 UTC] WordPress database error Table 'wordpress864.pool_wp_teams' doesn't exist for query SELECT t.id, t.name, t.photo, t.flag, t.link, g.id AS group_id, g.name as group_name, t.is_real, t.is_active, group_order, t.comments FROM pool_wp_teams t LEFT OUTER JOIN pool_wp_groups g ON t.group_id = g.id ORDER BY t.name ASC made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, wp_widgets_init, do_action('widgets_init'), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, register_widget, WP_Widget_Factory->register, Football_Pool_Ranking_Widget->__construct, Football_Pool_Pool->__construct, Football_Pool_Matches->__construct, Football_Pool_Matches->all_matches_info, Football_Pool_Teams->__construct, Football_Pool_Teams->get_teams [24-Mar-2021 10:16:09 UTC] WordPress database error Table 'wordpress864.pool_wp_matches' doesn't exist for query SELECT m.id, m.play_date, m.home_team_id, m.away_team_id, m.home_score, m.away_score, s.name AS stadium_name, s.id AS stadium_id, t.name AS matchtype, t.id AS type_id, t.id AS match_type_id, t.visibility AS match_is_visible FROM pool_wp_matches m JOIN pool_wp_stadiums s ON ( m.stadium_id = s.id ) JOIN pool_wp_matchtypes t ON ( m.matchtype_id = t.id )It’s seem your plugin doesn’t have write permission to DB.
Look fw you soon!
Thanks
Forum: Plugins
In reply to: [Football Pool] Shortcode isn’t working exactlyAfter removed “matchtype=10”, it’s worked!
Thanks AntoineH.
Forum: Plugins
In reply to: [Football Pool] Need Example for styling of Golden Games & PaginationAh, enjoy your holiday and good luck!
Thanks
Forum: Plugins
In reply to: [Football Pool] IMPORT MatchesPlz follow this topic and help to build fixtures together:
https://wordpress.org/support/topic/champions-league-2018-2019-schedule-2/
Thanks
Forum: Plugins
In reply to: [Football Pool] Champions League 2018-2019 schedule@fplnepal: I’ve created EPL 2018/2019 with minimum datas. You have to update timezone to use and . Here the link:
https://www.dropbox.com/s/8x546xvf4gfg0q9/england-premier-league-2018-en-US.txt?dl=0
@deshke: thanks for UCL 2018/2019 schedule.
Forum: Plugins
In reply to: [Football Pool] Bulk remove matchesYou’re right! What an awesome plugin!
Thanks for quickly support.
Forum: Plugins
In reply to: [Football Pool] Draw points wrong vol 3Super quick supports! Thanks @tarmost.
Forum: Plugins
In reply to: [Football Pool] Champions League 2018-2019 scheduleIt’s should be English Premier League 2018/2019 for sure.
Forum: Plugins
In reply to: [Football Pool] Automated recalulation of scores@harmenzon: could you share your Python Scrips for auto update and calculating scores?
Thank you!
Forum: Plugins
In reply to: [Football Pool] Draw points wrong vol 3@tarmost: I pasted the code from extension “Change the score calculation” here bcz I don’t know what’s need to be deleted? Plz help to find out. Thank you!
public static function calc_score( $score, $score_vars ) { // check if score can be calculated if ( $score_vars['do_calc'] ) { // check if match result is draw and user also predicted a draw $is_full = ( $score_vars['home'] == $score_vars['user_home'] && $score_vars['away'] == $score_vars['user_away'] ); if ( //! $is_full && $score_vars['home'] == $score_vars['away'] && $score_vars['user_home'] == $score_vars['user_away'] ) { // first remove the mulfiplier if it was already added $pool = new Football_Pool_Pool(); if ( $score_vars['joker'] == 1 && $pool->has_jokers && $score_vars['joker_multiplier'] > 0 ) { $score['score'] = $score['score'] / $score_vars['joker_multiplier']; } $score['score'] += $score_vars['diff']; $score['goal_diff_bonus'] = 1; // and add the multiplier again if ( $score_vars['joker'] == 1 && $pool->has_jokers ) { $score['score'] = $score['score'] * $score_vars['joker_multiplier']; } } }Forum: Plugins
In reply to: [Football Pool] Display missed points for each roundI can see the total missed points by pie chart on Statistics page. I wonder how can I see (or select by coding) this missed point for each round of the tournament (group stage; round 1-16; quarter final…) sorry for my bad english.
Rob.