前言介紹
- 這款 WordPress 外掛「NMR Strava activities」是 2021-09-16 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 30 個安裝啟用數。
- 上一次更新是 2023-10-10,距離現在已有 571 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 5.2 以上版本才可以安裝。
- 有 1 人給過評分。
- 論壇上目前有 1 個提問,問題解答率 0%
外掛協作開發者
mirceatm |
外掛標籤
import | strava | virtual | activities |
內容簡介
將 Strava 活動匯入您的網站。使用 Webhooks 在 Strava 活動記錄後立即收到通知。
Strava Webhooks:https://developers.strava.com/docs/webhooks/
您需要設置 Strava API 應用程式:https://www.strava.com/settings/api
將以下shortcode:[strava_nmr] 添加到用戶面向的頁面或文章中。
必須使用該頁面/文章的地址進行設置:重新導向 URI(參見下文)
在管理介面上配置 NMR Strava 活動外掛程式:設定:Strava NMR
Strava 客戶端 ID - Strava API 應用程式的數字
Strava 客戶端密碼 - Strava API 應用程式的密碼
重新導向 URI - 在您的網站上使用縮略語 [strava_nmr] 的頁面/文章的地址。
Webhook 回撥 URL - 它是自動確定的,應為:https://your-website.com/wp-admin/admin-ajax.php?action=nmr-strava-callback&
注意結尾處的和符號:& 必須存在。
驗證令牌 - 在 Webhook 訂閱過程中使用的字串
按一下啟用 Strava Webhook
成功後,您將在插件狀態中看到以下訊息:
Strava webhook 訂閱 ID = 109463
這表示 Webhook 訂閱已經成功。
Strava 會為已連接其帳戶與您網站上的帳戶的所有 Strava 使用者推送活動數據。
接收的活動存儲在本地的 WordPress 資料庫中,並引發具有 Strava 活動數據的活動。
do_action('strava_nmr_activity_changed', 'update', $activity_data);
其中 $activity_data 是一個陣列。
佈景主題或其他外掛可能會聆聽此操作,並執行附加操作。
此外掛程式會在新、更改或刪除的活動上做出反應。
使用 nmr_strava_save_activity 過濾器與互動來決定導入哪些活動
function on_nmr_strava_save_activity($save_nmr_strava_activity, $activity_type){
// we only want to import running activities
if(strcasecmp('run', $activity_type) == 0
|| strcasecmp('virtualrun', $activity_type) == 0){
return true;
}
return false;
}
add_filter('nmr_strava_save_activity', 'on_nmr_strava_save_activity', 10, 2);
Strava 活動列表:AlpineSki、BackcountrySki、Canoeing、Crossfit、EBikeRide、Elliptical、Golf、Handcycle、Hike、IceSkate、InlineSkate、Kayaking、Kitesurf、NordicSki、Ride、RockClimbing、RollerSki、Rowing、Run、Sail、Skateboard、Snowboard、Snowshoe、Soccer、StairStepper、StandUpPaddling、Surfing、Swim、Velomobile、VirtualRide、VirtualRun、Walk、WeightTraining、Wheelchair、Windsurf、Workout、Yoga
使用以下shortcode可在任何頁面或文章中列出 Strava 收到的前100個活動: [strava_nmr_table]
如果您喜歡使用 NMR Strava 活動外掛程式並認為它很有用,請考慮捐贈。您的捐贈將有助於推廣和支持外掛程式的持續發展和更好的用戶支持。
隱私通知
此外掛程式會在主機上的資料庫中存儲從 Strava 收集的資料,其中可能包括提交者的個人資訊。
原文外掛簡介
Import Strava activities to your website. Get notified immediately after an Strava activity is recorded, using webhooks.
Strava webhooks: https://developers.strava.com/docs/webhooks/
You need to setup a Strava API Application: https://www.strava.com/settings/api
Add this shortcode: [strava_nmr] to a user facing page or post.
The address of that page/post must be used on setting: Redirect URI (see below)
Configure NMR Strava activities plugin on your admin interface: Settings: Strava NMR
Strava client id – number from Strava API Application
Strava client secret – secret from Strava API Application
Redirect URI – Address of a page/post on your website where the shortcode: [strava_nmr] is used.
Webhook callback url – it’s determined automatically, should be: https://your-website.com/wp-admin/admin-ajax.php?action=nmr-strava-callback&
Notice the ampersand: & at the end – it should be there.
Verify token – a string used in the webhook subscription process
Press Activate Strava Webhook
On success, you’ll see the message on Plugin status:
Strava webhook subscription id = 109463
it means webhook subscription worked.
Strava will push activity data for all Strava users that connected their account on your website with their Strava account.
Received activities are stored locally on your wordpress database, and an event with strava activity data is raised.
do_action('strava_nmr_activity_changed', 'update', $activity_data);
where $activity_data is an array.
A Theme or another Plugin might listen to this action and perform additional actions.
This plugin reacts to new, changed or deleted activities.
Determine what activites are imported by interacting with nmr_strava_save_activity filter
function on_nmr_strava_save_activity($save_nmr_strava_activity, $activity_type){
// we only want to import running activities
if(strcasecmp('run', $activity_type) == 0
|| strcasecmp('virtualrun', $activity_type) == 0){
return true;
}
return false;
}
add_filter('nmr_strava_save_activity', 'on_nmr_strava_save_activity', 10, 2);
There’s an additional filter called nmr_strava_save_activity_full that sends the entire data received from Strava as an array that functions like the one above.
List of Strava activities: AlpineSki, BackcountrySki, Canoeing, Crossfit, EBikeRide, Elliptical, Golf, Handcycle, Hike, IceSkate, InlineSkate, Kayaking, Kitesurf, NordicSki, Ride, RockClimbing, RollerSki, Rowing, Run, Sail, Skateboard, Snowboard, Snowshoe, Soccer, StairStepper, StandUpPaddling, Surfing, Swim, Velomobile, VirtualRide, VirtualRun, Walk, WeightTraining, Wheelchair, Windsurf, Workout, Yoga
You may list the first 100 or so activities received from Strava in any page or post by using this shortcode: [strava_nmr_table top="100"]
If you enjoy using NMR Strava activities and find it useful, please consider making a donation. Your donation will help encourage and support the plugin’s continued development and better user support.
Privacy Notices
This plugin stores data collected from Strava, which may include the submitters’ personal information, in the database on the server that hosts the website.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「NMR Strava activities」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | trunk |
延伸相關外掛(你可能也想知道)
BuddyPress Group Email Subscription 》這個強大的外掛程式允許使用者收到團體活動的電子郵件通知。每週或每日摘要皆可選擇。每位使用者都可以選擇如何訂閱他們的團體。, 請注意,此外掛需要 BuddyP...。
Plainview Activity Monitor 》Activity Monitor 追蹤您的部落格或網路中所有使用者的活動。您可以在全域資料表中查看整個網路中的活動,或者僅在您目前檢視的部落格中本地檢視這些活動。您...。
Rezgo Online Booking 》這個外掛完全免費使用,但需要有Rezgo帳戶。現在就試用Rezgo,體驗全球最佳的旅遊活動預訂平台。, Rezgo是一個基於雲端的軟體即服務預訂系統,可幫助旅遊、活...。
Understory 》### 總結:, Understory 的軟體解決方案幫助體驗主辦者提供出色的數位使用者體驗,協助他們在管理、預訂、付款、贈禮和行銷等方面做得更好。這提供了一站式服...。
The Travel Button® 》安裝我們的 WordPress 旅遊外掛,協助您的訪客以簡單直覺的方式找到所有可能需要的旅遊服務,以籌劃旅行。, The Travel Button® 簡單易安裝,是一個免費且有...。
Innovade Learndash Activities 》- LearnDash是一個出色的學習管理系統(LMS),它使您能夠有效地管理網上課程。- 如果您希望增強課程的參與度和互動性,您可能需要考慮添加更多主題類型並調...。
PAC Weekly Timetable 》此外掛提供定義活動並使用時間間隔進行區分的能力,稱為間隔。, 每個時間間隔由開始時間、結束時間和相關任務詳細資訊的描述來進行區分。, 因此定義的活動可...。
BuddyPress Group Wiki 》注意:此外掛需要 WPMU!, 這個外掛提供了簡單的群組維基功能,可在 BuddyPress 中使用。, 群組管理者可以建立群組維基和相對應的維基頁面。每個頁面都有設定...。
Activities 》Activities 是一個免費、輕量級的外掛,用於管理活動。, 它提供了易於使用的介面,用於管理網站上的活動和參與者。, 此外,此外掛支持多站點安裝。每個站點都...。
Runkeeper Recent Activities 》這個小工具可以顯示你在Runkeeper 上最新的活動。你可以設置顯示的活動數量和要顯示的數據(包括距離、速度、時間和消耗的卡路里)。這個小工具也可以通過使...。
Caperz 》這個外掛可以顯示您附近孩子們每天可以做的事情清單。目前它可以顯示您選擇的 ZIP 碼中心,距離 10 英里以內的最多 5 個活動。這些活動是從 Caperz API 中拉...。