Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2008-05-27 19:01:46

dave halliday
Member
Registered: 2008-02-29
Posts: 16

Re: Integrating a 3rd-party app into Textpattern: EasyPHPCalendar

Hi merz1

Thanks for checking the EasyPHPCalendar documentation but I had already done this.

I am going to bump this question over to their forums as the first line:

<txp:php>$CSS=1; require("calendar/calendar.php");</txp:php>
</head>

Is working… The $CSS=1; snippet calls the cascading style sheet into existence and this is definitely working. (Looking at the output HTML while in debug mode.)

It’s just the $OL=1; that is not.

I’ll post back here when I get it running.

Thanks!
Dave

Offline

#17 2008-05-27 20:49:11

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Integrating a 3rd-party app into Textpattern: EasyPHPCalendar

> It’s just the $OL=1; that is not.

Well, that was the main reason why I wanted to check the documentation because I didn’t want to end up clueless :)

Did you check the other calendar output modes?


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#18 2008-05-28 19:39:36

dave halliday
Member
Registered: 2008-02-29
Posts: 16

Re: Integrating a 3rd-party app into Textpattern: EasyPHPCalendar

DOH!

The answer is so simple that I feel a right fool…

You have this line in the <HEAD> of the page:

<txp:php>$CSS=1; require("path_to/calendar.php");</txp:php>
</HEAD>

And then you have TWO instances (with a variation) in the <BODY> of the page – this:

<txp:php>$OL=1; require("path_to/calendar.php");</txp:php>

to tell it that any calendar displayed on the page should have mouse-over enabled and then this:

<txp:php>require("path_to/calendar.php");</txp:php>

to actually display the calendar.

Works great and a big thanks to everyone who helped me with this!

Dave who is walking off muttering under his breath

Offline

#19 2008-05-29 10:26:16

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Integrating a 3rd-party app into Textpattern: EasyPHPCalendar

Good that the calendar works now as you had expected it to work :)

But to me the solution looks ugly. So for every instruction the calendar requires / must have a trailing require("path_to/calendar.php");?

Are those necessary two instances mentioned in the documentation? If not the calendar guys should update their installation instructions and/or develop a more elegant calendar call with parameters.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB