This WordPress plugin is not affiliated with Online Scout Manager in any way.
The Online Scout Manager (OSM) for WordPress plugin allows you to display programmes and events directly from OSM on your website. The plugin integrates with the OSM API to fetch and display data from your sections, ensuring an up-to-date representation of your scouting activities.
- Display section programmes and events using shortcodes.
- Manage sections, authentication, and cache directly from the WordPress admin.
- Dynamically retrieve and cache data from OSM for optimal performance.
- Download the latest release of the plugin from here
- Log in to your WordPress admin dashboard.
- Navigate to Plugins > Add New > Upload Plugin.
- Select the zip file and click Install Now.
- Activate the plugin.
To authenticate with the OSM API, you'll need a Client ID and Client Secret. Follow these steps to generate them:
- Log in to Online Scout Manager (OSM).
- Expand the Settings menu at the bottom of the page.
- Select My Account Details.
- Click Developer Tools from the menu on the left-hand side.
- Click Create Application.
- Provide a name for your application and click Save.
- The Client ID and Client Secret will be displayed once only. Make sure to copy and save them securely.
- Go to OSM Settings in the WordPress admin menu.
- Click on the Authentication tab.
- Enter your Client ID and Client Secret.
- Click Save & Authenticate to validate your credentials.
- Navigate to the Sections Enabled tab.
- Select the sections you want to enable by ticking the checkboxes.
- Click Save Sections. The plugin will automatically fetch and cache the current term for each enabled section.
- Go to the General tab.
- Verify that your enabled sections are listed along with their current term IDs.
- If needed, use the Purge Cache or Reset Configuration options.
Use the following shortcodes to display OSM data on your website, you'll be able to find the Section ID in the general tab of the settings menu:
[osm_programme sectionid="SECTION_ID" futureonly="true"]
- sectionid (required): The ID of the section to display.
- futureonly (optional): Set to
true
to show only future events. Default:false
.
Example:
[osm_programme sectionid="12345" futureonly="true"]
[osm_events sectionid="SECTION_ID" futureonly="true"]
- sectionid (required): The ID of the section to display.
- futureonly (optional): Set to
true
to show only future events. Default:false
.
Example:
[osm_events sectionid="67890" futureonly="false"]
-
General Tab:
- View enabled sections and their current term IDs.
- Purge cached data.
- Reset all plugin configuration.
-
Sections Enabled Tab:
- List all available sections retrieved from OSM.
- Enable or disable specific sections.
-
Authentication Tab:
- Enter and manage your OSM Client ID and Client Secret.
-
Advanced Options:
- Date Format: Customize the date format used in the plugin. Default:
d/m/Y
. - Time Format: Customize the time format used in the plugin. Default:
H:i
.
- Date Format: Customize the date format used in the plugin. Default:
The plugin caches the following data to reduce API calls:
- Sections: Cached for 24 hours.
- Current Term IDs: Cached for 24 hours per section.
- Programmes and Events: Cached for 24 hours per section and term.
Cached data is automatically refreshed when it expires.
If you need to reset the plugin:
- Navigate to the General tab.
- Click the Reset Configuration button.
- All authentication details, enabled sections, and cached data will be deleted.
Data is cached for 24 hours and is refreshed automatically when the cache expires.
This plugin is licensed under the MIT License. See the LICENSE file for details.
This plugin is not affiliated with Online Scout Manager. Use it at your own risk.