Tag name:wordpress

Going static (Dec 2018)

For a variety of reasons I reckon it's time to convert the public facing version of my website to go to a static version. The reasons include:

  • After the suspension of En Garde there's no dynamic input to the site other than  my own (When I restart that campaign I will need to modify the hosting mechanism to provide the form processing - I'll cross that bridge when I get to it)
  • It'll make the site more secure (no WordPress admin on the public version of the site)
  • No more annoying emails from my web host encouraging me to upgrade from a shared host to a VPS due to reaching memory limits (presumably due to the wordfence plugin).

I'm using the Simply Static though I did have to handle some quirks due to the private server sharing the same machine as my fossil repositories and my popmail spam filter.

It should be noted that this post is also part of an experiment to see how the workflow of updating my website is going to go!

Change Log

13th October 2017 / No Comments on Change Log


Currently none.

Version 3.26.0

  • Save last order submit details

Version 3.24.0

  • Fix leaving/joining club

Version 3.13.0

  • Fix investments

Version 3.12.0

  • Add support for investments

Version 3.11.0

  • Fix locatioon @charset directive in stylesheets

Version 3.10.0

  • Remove migration code (for weapon expertise)

Version 3.9.0

  • Add support for automatically updating expertise

Version 3.6.0

  • Fix wealthy companions

Version 3.5.0

  • Version number scheme changes
  • Add support for battle outcomes

Version 20171115-1410

  • email address fixes

Version 20171114-1440

  • Bug fixes


  • Better admin


  • Bug fixes


  • Improved hints and checks


  • Sort out last_orders (move into own db table)


  • Add playhouses and admin support


  • Refactoring of the javascript


  • Various bug fixes


  • Initial Version

Last updated: January 1, 2018 at 15:52 pm

En Garde Plugin details

This plugin adds support for my En Garde game by:

  • adding a shortcode, enGardeCharacter, to allow a character table to be generated. Examples of use:
    [enGardeCharacter id="C"]
    [str is="9" initial="9"]
    [rapier is="12" initial="12"]
    [sabre is="12" initial="12"]
    [cutlass is="12" initial="12"]
    [con is="15" initial="15"]
    [end is="135 of 135" initial="135"]
    [ma is="1" initial="1"]
    [cash is="32" initial="44"]
    [allowance is="12" initial="0"]
    [regiment is="Royal Foot Guards, Private"]
    [club is="Hunter's"]
    [mentions is="1"]
    [stable has="1 horse"]
    [appointment is="Trooper, King's Escort"]
    [mistress is="Catherine de Borgonne"]
    [level is="11" initial="12"]
    [location is="In Paris"]
  • adding a shortcode to display a form to allow the submission of orders for a character. Examples of use:
    [enGardeOrderTemplate id="C"]

    The id used must match one of those from a character on the same page (the javascript used for validation needs to look up information from the table).

Version: 3.26.0

Author: David Vines

Last Updated:1st January 2018

Requires WordPress version: 4.0

Compatible up to: 4.9.1

License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Change Log: Details

Alexis Biography Plugin Details

This plugin adds the ability to insert an instance of Princess Alexis' Biography to a page. To do this it:

  • It adds a new shortcode that inserts the biography
    Examples of use:

    [alexisBiography /]
    Inserts an instance of the game.
Version: 3.11.0

Author: David Vines

Last Updated: 5th December2017

Requires WordPress version: 4.0

Compatible up to: 4.9.1

License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Ningxia theme

7th August 2016 / No Comments on Ningxia theme

I've been using the ming theme for quite a while, originally on its own and then with a child theme to fix some minor issues I had with the theme. However I'd now like to get the copyright notice correct in the sense that it should show the year of publication of the earliest page or post being displayed and the latest modification date of the page or posts being displayed. I'm therefore going to create a new theme based on the ming theme.

As the ming theme is licensed as GPL, I've attached my work to this page. You can use code in the attached files under the terms of the GPL 2.0 license.

Many thanks to Axiu, the author of the ming theme.

Change History

