Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: SSI Problems  (Read 286 times)
0 Members and 1 Guest are viewing this topic.
C0113c70r
Guest
« on: October 21, 2003, 01:29:00 AM »

The calendar script is great, but very plain looking, so I decided to provide it with the header and footer from my main site by using the following SSI directive on line 41 of the default.html template.

<!--#include file="../../../../../../includes/header.php"-->

My server contains a handler to parse .html files for Server Side Includes, and my site is primarily written in PHP.

Here's the problem: The immediate contents of the header.php file are being parsed and showing up on the calendar pages, but the contents of "nested" files included in the header.php are not being parsed.

My header file (site_root/includes/header.php) contains includes to other template files, such as <?php include "includes/leftmenu.php"?>  . These nested includes are not being parsed.

Any help you can give would be appreciated. And, just a suggestion: There is a plug-in distributed for free at hamweather.com that enables users to use SSIs such as the one described above with the HamWeather CGI-Perl script. If a similar plug-in could be developed for the CalendarScript, it would be great!

-- C0113c70r

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: October 21, 2003, 12:45:00 PM »

** The immediate contents of the header.php file are being parsed and showing up on the calendar pages, but the contents of "nested" files included in the header.php are not being parsed. **

From the CalendarScript documentation:

quote:
. Included files may contain Perl code that will be inserted into the template just as if it was there to begin with. Included files may not, however, include other files. If an include statement is contained in an included file, it will simply be ignored.

** My header file (site_root/includes/header.php) contains includes to other template files, such as <?php include "includes/leftmenu.php"?> . These nested includes are not being parsed. **

Since that is a PHP tag, I'm not surpised that it is not being executed by a Perl script.

** If a similar plug-in could be developed for the CalendarScript, it would be great! **

If you or anyone else can make such a thing for CalendarScript and want to make it available to others, I'll be more than happy to make it available at the Unofficial CalendarScript - Mods and Plugins site.

Dan O.

------------------

Logged
C0113c70r
Guest
« Reply #2 on: October 22, 2003, 10:53:00 AM »

Thanx for the response. I just may delve into the script I found at HamWeather and find some way to modify it so that it works with CalendarScript. Soundz fun (-:

-- C0113c70r

Logged
Pages: [1]   Go Up
Print
Jump to: