Integration into Drupal redux
iFrame to the rescue . . . After reading the original 'Integration into drupal' thread, my heart sank, since I had already paid for Easy PHP Calendar, and I had no intention of giving up Drupal for my site. Some HTML purists may shun the idea of using an iFrame within Drupal, but setting one up was pretty darned easy, and it overcame all the issues I was having trying to run EPC on a Drupal node.
I simply created a PHP file, which I decided to call display.php, and I dropped it into my /calendar/ directory. That file contains all the necessary pieces of EPC according to the documentation, but note that I removed the /calendar/ piece of each require line since the file was in that directory.
Then I put this code on the node page I had created:
<iframe src ="/calendar/display.php" width="100%" height="400" frameborder="0">
<p>Your browser does not support iframes.</p>
Works like a charm.
Last edited by GeorgeN; 08-14-2009 at 05:46 PM.