3.34.0 (Ningxia (from build 3.34.0))
Add support for static site generation (which disables both the search box and the adding of comments from the page/post itself
3.26.0 (Ningxia (from build 3.26.0))
Add fonts for the chronicle pages
1.3.0 (Ningxia (from build
Split out the liftoff! and EnGarde styles and page templates into a child theme - so Ningxia should be clean (which is also why its zip file has lost the build number from its file name - that seems to confuse wordpress!).
1.2.0 (Ningxia.
Added a print style
1.1.0 (Ningxia.
Moved the support for pages removing sidebars from being categories to a custom taxonomy
1.0.0 (Ningxia.
Original clone from the ming theme, incorporating the changes I made in my child theme to support my nested menu and categories for removing sidebars from pages

Menu woes (Aug 2015)

If you've recently tried to use my top navigation bar, you may have encountered problems with the sub-menus disappearing as you try to move the pointer down into the sub-menu. I'm still working on that (I know the change that caused the problem is that I'm now using a custom menu for the navigation rather than the default, but I haven't yet found a suitable fix.

Still this is a normal kind of debugging!

Cookie Policy

1st August 2015 / No Comments on Cookie Policy

This site uses cookies - small text files that are placed on your machine to help the site provide a better user experience. In general, cookies are used to retain user preferences, store information for things like shopping carts, and provide anonymised tracking data to third party applications like Google Analytics. As a rule, cookies will make your browsing experience better.

On this site, cookies are mainly used by WordPress itself so that it can determine where you are in the site and if, for example, you've logged on or not. The exception is a cookie used by the Cookie Consent question, which is stored if you say "No problem" so that it doesn't ask you again.

However, you may prefer to disable cookies on this site and on others. The most effective way to do this is to disable cookies in your browser. I suggest consulting the Help section of your browser or taking a look at the About Cookies website which offers guidance for all modern browsers.

Last updated: October 19, 2017 at 9:15 am

Converting to WordPress (Jan 2015)

I've recently redirected my website to a WordPress driven site. While the page generation is longer (the Feeds page is definitely longer to generate), I'm finding the CMS capability to be much better than hand editing my pages. WordPress has a relatively well thought out design and philosophy, so we'll see how it goes. I, of course, have added redirects for all the old pages.


Having found a theme that I like, I've had to create a child of it simply to fix the bugs in it 🙂

Change Log

20th January 2015 / No Comments on Change Log


  • Linking into the Spider Caves!

Version 3.35.0

  • Change the now version of Goodgulf's telescope to use the browser's time rather than the server's time. This allows the page not to change when using static site generation.

Version 3.26.0

  • Support a game date per genre rather than a single game date for a site
  • Indicate that the plugin will not support the Project Gutenberg style of post editing - at least not at this time

Version 3.11.0

  • Change to version numbering structure (the major version number indicates the numbering scheme in operation)
  • Correct the placement of @charset declarations in the stylesheet


  • Make the movement table vary based on Agility (rather than being fixed)
  • Add note for area and multiple hit weapons if used by the character.


  • Default language for new character is now that of the character's genre rather than Athionic.
  • Allow unlisted Intrigue skills


  • The plugin modifies searches so that all post types are included. This is now fixed so that it only affects the search, tag and category pages and not every query (including those on widgets on those pages)
  • A zero width space is used after the '/' character in the buttons for skills to improve word wrapping on the buttons


  • Character export on linrodeth characters is exporting the entire character array, not just the current character
  • Update compatible wordpress version to 4.4.2


  • Correct inheritance used for construction of the widget to the current (PHP7 supporting) idiom
  • Change the size of the box used for viewing and editing to 67% of the height of the viewport - this is much friendly for various display sizes and seems to help chrome on mobile devices to render the box correctly


  • Add modifier for extra opponents


  • Add documentation for the shortcodes (no functional changes)


  • Get the PDF to show the correct value for will


  • Skill plus/minus buttons now work
  • Skill list now appears in the correct place (rather than being underlaid beneath the rest of the page text


  • Performance issues on waylands resolved (conflict with the Infinite SEO plugin resolved)
  • Multiple character sheets can be added to a single page (e.g. search or tag results)
  • Excerpts now generated if not overridden by a manual excerpt.
  • Summary pages added to PDF
  • Player name added to slug at the bottom of each PDF page


  • Update metadata


  • Added support to display the night sky


  • Stopped the newSkills growing on each edit

Version 0.9.9 (23rd September 2014)

  • Fix date display (particularly for Luna Romana).

Version (8th July 2014)

  • Minor bug fix to the performance tables (there was a long tail to the left of the table, now removed).

Version 0.9.8 (2nd July 2014)

  • Changing the birthdate moves all periods along (shrinking the last period).
  • Added (simple, combat-related) Equipment page.
  • Added printing.

Version 0.9.7 (8th June 2014)

  • Refactoring the javascript code.
  • Only increment the version number/edit date of the character on save or upload.

Version 0.9.6 (7th June 2014)

  • Fix game date display when changing genres (or loading old characters with a non-Linrodeth genre).
  • Hide the JSON panel by default.
  • Allow editing of the attributes (disabled by default).
  • Allow the addition of unknown skills.

Version 0.9.5 (6th June 2014)

  • Upload button added - note this POSTs to process.php to the host that delivered the page.
  • Fixed bug when the last period becomes shorter than 13 months (tried to disable buttons that didn't exist!).

Version 0.9.4 (5th June 2014)

  • Correctly disable ip adjust buttons.
  • Birthday locked once the stats are locked.
  • Genre locked once the stats are locked.
  • Added a stats reroll button (rather than forcing the user to page reload!). Obviously this disappears when the stats are locked.
  • Played with the layout a little - Still can't get the button to vertically fill their cell - this seems to be a CSS rendering limitation.
  • Locking the character would break adding a period.
  • Trying to change dates with a period with more than one interest caused a break.
  • Set the value of the name to that in the JSON.
  • Added Herbalism.
  • Fixed bug: When the title was updated, the next change would cause the Stats tab to reappear.
  • Disabled the -date buttons for a period when the period is already too short to allow the period to shrink by that much.

Version 0.9.3 (4th June 2014)

  • Added a schema version to the JSON to allow smooth upgrading of old characters for program updates.
  • Added a rules version to the JSON to hopefully allow upgrading of old characters when there are rules changes.
  • Added a character version and last edit date.
  • Changing interest points changed to <, > buttons instead of pull-down.
  • Periods now show the age range rather than the dates (the dates are available as tooltips on those ages).
  • Added a character description field.
  • Added a game date to the Stats panel, which anchors the end date of the last period.
  • Added the ability to lock the stats - once locked the only way to unlock it is via the JSON.

Version 0.9.2 (unreleased)

  • Changing the genre now updates the childhood fluency fields.
  • Added contemporary fluencies and literacies - no other contemporary skills at this time.
  • Added Math.floor to the morale calculation AND fixed the logic for the wound points (previously treated as having a con in the range 0-4!)).

Version 0.9.1 (3rd June 2014)

  • textarea (except for the JSON update) no longer need (or have) submit buttons.
  • A stat of 21.0 is now impossible (20.9 is still possible, if unlikely at 1 in 10,000).
  • Used Math.floor instead of Math.round(x-0.5).
  • Added Save and Load JSON buttons (These are local to the browser).
  • Added a Genre pull down.
  • Added a statement on the rule set used.

Last updated: December 22, 2018 at 10:02 am