Simple Feed integration for your affiliate web site.

The following instructions 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.

Recent Discussions

03 Feb, 2012 08:20 PM
01 Feb, 2012 12:55 AM
27 Jan, 2012 09:26 PM
10 Dec, 2011 01:20 AM
29 Sep, 2011 01:07 PM