adding 3rd party php coding to a template ?data feed?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
edwin jeffords

adding 3rd party php coding to a template ?data feed?

Post by edwin jeffords »

Okay heres the deal.  Im building a sports handicapper website.  The cms is configured and templates built, etc.

Our data (lines, game matchups, etc) comes from a 3rd party data feed. I assumed I could add the code to a template and it would run.  Unfortunately, that was an incorrect assumption.

The code is below:


";
      echo "$data";
  } else {
      echo "System Configuration error.";
  }

?>


Seems simple enough, but it wouldnt run from within the template, so i created a function in cmsms and called it {feed}  This appropriately shows the data when the page is loaded.  You can see a version of this here:  http://www.thewinningadvantage.com/cms/ ... ernt_Lines

My problem is that the code refers to an external file (sportsdata.php)  so even though the above link looks correct, nothing works once you click on a link.  The navigation goes outside of the CMS and references this sportsdata.php page, which i have built with the same template.  But since this page is not part of the CMS, none of the call tags work such as {cmsmodule module='PHPLayers'} or {footer}, etc.

Any ideas.  This shouldnt be this hard, but I think Im making it hard on my self.

I basically just need the cms to recognize that code and use it for the content on certain pages.  ANY help would be appreciated.

Thanks

Edwin Jeffords
Locked

Return to “CMSMS Core”