Description
This plugin is intended for associations and organizations that use the MyClub membership system and need to fetch data to display on their website. Examples of such data include calendars, news, and sections.
Please ensure that your server is running on PHP 7.4 or higher and your WordPress version is at least 6.4 to utilize this plugin fully.
Components
The components fetch objects from MyClub and store them in WordPress. These objects are retrieved continuously and automatically, but not in real time. You can choose to display the various components in different places on your website. The available components are:
* News
* Calendar
* Upcoming games
* Section description
* Sections
See the blocks below for more information.
This plugin loads a page for all sections that are present for the club in MyClub.
News
News from MyClub is imported as ordinary WordPress posts, so it can be shown by your theme and by other plugins just like posts you write yourself.
- Every news item gets the category “News” (“Nyheter” on Swedish sites). Club news also gets the category “Club news” (“Föreningsnyheter”). If “Add news categories for section news” is enabled in the settings, news for a section also gets a category with the name of the section.
- The image of the news item is added as the featured image of the post. The image text from MyClub is stored as the caption of the image in the media library and is shown below the image in the news blocks.
- The author from MyClub is stored with the post. It is shown in the news blocks and is used as the author name by your theme, since the imported posts are not written by a WordPress user.
- New news items are first created as drafts. They are published when their categories and featured image have been added, so that plugins that act when a post is published see the complete post. A news item with a publish date in the future is scheduled instead.
Appearance
All components are minimally designed to make them easier to customize and fit your website’s design. All headers, tables, images, and similar items have their own CSS classes, allowing you to style them according to your preferences.
Dependencies
The plugin has no external plugin dependencies. All requirements are bundled in the plugin itself. However we are using the following opensource library (which is included in the plugin):
* FullCalendar (v5.11.5), which can be seen here. All source to the plugin is available here. No data is being sent to the FullCalendar plugin website.
External services
This plugin connects to the MyClub member administration platform (https://member.myclub.se/) to fetch data. This is required for the plugin to work.
This service is provided by MyClub AB: https://www.myclub.se/
Privacy policy: https://www.myclub.se/integritetspolicy
Privacy
This plugin communicates with https://member.myclub.se/ to provide data for the plugin.
The following information is transmitted:
– Site URL
No personal user data is collected or stored. This is only sent when the data is being updated.
Can news be shared to social media automatically?
Yes. Plugins such as Blog2Social, which share a post when it is published, can be used with the imported news. A new news item is published only after its categories and featured image have been added, so you can let the sharing plugin decide what to share based on the category, e.g. “Club news” or the category of a section.
Caching
The plugin will try to clear cache on the following cache plugins for MyClub sections:
* Breeze
* Cache Enabler
* Hummingbird performance
* Hyper Cache
* LiteSpeed Cache
* SiteGround Optimizer
* Swift Performance
* WP Fastest Cache
* WP Rocket
* WP Super Cache
* W3 Total Cache
* NitroPack
* Redis or Memcache cache
For unsupported cache systems, please contact us to request integration.
Installation
To fetch data from MyClub, you must first install this plugin:
1. Login to your WordPress Dashboard
2. Go to Plugins -> Add New
3. Search for MyClub sections plugin
4. Install the MyClub sections plugin
5. Activate it.
6. Add your API key to the plugin settings.
You can generate an API key within MyClub under Productions and prices in MyClub. Please note that once the key is generated, you need to save it immediately and paste it into the newly installed plugin.
Once the plugin is installed with the API key, you can begin using it. The plugin consists of various components that can be added to any page via either Gutenberg blocks, Shortcodes, or section-specific pages that are designed using a template and then applied to all sections. For example, you can place a calendar at the top and news below it. This setup will look the same across all section pages, but the plugin dynamically determines which calendar to display based on the section currently being viewed.
Changelog
1.5.1
- Fixed a critical error on all pages, including the admin, after updating to 1.5.0. The new news author service couldn’t be found when the plugin was loaded.
1.5.0
- News items now show the author from MyClub. The author is shown in the news blocks and replaces the author name in the theme for news imported from MyClub.
- New news items are created as drafts and published when their categories and featured image have been added, so that plugins that act when a post is published (e.g. Blog2Social) see the complete post. Club news get the “Club news” category before they are published.
- Fixed the first news item for a new section getting the “Uncategorized” category instead of the section category.
- Fixed news with a future publish date being created again on every synchronization.
- Fixed news images without an image text not being imported. The image text is stored as the caption of the image in the media library.
- Fixed the club news block not using its default styling for the images and the “No news found” message, and the news block for the “No news found” message.
- Updated myclub/common-lib to 1.0.7.
1.4.1
- Fixed a JavaScript error that could stop the calendar and club calendar from being displayed when an activity contained a quotation mark.
- Activity information is now stored as plain text and escaped when it is displayed.
- Fixed backslashes being shown in activity descriptions in the block editor.
- Section pages are no longer treated as updated on every synchronization, which cleared the page caches unnecessarily.
- Updated myclub/common-lib to 1.0.6.
1.4.0
- Added subscribe button with platform-specific subscription modal to the section calendar and club calendar blocks and shortcodes.
- Add setting for calendar height.
- Upcoming activities block now shows games played today for the rest of the day.
- Upcoming activities block uses the site timezone instead of UTC when determining which games are upcoming.
- Fixed a PHP error that could occur when an activity was removed from a section page.
- Checked plugin for WordPress 7.0 compatibility.
1.3.3
- Updated layout of news blocks.
1.3.2
- Fix bug in calendar blocks.
1.3.1
- Add no activities message setting.
1.3.0
- Add support for limiting the amount of words in the news excerpt.
- Updated how modal dialogs are closed.
- Add help text to the settings page.
- Update the calendar item modal to include HTML in the description.
1.2.1
- Updated news excerpt handling.
- Updated php-lib version.
1.2.0
- Fixed handling of news images in the news block
1.1.4
- Updated news image handling to use 16/9 aspect ratio
- Fixed news handling for synchronization with the groups plugin
- Updated the calendar blocks fullcalendar version
- Fixed settings layout
1.1.3
- Fix missing import
1.1.2
- Fix missing import
1.1.1
- Fix version number
1.1.0
- Add support for options on calendar views
1.0.0
- Initial release