I need help refining my Calendar

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Thanks for your interest Pappnase,

I hope someone would figure it out and implement it into phpwcms.
I know Oliver is very busy with all kinds of tasks.
I don't want him to get involved with this project and add to his headaches.
Maybe DeXXus would take a look at it. :wink:
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Keith Devens has just released version 2 of his PHP Calendar.
http://keithdevens.com/software/php_calendar/
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

well I can not see that you can add event and stuff like that?
http://www.studmed.dk Portal for doctors and medical students in Denmark
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Did you look at his Weblog page?
http://keithdevens.com/weblog

You'll see the calendar on the right and articles on the left.
Each day has several article that are linked to a day on the calendar.
When you click on a day in the calendar, that day's articles are shown on the left.
Every time articles are posted, a link is made for that day in the calendar.

With all the new tags that Oliver has added, this should be very easy to do. (tags like: related, keywords and such)

My problem is, I don't know what steps I need to take to get this to work
Pappnase

Post by Pappnase »

Bijan Hemati wrote:Thanks for your interest Pappnase,

I hope someone would figure it out and implement it into phpwcms.
I know Oliver is very busy with all kinds of tasks.
I don't want him to get involved with this project and add to his headaches.
Maybe DeXXus would take a look at it. :wink:
Hello Bijan

I can't promise that i'am the one who implement this. :(
cos i am a 00 at php. :oops: :roll:

Pappnase :(
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

I'll tell you what, I've just started to read "Create Dynamic Web Pages Using PHP and MySql" by David Tansley.
When I'm finished with the book, I'll start to work on this. :)
Pappnase

Post by Pappnase »

wow great! i also read a php mysql book right now!*lol

wanna we made an contest!*lol

pappnase
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Sounds good.
See who finishes first! :D
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Here is a PHP Calendar script by Morgan Andersson.
Create a php file with this script, call it calendar.php.
You can call this file in a template, article or content, using {PHP:calendar.php} tag.
Result is a very clean calendar with today highlighted.
http://www.morgande.com/display.php?display=php
Last edited by Bijan Hemati on Fri 16. Jan 2004, 21:59, edited 1 time in total.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Greetings Bijan,
I see that you are well on your way to calendar "heaven". I admit to being too busy "right now" to give "fair" time to phpWCMS :roll:

There seems to be a shortage of "concise" or "flexible" calendar scripts that can easily adapt.

As a side note... there is another example, similar to KeithDevens, at the following link:
PHPCalendar v1.0
http://codegrrl.com/scripts/calendar/
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Thanks DeXXus for the link. I'll check that one too. I have downloaded a few others.
I'll let you know about them.
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

I have found a php events calendar program at http://www.softcomplex.com/products/php_event_calendar/ .
I have installed it on localhost and created a calendar, and I am able to view it in an html page outside of phpwcms. Here are the codes in html file.

Code: Select all

 (<?
include 'cl_files/calendar.php';
?>
<html>
<head>
</head>
<body>
<?
show_calendar(cc);
?>
</body>
</html>)

But when I try to include this external page inside a template in phpwcms, as a external file, (using this command "{PHP:TestCal.html}"), I get these errors.

Warning: include_ext_php(TestCal.html): failed to open stream: No such file or directory in c:\appserv\www\wcms\include\inc_front\front.func.inc.php on line 855

Warning: include_ext_php(): Failed opening 'TestCal.html' for inclusion (include_path='.;c:\php4\pear') in c:\appserv\www\wcms\include\inc_front\front.func.inc.php on line 855

Any idea?

Regards,
Bijan
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Hello my friend Bijan :D

This ~sounds~ like a simple pathing problem. your above example ~should~ work if:

--1. file TestCal.html is in the root folder of phpWCMS installation (i.e. try

Code: Select all

{PHP:GPL.html} or {PHP:./GPL.html}
to see what I mean)

--2. filename is case sensitive... so ensure it matches "actual" name to "called" name.

If your file is in a subfolder of phpWCMS root, such as "/phpwcms/scripts/" then:

Code: Select all

{PHP:scripts/TestCal.html} or {PHP:./scripts/TestCal.html}
should be correct.

Hope this helps. :)
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Hi DeXXus,

Its always so nice to hear from you! :)

Well, I checked the phpwcms root dir. and both files GPL.html and TestCal.html were ther. I used both methods of including the files on both html files. It works for GPL but not for TestCal. :?

Have you had a chance to download the Event Calendar and check it out yourself? It could be a useful tool! :)

Regards,
Bijan
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Bijan,
I am sorry that I did not look at the coding itself, more closely. I'm not sure why you aren't just "directly" calling a PHP file with these two lines of code? But, since your intention of "embedding" PHP code into a .html file has the right framework, what you should notice is ... the PHP "include" statement is ~outside~ the <body></body> tags and is "likely" not recognized in the proper context. I am not at a platform where I can check this right now, but you might try:

Code: Select all

<html> 
<head> 
</head> 
<body> 
<?php
include 'cl_files/calendar.php';
show_calendar(cc); 
?> 
</body> 
</html>
If the parameter for that "show_calendar" function is a filename, there ~may~ need to be a consideration for where "this" script -or- "that" file is located. Good luck!!
Post Reply