這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Strava Ride Details

外掛說明

Strava Ride Details allows you to display Strava ride details from a specific ride in your posts and pages using a shortcode. It uses v3 of Strava’s API, and uses OAuth for authentication.

The details displayed by default are:

  • Ride Name
  • Distance
  • Elevation Gain
  • Moving Time
  • Location

Each of the details can be turned on or off. The details are displayed in an unordered list so you can style the elements however you would like using CSS.

You can also choose to display units in mi/ft or km/m.

While Strava does offer their own embed widget, this plugin:

  • does not require an iframe
  • allows you to style the results to match your site
  • will work in responsive themes

By default all details are display using the shortcode [strava id="ride_id"], where ride_id is the string of digits at the end of the URL when viewing a single ride on Strava.

If you would like to remove a detail, just set it to false in the shortcode. For example, if you would like to show only the distance, then use this shortcode:

[strava id="ride_id" name="false" elevation="false" moving_time="false" location="false"]

Plugin Setup

  1. Log in to your Strava account and create an application [http://www.strava.com/developers]
  2. Make sure the redirect URI of your application is the same domain as your site
  3. Copy your client ID and client secret from your application into the Strava Ride Details settings page
  4. Click “Connect with Strava” on the settings page to generate an access token
  5. Save settings

Add to page/post

  1. Insert [strava id="ride_id"] in your post or page

螢幕擷圖

  • Adding the shortcode
  • Ride details styled using CSS

安裝方式

  1. Upload the folder strava-ride-details to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Strava Ride Details〉的開發相關工作。

參與者

將〈Strava Ride Details〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2.1

  • Added link to settings page on Plugins page
  • Added instructions for plugin setup on settings page

1.2

  • Updated to use version 3 of the Strava API.
  • Added settings page
  • Added authentication with Strava via OAuth.
  • Added ability to choose either English or Metric display units in settings.

1.0

  • Plugin released.