stoolball-england / stoolball-org-uk Goto Github PK
View Code? Open in Web Editor NEWA rebuild of the Stoolball England website in Umbraco
License: Other
A rebuild of the Stoolball England website in Umbraco
License: Other
Previously supported URLs were
^id/ground/([a-z0-9/-]+)$ /ground/$1
^id/(team|player|match|tournament)/([a-z0-9/-]+)$ /$2
^id/user/([0-9]+)$ /you/profile.php?id=$1 [R=303,L]
^indoor/?$ /rules/indoor/
^spirit/?$ /rules/spirit/
^therules/?$ /rules/rules-of-stoolball/
^scorers/?$ /rules/how-to-score/
Support URL advertised in rule book
/shop/
/play/equipment/buy/
Include an Umbraco form to send a sales enquiry, replacing old contact form option.
Review 'stoolball' plugin for WordPress and recreate as a save event handler in Umbraco wherever replacements are still relevant.
Add pass or fail badge to Github readme file.
Including cookie banner and cookie policy saying implied consent.
Use analytics.js rather than gtag. See HTML5 Boilerplate for example code https://github.com/h5bp/html5-boilerplate/blob/master/dist/index.html
Check and restore the following to the 'Use our data' page:
Web analytics
We use Google Analytics to help us improve this website. You can sign in for yourself and see how the website gets used.
Website: www.google.co.uk/analytics
Email: [email protected]
Password: stoolball
All of the data collected by Google Analytics are anonymous. However, if you want to stop it recording your own visits to this website you can use the Google Analytics Opt-out.
Needs to use paging or a 'load more' approach.
Maybe use https://github.com/skttl/umbraco-fulltextsearch8 if possible
Look up "search extensions" and "Examine Facets" packages by Callum White.
RewriteRule ^schools/map/?$ /play/schools/schools-map.php
RewriteRule ^schools/add/?$ /play/schools/add-school.php
RewriteRule ^schools.json?$ /play/schools/schools.js.php
End time is estimated based on the match type using Match.GetEstimatedEndTime()
Matches are published in iCalendar format for you to subscribe to. Look for the ‘add these matches to your calendar’ links wherever you see a list of matches.
With paging for old articles
Allow/disallow performance cookies
Base it on Umbraco pages to avoid rebuilding category management. A custom property editor (or grid editor) to pick which competitions to show will make it easier to create a different page for Surrey (see #50)
However it's implemented, it should support drill-down, eg start with areas (counties) and then drill into the competitions there. Similar to current site.
/competitions/?$ /play/competitions/index.php
^competitions/([a-z]*)/?$ /play/competitions/index.php?category=$1
Includes throttling send rate to avoid spam
In archive listing and on single blog article page.
Restore the following text to the 'Use our data' page under a 'Linked data' heading:
We use the Semantically-Interlinked Online Communities (SIOC) vocabulary to publish our news as a ‘Weblog’ and our match comments as ‘Thread’ and ‘Comment’ instances.
/tournaments/map/?([a-z]*)/?$ /play/tournaments/map.php?player=$1
Old URL was /contact/
Use Umbraco forms
Email field optional, labelled "if you'd like a reply" and explains address only used for that.
Use text intro to direct Stoolball enquiries elsewhere and vice versa.
Link to the Contact us section from the footer.
Adapts choices based on context team, ground or season for which the tournament is being added. Can be any one or none of those.
Interacts with adding teams and matches in a wizard flow, showing step x of x.
Gathers title, player type, players per team, overs, qualification type (open or closed), start date and optionally the time, notes, context team, the ground, context season.
Suggests a title based on the context team or season. Defaults to open tournaments and mixed player type to encourage inclusivity. Defaults to 8 a side and 4 over matches.
Can specify a default date and time, eg for annual tournaments, or just use 10.30am today.
Location is optional.
Default to a context team's home ground.
Notes should remind them to include contact details. Use a template maybe?
Player type, tournament title and date are the required fields.
/insurance/
/manage/insurance/
/play/manage/insurance/
Based on hash or deployment. Also update the cache version in the service worker.
The Push to Umbraco Cloud script could do this, so that changes are only committed to the cloud repo.
/matches/
and /matches/all
Pipeline should run tests #31 and security analysis #174.
How to article on pipelines for Umbraco Cloud at https://skrift.io/articles/archive/take-two-another-approach-for-team-development-workflow-with-umbraco-cloud/
Build views in a pipeline: https://blog.deltacode.be/2017/01/08/fix-slow-startup-of-asp-net-mvc-5-on-azure-app-services/
It will need a new way to compile SASS because that currently happens in Visual Studio.
/teams/ redirects to /teams/all
/teams/?([a-z])/?([a-z])/?$ /play/teams/index.php?player=$1&area=$2
This will involve resetting the default of FilterByTeamType to exclude once-only teams. Ensure SelectByRoute() for the view team page can still show them. Previously it had to override this default filter.
Team search should search the player type, similar to competitions.
The onlysport.org website still exists, so this is probably still used. Recreate it.
URLs must be https://www.stoolball.org.uk/data/spogo.csv
and https://www.stoolball.org.uk/data/matches/onlysport.csv
- importing from both in 2013 and hopefully still, with API key nPf...
Restore text to the 'Use our data' page under a 'Teams' heading:
Regular teams as spogo CSV – download a spreadsheet of all the teams that play regularly, have contact details and are open to new members, in the format we use to share our data with OnlySport.org (updated every Sunday). Please request an API key if you want a copy of these data including email addresses and phone numbers.
We also publish teams as linked data – see below for details.
Also under a 'Match calendars' heading:
Matches as OnlySport.org CSV – download a spreadsheet of all future matches and tournaments in the format we use to share our data with OnlySport.org.
We also publish matches as linked data – see below for details.
Review if still used, and recreate if so. Restore the following text to the 'Use our data' page under a 'Teams' heading:
Regular teams as NHS Choices CSV – download a spreadsheet of all the teams that play regularly, have a postcode and are open to new members, in the format we use to share our data with NHS Choices.
Support URL advertised on club registration form /addteam/. Redirects to URL /teams/add/, which led to a form that sent an email.
Or is it a team group? Probably not, but think that one through...
Recreates the Surrey page from the old site and categories. Ignore news, which has not been used for years. Review code in play/competitions/index.php which suggests special treatment for SCSA as well. Many to many, because you'd want to include inter-league competitions in both a County stoolball group and the participating groups.
Includes:
Existing code in the 'stoolball' plugin for WordPress. Also remove it when trashed.
Old version weighted blog posts by age, with most recent first. See blog-post-search-adapter.class.php
Use Umbraco migrations to create custom tables and any reference data. Constants for table names.
Women's Sports Network. In 2015 they were using this feed of matches and spogo.csv for teams, and doing a manual upload to their website. FDL... is their API key.
Overs introduced a new join to OverSets and a GROUP BY clause, so if that turns out not to be necessary those can be removed.
Reuse design from exception.html
/play/manage/website/
Tweet your matches automatically
Tweet your new matches as you add them to this website, or tweet 'It's match night!' on the day of your match to keep your followers interested.
Content of the page:
You can use our ‘Subscribe to new or updated matches’ feature and IFTTT to tweet about your matches automatically.
Tweet your matches as you add them
IFTTT is a free service that lets you take updates from our site and tweet them from your account. Create or sign in to your account and follow the following steps:
[Screenshot: An example tweet about a new match]
You can also tweet ‘We’re off to [tournament name]!’ at 8am on the day of the tournament, ‘It’s practice night – come and join us!’ at 4pm on practice days, or ‘It’s match night! [match title]’ at 4pm on match days using the same method.
Following the steps above, create another applet and, in step 5, instead of adding ‘&format=tweet’ add ‘&format=tweet&today=true’. We’ll do the rest.
[Screenshot: An example match night tweet]
Includes:
Run analysis and fix issues
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^play/statistics/([a-z0-9-]+)/?$ /play/statistics/$1.php
^play/statistics/([a-z0-9-]+)/?$ /play/statistics/table.php?statistic=$1
Review if still used and recreate if so
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.