AntoineH
Forum Replies Created
-
I haven’t really given it a lot of thought, but I don’t think the matches system will work for you. Changing or extending the plugin is possible, but will require quite some work because everything is based on these teams and 1 on 1 matches.
One option that might work, is to only use the bonus questions feature with questions like “Who will finish first in the XYZ race on dd-mm-yyyy?”. If you use fixed lists of names (dropdowns or radio button lists) then assigning points is relatively easy with the auto-assign option selected. It’s not ideal, but you can give it a try.
Forum: Plugins
In reply to: [Football Pool] Save buttonhi, and sorry for the late reply.
Do you mean this message?
If yes, then I think it is a CSS styling issue. You can inspect the page after a save via your browser by right clicking on the “matches” title and then searching for this element in the source. Via the development tools of your browser you should be able to determine the cause or conflicting style rule.
Fixing this will require some CSS knowledge, though. If you are unexperienced with this, then I guess the only option is to change to a theme that doesn’t have this problem.
Forum: Plugins
In reply to: [Football Pool] Fix ProblemHi Andrea,
The plugin has an option to overwrite the score calculation via code. So, yes this is possible, but it requires some custom coding. Also something to remember, is that if you change the score for missing predictions, that you also might want to change the score for wrong predictions.
With regards to your other question, the plugin has a WP-CLI function to update the scores via a CSV file. If you are able to script something that automatically generates this CSV, then you can use this WP-CLI function to import the results and start a calculation of the ranking.
Hope this helps.
Forum: Plugins
In reply to: [Football Pool] Reset pluginIs there an other way to reset the ranking points?
By for example deleting data in the database?The reset plugin does exactly this. It deletes all data in a particular table.
Another way to reset the ranking, is to recalculate the ranking yourself (there is a button on the Options page in the admin). At least, assuming that all your matches are set in the future.
I have for example 6 matches with data.
When I delete the created data of the match_id (the predictions of the players) from the database, will the earned points of that specific match substracted from the total earned ranking points?When you delete predictions from the database, then these points will be removed from the ranking once a new calculation has been done. The reset plugin also has a button to remove all predictions.
Forum: Plugins
In reply to: [Football Pool] Reset pluginYes, correct.
Forum: Plugins
In reply to: [Football Pool] Placement point visuel ?This can only be done by overwriting the question template via some custom PHP code.
One small challenge might be that you have your matches in a table layout. I’m not entirely sure if you can add the questions in the same table grid. But if that is not possible, then I guess aligning via CSS will also be possible.
Forum: Plugins
In reply to: [Football Pool] PaginationIf you are using this extension, then you can simply comment out (or remove) lines 19 and 20 in the file. That will remove the pagination from the ranking page.
If you only want to keep the results, then I would suggest to copy and paste the html from the pages that you want to keep. And paste that html in a new page or post.
Other option is to create multiple installs of the plugin via a network wp. Ans combine the pages in one site. I don’t have any experience with this, but I think I once read on the forum that it worked.
Forum: Plugins
In reply to: [Football Pool] Equal ranking in the grouphi @spaniole,
Great that you already found the answer to the goal diff question. This is indeed a new addition to the latest version of the plugin. So, no need for the extension there anymore.
Regarding the ordering of the group: this is based on some basic rules from football. A more detailed explanation can be found in this forum post. Also with a suggestion to manually change it. The mentioned example to overwrite this ordering via code can be found here.
Hope this helps.
Forum: Plugins
In reply to: [Football Pool] CSV templateThe plugin comes with a csv example in the /data/schedules folder.
Forum: Plugins
In reply to: [Football Pool] Update breaks my Theme CSSI accidentally removed these tags in a clean-up of the code. I have restored the previous behavior in a bug fix update.
Forum: Plugins
In reply to: [Football Pool] Plugin Extension: Answering questions after the gameFor anyone that stumbles upon this topic and finds these extensions useful, you can download the extension files here.
Forum: Plugins
In reply to: [Football Pool] Dynamic Timezone in the Matches SectionFor anyone that stumbles upon this topic and finds these extensions useful, you can download the extension files here.
Forum: Plugins
In reply to: [Football Pool] Not Calculating Scoreshi, the message that you get is not an error. It is a notification that there are no matches ready for the calculation. My guess is that your test match hasn’t started yet (meaning: a start date that is in the future). The calculation only takes matches or questions into account with a date in the past.
Forum: Plugins
In reply to: [Football Pool] Dynamic Timezone in the Matches Sectionhi @goyorondon,
This is very cool. Very smart to use another plugin for this. Thanks for sharing.
Would it be possible to also share the file with me via email (wordpressfootballpool at gmail dot com) and also your other plugin from the other topic? The forum kinda makes a mess of the code layout ??
I can then also make the files available via my dropbox for other users.