Resource icon

Strava 1.1

No permission to download
Compatible XF 1.x versions
  1. 1.3
  2. 1.4
  3. 1.5
Visible branding
No
upload_2014-8-5_15-9-13.webp


Download and upload the Strava.php file to the library/MediaSites/ folder on your XenForo installation.

Media Site ID: strava
Site Title: Strava
Site URL: https://www.strava.com/
Match URLs:
Code:
#https://www\.strava\.com/activities/(?P<id>[0-9]+/embed/[a-z0-9]+)$#siU
Embed HTML: <see callback>

Advanced Options
Regular Expression Matching: check
URL Match Callback: MediaSites_Strava::extractParams
Embed HTML Callback: MediaSites_Strava::buildEmbed

On Strava, choose to share the run / cycle

upload_2014-8-5_15-12-32.webp


Get the embed on blog code

upload_2014-8-5_15-12-58.webp


Grab the src URL from there, as that is what you want to use for the Media site

eg
https://www.strava.com/activities/175747749/embed/417196849660173951c4f4444e0c57930f8127a2

upload_2014-8-5_15-14-12.webp
Author
MattW
Downloads
43
Views
807
First release
Last update

Ratings

5.00 star(s) 2 ratings

More resources from MattW

Latest updates

  1. Added Athlete Share

    Added the athlete share to use the summary for signatures This update allows you to use the...

Latest reviews

While I wish there was some way to automatically convert the native Strava Blog Embed code into the required syntax somehow, I am SO THANKFUL for this add-on! It allows our users to post maps of their bike rides within their posts on the board. So for now, this being the only method to do so, kudos on a job well done.
Thanks Matt - simple but very useful BB Code Media Site set-up for embedding Strava activities. Our Strava cyclists should love this :)
Back
Top Bottom