Alan from Papercourt are you still lurking around on this forum?
It would be great if you could make available as you suggested - “If there were enough demand for this method, I could genericise my code and create a plugin.” - back in your response to this thread back in 2017!
Hi Alan,
Pleased to know you have found the new home of the Sailwave User Group forum. Sorry we lost you for a while.
The forum was rehosted and reworked by Jon due to Yahoo making changes to its service, which were felt by Sailwave User Group and a lot of other users of Yahoo Groups not good.
The issue I’ve found with integrating SailWave results into the WordPress site is the layout. Sailwave results are better presented with as much screen area as possible whilst WordPress takes up area with headers, footers, sidebars etc. leaving a smaller area for content. And there’s thousands of different themes (layouts) which can be changed at the click of a mouse, giving different look and feel to every website.
So I upload the Sailwave html files to our webserver and just add a link to the report. I’ve written other plugins but didn’t feel one for SailWave results would work for our site and theme.
Hi Pat,
I personally agree that integration with websites built using any CMS (Content Management System) like Wordpress and Jooma usually has frusrations. I think a better use of time would be to develop a custom Sailwave Template and/or Style so that the Sailwave HTML output has some similarity with the club CMS style look & feel.
Also most, if not all, CMS systems do not like to embed HTML pages that include Javascript that does not originate from within the CMS. This will mean that if Sailwave users try to use the publishing effects like highlighting of the 1,2 & 3 in each race or use the Tablesort, it will be stripped out. Often if you try to include event & club burgees they also get affected.
I am quite happy for Sailwave users to integrate the results they produce from Sailwave with their websites in what ever way they decide is best for them.
My two cents worth from many years of doing results for clubs, classes and international regattas.
Hi Alan,
Just taken a look at your post again because I might have to make results available on a Wordpress website. I notice looking at the results on Papercourt SC website that an old version v2-19-8 of Sailwave is being used, which is not compliant with RRS 2019-2020, having been released back in August 2015. The latest is v2-28-2.
Yes probably, obviously I can’t even go to the club house to check - but one issue we have is that a version was created that had a ‘supress errors’ button and I think that feature got lost in later releases. I don’t own a Windows machine so can’t check from home.
We need to suppress errors as we have 30+ races in a series with 18 starts of which only 4 or 5 starts are used regularly - so by the end of the series the PRO has to press skip errors 300 times - obviously it would be better just not to report a start with zero boats as a error as it isn’t actually an error ( for us ).
Hi Alan,
Just checked out the file you sent me using the version of Sailwave I am running in test and the “Suppress errors” button is still there. I have sent you an email.
I might be wrong but offhand I think there have been only two
substantive changes in the RRS related to scoring since 2001.
In 2005 the series tie-breaking rules changed but have remained the same
since then. Old = A8.2 & A8.3; new = A8.2.
In 2017 the calculation of the Scoring Penalty changed. Before that it
was always a percentage of boats entered. Starting in 2017 that was
changed to percentage of the score for DNF. The latest version of
Sailwave includes that change. But, if you never use the Scoring Penalty
then that won’t impact you. And, if you seldom use the Scoring Penalty
you could set the points by hand when entering the code. Note that the Z
Flag Penalty references the Scoring Penalty calculation so the
implication is somewhat wider than the Scoring Penalty alone.
There have been some non-substantive changes - specifically the “scoring
codes” have changed. Officially, the abbreviations in RRS A11 have the
status of “rules” and must be followed although many, many clubs ignore
that and use there own abbreviations (like OOD for Officer Of the Day)
that aren’t included in RRS A11. I don’t think that is significant since
abbreviations don’t effect the scores and thus a boat would not be
entitled to redress if the abbreviation is wrong but the score is not
effected. Technically, the NoR and SIs ought to say they are changing
RRS A11 but I personally think that is overkill and wouldn’t recommend it.
Locally, we use 2-9-7 because it is portable and doesn’t impact the
registry. I don’t think we’ve ever had a RRS 44.3 percentage Scoring
Penalty but we could easily use the “set the points by hand when
entering the code” method for those rare occasions. [The few times we
used the Scoring Penalty in RRS 44.3 the SIs defined the number of
places so the percentage calculations didn’t apply.]
Bottom line - I don’t think there is an issue with older versions except
for the Scoring Penalty calculations - older versions don’t give an
option to use “percentage of DNF score” as I don’t think anyone ever
used that concept before it came into the rulebook. [For the record, the
default rulebook Scoring Penalty only works with the default Low Point
System. With a typical high-point system DNF is 0 or 1 and any
percentage will round down to zero so there will be no penalty, which is
absurd. You need to address that in your NoR and SIs.]
I understand there are, however, other reasons why using a more recent
version of Sailwave might be a good idea.
I am new here. I am looking to integrate Sailwave results on a Wordpress website.
I understand how to use Sailwave somewhat and can publish results.
Where I get lost is choosing the best was to publish them. I have read that I can use FTP to publish them to my server, but how do I display these on the site? What is the code I need?
At the simplest level, set up a folder on your WordPress site and use ftp to copy the html files there.
For WordPress it is best to use a folder in wp-content/uploads as that won’t get overwritten or flagged by security software, then you can link to the individual html files
I forgot to mention, we once on the server you can also do other custom stuff like this auto scrolling version which puts the latest results up on the club TV monitor screen https://www.papercourt-sc.org.uk/psc-tv/
( The TV has a Raspberry Pie running it as a kiosk )
it builds menu entries based on files in a directory structure - the menu location is ‘hardcoded’ element. These link to results with get args - dir & base
there is a custom page template page-results.php that finds the file based on the query args and strips out the body content of the dom - as the theme is genesis the template uses genesis hooks