Skip to content

Display event calendar from MotorsportReg.com on your Wordpress website

Notifications You must be signed in to change notification settings

MotorsportReg/calendar-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MotorsportReg Wordpress Calendar Plugin

Display a listing of motorsport events from MotorsportReg.com on any Wordpress website.

Looks like this...

MotorsportReg.com is an online event registration service for motorsport driving and social events. It is used by hundreds of car clubs, sanctioning bodies and race tracks across North America to organize driving schools, autocross, club and pro races, rally, rallycross, motorcycle, karting and social events. Organizers can use the service for free to streamline their event registration and membership management tools.

The only requirement for using our free plugin is to leave our link unedited at the bottom of the calendar listings that points back to MotorsportReg.com. Thank you!

Usage

There are two ways of embedding the MotorsportReg.com calendar in your Wordpress site:

  1. Embed it in any Post or Page using the Short Code:

Just put the following (including [ and ]) into a post or page on its own line and preview it:

[msr_calendar]

You can also customize the settings per-instance (for example, if you wanted to have discipline-specific pages):

[msr_calendar url="https://api.motorsportreg.com/rest/calendars/organization/{organization-id}?types={eventtype_id},{eventtype_id},{eventtype_id}"
              title="My Second Calendar"
              field_eventname=1
              field_organization=0
              field_venue=1
              field_venuecity=1
              field_eventtype=0
              field_eventdate=1]
  1. Use the PHP function in any theme template file:

For developers or hackers, you can also use the msr_calendar() function to embed the calendar into your theme with one simple function call.

<?php if(function_exists('msr_calendar'))
{
    msr_calendar();
}?>
  1. Configure in the WP Admin Once installed, you need to provide a URL to fetch your events from. Webmasters wishing to add an organization-specific list of events can use a URL to our API that looks like:
https://api.motorsportreg.com/rest/calendars/organization/{organization-id}

You can obtain your Organization-Id from your admin here. Install

Tested as far back as Wordpress 2.8 and as new as 6.4. Should be compatible with the latest and greatest. Please report here if you encounter issues: https://github.com/MotorsportReg/calendar-wordpress/issues

Plugin Development

If you would like to hack on the plugin itself, you can run everything locally using Docker.

Checkout the code and run:

docker-compose up

We auto-restore a database backup that includes two pages with sample calendar plugin configurations.

You can then access the running Wordpress site at http://localhost:84/

You can login to the admin at http://localhost:84/wp-admin/ with [email protected] and password LynhQVSM1Gyp%KZ51Z0KiVh5mvbN4oJlKgxH685Y#5pab@rCIJ@Be697%ZN

About

Display event calendar from MotorsportReg.com on your Wordpress website

Resources

Stars

Watchers

Forks

Packages

No packages published