GeorgeN
08-14-2009, 05:44 PM
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:
<div>
<iframe src ="/calendar/display.php" width="100%" height="400" frameborder="0">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
Works like a charm. :clap:
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:
<div>
<iframe src ="/calendar/display.php" width="100%" height="400" frameborder="0">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
Works like a charm. :clap: