How do I integrate BTWB with my affiliate website?

Gym admins may place BTWB "feeds" on their affiliate websites for a more integrated service. Their are multiple feed options to choose from. Admins can access the feed by clicking on the gym drop-down menu in the header, then by clicking on the "feeds" link.

Feeds.png

You can choose from 6 different feeds. The "today" feed is our most popular. It will display the WODs you assigned and the results for them. Results are live to within 5-10 min.

Feeds_-_options.png

Blow are instructions on how to add a feed to your website. They assume that you have basic PHP and HTML skills, and knowledge of how to add content to your affiliate site.

Step 1: Download Files

http://beyondthewhiteboard.com/samples/feeds/simplepie.inc
http://beyondthewhiteboard.com/samples/feeds/btwb_atom.php

Step 2: Use Your Feed URL

Update line 5 of the btwb_atom.php with your gym's Today feed url. For example, http://beyondthewhiteboard.com/gyms/YOUR_GYM_ID.atom

$feed->set_feed_url('PUT YOUR FEED URL HERE');

After these files are updated, you need to upload them to your server so that their path is at the root of your site. (e.g. www.crossfitmytown.com/simplepic.inc)

Step 3: Include Code

The following script needs to be placed in the html of your page:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript">
  jQuery(document).ready(function() {
    jQuery("#btwb_atom").load("/btwb_atom.php");
  });
</script>

Include the following code in your html where you want the wod(s) and results to display:

<div id="btwb_atom"></div>

Please let us know if you run into any problems or have additional questions.