• I can’t see anywhere to change what to see on the charts page?
    https://joeltipset.se/statistik-2/

    Downloaded the latest highcharts.js (v11.4.3) and it’s uploaded to
    /wp-content/plugins/highcharts-js/highcharts.js

    I’ve tried to change between “Default ranking” and ?“Let the user decide”. But it will only show me own user or the top 5 users. But no toggle or anything for options to choose on the chart page.
    Not sure if there is some code I’ve touched long ago that has affected this.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author AntoineH

    (@antoineh)

    The stats page is used from other parts of the plugin, e.g. the ranking or the prediction page. Without a view-parameter in the URL it will indeed default to this screen.

    Thread Starter gibrich

    (@gibrich)

    Not sure what you mean by a “view-parameter”?
    I found that [fp-chart-settings] would add the wheel to now choose users. Is there a way to show all users at the same time by default on the stat page?

    Plugin Author AntoineH

    (@antoineh)

    When you click on the “view stats” link on the prediction form for a closed match, you’ll notice that the same page opens but then with a querystring parameter. E.g. something like this: /statistics/?view=matchpredictions&match=1. That’s what I meant with a view-parameter.

    The shortcode that you found can indeed add the icon to open the statistics settings. In some themes this icon cannot be added to the page by the plugin. And then this shortcode comes in handy.

    There is no real out of the box solution to show the stats with all users pre-selected. Although, if you add the following constant to your wp-config and change the number to a higher value than your number of players, then all anonymous visitors will get the statistics page with every player in the charts.

    define( 'FOOTBALLPOOL_TOP_PLAYERS', 5 );

    For logged in visitors I do not have a solution.

    Thread Starter gibrich

    (@gibrich)

    Amazing, thank you so much for this. Solved it for me now with the setting in wp-config ??
    One last question on the stats page. Which file do I need to edit the code for, to change the name “toto score” to something else in the graph/stats?

    Plugin Author AntoineH

    (@antoineh)

    I would personally not recommend to change a file in the plugin. Because on every plugin update you will loose your changes (WP will overwrite the files in the plugin dir).

    Best approach would be to create a custom translation from a POT-file (language template file). There is a POT-file supplied in the /languages folder of the plugin that you can use as a basis (use Poedit to change it and to create a MO-file from it). You’ll only need to change the strings that you want differently.

    Process how to load a custom translation is described in the faq.

    Thread Starter gibrich

    (@gibrich)

    Thanks! Will have a look at it tomorrow.

    Great support as alwyas!

    Thread Starter gibrich

    (@gibrich)

    So I’ve added the mo-file. Now in /languages/football-pool-sv_SE.mo

    Added this to wp-config: define( ‘FPX_MO_FILE’, ‘football-pool-sv_SE.mo’ );

    After activating the plugin I get a PHP-error saying this:
    fopen(/var/www/html/wp-content/uploads/football-pool/languages/football-pool-sv_SE.mo): Failed to open stream: No such file or directory

    Is that search way correct? /var/www/html/… ?

    Plugin Author AntoineH

    (@antoineh)

    You added the mo-file in the languages folder in the plugin root folder. That’s not correct. You’ll need to add it in the “/wp-content/uploads/football-pool/languages/” folder.

    The /wp-content/uploads folder is for user content. Benefit of this location is that it won’t get overwritten on a plugin update.

    Thread Starter gibrich

    (@gibrich)

    oh shit I saw my mistake now. Nevermind ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.