Page 2 of 3
Posted: Sat 10. Jan 2004, 06:11
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.

Posted: Sun 11. Jan 2004, 01:11
by Bijan Hemati
Keith Devens has just released version 2 of his PHP Calendar.
http://keithdevens.com/software/php_calendar/
Posted: Sun 11. Jan 2004, 01:24
by frold
well I can not see that you can add event and stuff like that?
Posted: Sun 11. Jan 2004, 02:27
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
Posted: Sun 11. Jan 2004, 08:49
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.

Hello Bijan
I can't promise that i'am the one who implement this.
cos i am a 00 at php.
Pappnase

Posted: Sun 11. Jan 2004, 20:16
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.

Posted: Sun 11. Jan 2004, 22:47
by Pappnase
wow great! i also read a php mysql book right now!*lol
wanna we made an contest!*lol
pappnase
Posted: Mon 12. Jan 2004, 01:19
by Bijan Hemati
Sounds good.
See who finishes first!

Posted: Mon 12. Jan 2004, 22:50
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
Posted: Tue 13. Jan 2004, 01:53
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
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/
Posted: Tue 13. Jan 2004, 17:47
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.
Posted: Thu 22. Jan 2004, 20:37
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
Posted: Fri 23. Jan 2004, 01:54
by DeXXus
Hello my friend Bijan
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.

Posted: Fri 23. Jan 2004, 02:42
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
Posted: Fri 23. Jan 2004, 07:49
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!!