Tag name:wordpress

En Garde Plugin details

This plugin adds support for my En Garde game by:

  • adding a shortcode, nGardeCharacter, 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"]
    [/enGardeCharacter]
    
  • 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: 20171013-1012

Author: David Vines

Last Updated:13th October 2017

Requires WordPress version: 4.0

Compatible up to: 4.8

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: 2.0.0.20160310-1800

Author: David Vines

Last Updated: 10th March 2017

Requires WordPress version: 4.0

Compatible up to: 4.4.2

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

1.3.0 (Ningxia (from build 2.0.0.20171024-1626)
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.2.0.0.20170614-1733)
Added a print style
1.1.0 (Ningxia.2.0.0.20160808-1454)
Moved the support for pages removing sidebars from being categories to a custom taxonomy
1.0.0 (Ningxia.2.0.0.20160808-1454)
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

To-Dos

  • Linking into the Spider Caves!

Version 2.0.0.20170728-0830

  • 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.

Version 2.0.0.20170717-1729

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

Version 2.0.0.20160808-1454

  • 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

Version 2.0.0.20160219-1028

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

Version 2.0.0.20160105-1700

  • 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

Version 2.0.0.20151103-1328

  • Add modifier for extra opponents

Version 2.0.0.20151017-1159

  • Add documentation for the shortcodes (no functional changes)

Version 2.0.0.20150906-0822

  • Get the PDF to show the correct value for will

Version 2.0.0.20150720-1423

  • 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

Version 2.0.0.20150426-1426

  • 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

Version 2.0.0.20150119-1114

  • Update metadata

Version 2.0.0.20150116-1034

  • Added support to display the night sky

Version 1.9.0.20150107-1800

  • Stopped the newSkills growing on each edit

Version 0.9.9 (23rd September 2014)

  • Fix date display (particularly for Luna Romana).

Version 0.9.8.1 (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: October 13, 2017 at 11:57 am

Get Elected Plugin Details

This plugin adds the ability to insert an instance of the Get Elected! game. To do this:

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

    [getelected /]
    Inserts an instance of the game.
Version: 2.0.0.20160310-1800

Author: David Vines

Last Updated: 10th March 2016

Requires WordPress version: 4.0

Compatible up to: 4.4.2

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