Giter VIP home page Giter VIP logo

jazzsequence / games-collector Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 3.62 MB

A WordPress plugin to catalog all your tabletop (or other) games in your WordPress site and display a list of games in your collection.

License: GNU General Public License v3.0

PHP 87.60% JavaScript 9.42% Shell 2.19% CSS 0.37% SCSS 0.42%
wordpress tabletop-games wordpress-plugin hacktoberfest games-collector

games-collector's Introduction

Games Collector

Build Status Scrutinizer Code Quality License: GPL v3

Contributors: jazzsequence
Donate link: https://www.paypal.me/jazzsequence/
Tags:
Requires at least: 4.4
Tested up to: 5.2.4
Stable tag: 1.3.4
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Demo: https://jazzsequence.com/games/

Description

Catalog all your tabletop (or other) games in your WordPress site and display a list of games in your collection.

You can checkout a live demo of the plugin (with some custom CSS added) on my blog.

Installation

Manual Installation

  1. Download the latest version from the Releases page.
  2. Unzip and upload the entire /games-collector directory to the /wp-content/plugins/ directory.
  3. Activate Games Collector through the 'Plugins' menu in WordPress.
  4. Create a new page, name it whatever you like, and add the shortcode to the page content to display your games list: [games-collector].

Frequently Asked Questions

Screenshots

Games Collector new game screen

Games Collector admin

Games Collector add from BGG

Games Collector Gutenberg block

Changelog

1.3.4

  • use the jQuery implementation of Isotope

1.3.3

  • require isotope as a dependency for our isotope loader

1.3.2

  • Update version for new Composer build

1.3.1

  • Uses composer for dependencies and updates paths

1.3.0

  • Added first Gutenberg block! Now you can add your games list in Gutenberg rather than using a shortcode. More Gutenberg blocks to come.

1.2.0

  • Added integration with Board Game Geek API. Games can now be added by searching BGG for matching titles and information imported and automatically added to new games.
  • Fixed an issue where games with an indeterminate max number of players was displaying a 0 value (e.g. 2 - 0 players) and combined that with games with an unrealistically large number of players (e.g. 2 - 99 players) to display {{min_players}}+ players e.g. 2+ players.
  • Refactored the gc_number_players filter to only filter the actual number of players and added a gc_number_players_output filter which can filter the entire output (what gc_number_players previously did).
  • Fixed an issue where only the highest difficulty was displaying in the dropdown.
  • Fixed a display issue where games that can only be played with a specific number of players were still displaying the min/max player numbers. Changed to just display the number of players, e.g. 2 players instead of 2 - 2 players.
  • Dropped support for hhvm and php 5.x. Require minimum of PHP 7.0.
  • Scrutinizer CI integration for code coverage and quality checking.
  • Cleaned up some code as a result of Scrutinizer sniffs.

1.1.0

  • Add activation hook that will create a Games page with the shortcode on plugin activation.
  • Fixed some display errors and undefined notices on titles.
  • Added more filters for display output. Now buttons can be filtered individually and therefore disabled.
  • Switched to SVG images for game info icons which required some CSS changes.
  • Cleaned up spacing for game attributes.
  • Added Shortcode UI integration.
  • Added shortcode that allows you to display a single or multiple specific games using [games-collector-list gc_game="1,2,3"].

1.0.0

  • abstracted display elements into smaller functions and made them filterable
  • added capability of SVGs to be output in base64-encoded or raw svg XML markup

0.2

  • Integrated Travis CI
  • Added unit tests
  • Adjusted filters for sorting
  • Changed attribute link in game list
  • Changed ordering of games (alphabetically ascending)
  • Changed the post type to remove links to single game entry in admin
  • Added front end styles and SVG icons
  • Added shortcode
  • Added WordPress filters

0.1

  • First release

Upgrade Notice

0.1

First Release

games-collector's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar jazzsequence avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

games-collector's Issues

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Use SVG images for display icons

background image is okay for admin but for front-end should use the actual <svg>s so they can inherit the style of the theme.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Gutenberg single game block

Allow a single game to be added as a gutenberg block.

Ideally this would be some kind of autosuggest option but possibly, barring that, we could just assume the first matching result is correct and add that.

change public status?

Need to alter the display parameters of the post type so the only way you can view a game is in the list which will come from a shortcode.

Add API support

Should have at least read level API support so games can be exported into other applications. Write level support could be useful in the future for a dedicated app.

Remove "view game" link

When a new game is added, the default admin notification has a link to "view game". Since there are no game singles, we should filter this so it does not display the link.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Games with a specific number of players should not display range

Games that only can be played solo or with 2 players or otherwise have the same number of max players as min players should not display the range (e.g. 1 - 1 or 2 - 2).

screenshot 2018-05-31 11 01 04

If 1 player max, it should display either 1 player or Solo play only. All other numbers where max = min should display only the number of players (e.g. 2 players instead of 2 - 2 players).

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

remove slug/url edit field

Since there is no single post display, there should not be a link to the URL for the single post under the title.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Gutenberg support

Add single game and all games as a g'berg block. (All games block added as of 1.3.0)

Game images

Since 1.2.0, GC supports post thumbnails (which we get from Board Game Geek), but currently we have nothing to do with them on the front end. Need to scope out what support for game images looks like, but should include:

  • 1. Import image from BGG for existing titles (nice to have)
  • 2. Render game images on the front end
  • 3. Possibly provide a show/hide option for images

Notes to the above

  1. There should be some way to manually sideload images for a game. Not sure what this would look like, but it needs to be there and this feature is a no-go until importing from BGG is supported.
  2. This may require additional styling and/or tweaking with Isotope.
  3. I really don't want to add an options page. If we can avoid this without making the games list look like crap, that would be ideal.

fix CI

travis is failing but it's not test related

filters

live filter the list using fancy js to only display games matching certain criteria/filters (e.g. all cooperative games that are extremely hard)

Game link

meta field for more information about the game

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

abstract functional code into template tags

Display template is rather messy. There should be template tags/namespaced functions for all the meta which can then be filtered by developers (see #9) to clean up the display code.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

TypeError: plugin.$c.grid.isotope is not a function

Games list returns TypeError: plugin.$c.grid.isotope is not a function when any filter is selected.

	plugin.filter = function () {
		var filterValue = $(this).attr('data-filter');
		plugin.$c.grid.isotope({ filter: filterValue });
	};

allow for x+ players

If a min # of players is given but no max, display as 2+ (for example) and add to player filters

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - humanmade/coding-standards v0.7.0 requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
    - Root composer.json requires humanmade/coding-standards ^0.7 -> satisfiable by humanmade/coding-standards[v0.7.0].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Add filters

There should be WordPress filter hooks for all the things

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.