Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Installed but.....
Simple
Junior Member

Posts: 6
Registered: 1/5/2004
Member Is Offline
posted on 1/5/2004 at 08:15 PM Reply With Quote
Installed but.....


Hi

I've installed 'Event Calendar' and the demo works fine but I have a couple or three questions:

1) Insert the following PHP code in the beginning of the page:

<?
include 'path_to_calendar_dir_files/calendar.php';
?>

Where abouts at the begining of the page does it go? Are we talking very first thing or in the title tags?

2) then you can place one or several calendars inserting the following code properly:

<?
show_calendar(Your_calendar_name);
?>

I asume that this is placed where I want the calendar to appear in my page. Is the calendar name what I have named it when I've put a title in under 'New Calendar' and pressed create.

As you can see I'm not very well educated in this sort of stuff! I'm sorry if its dead basic stuff but I just can't get my head round it.

I need to because it looks an excellent piece of work.

Simon

PS If you think I'm miles off what I should be doing could you give me some very basic instructions, i.e. more basic than thos that come with the script!
View User's Profile View All Posts By User U2U Member
RM
Super Administrator

Posts: 24
Registered: 12/16/2003
Member Is Offline
posted on 1/6/2004 at 10:08 AM Reply With Quote

Hi!
Thank you for your posting!


The answers to your questions are the following:

1) You should add PHP script lines just before <html> tag on your page. Your HTML page will look likes Example 1 bellow:
Example 1:
<?
include 'path_to_calendar_dir_files/calendar.php';
?>
<html>
<head>
... Some header declartion ...
</head>
<body>
...
</body>
</html>

2) Yes, you are on a right way. You can replace 'Your_calendar_name' with a name of any calendar you have added on the Calendar Config page.
You can replace 'Your_calendar_name' string with any calendar name that you see in the Choose Calendar combo-box on the Calendar Config page.
To access Calendar Config page open http://<you_site>/<your_calendar_dir>/cl_file/auth.php page on your site in Web browser and make login process.

See Example 2 for more explanation:
Example 2:
Assume that in the combo-box Choose Calendar you have three calendars named:
CalendarOne
CalendarTwo
CalendarThree

Assume that you wish to display those calendars on single page all in one table. Your calling code for the calendars will look like:

<?
include 'path_to_calendar_dir_files/calendar.php';
?>
<html>
<head>
...
</head>
<body>

...
<table>
... Some rows ...
<tr>
<td>
<?
show_calendar(CalendarOne);
?>
</td>
<td>
<?
show_calendar(CalendarTwo);
?>
</td>
<td>
<?
show_calendar(CalendarThree);
?> </td>
<tr>
...
</table>
...
</body>
</html>
The result is a table with three calendars in a single row.
View User's Profile View All Posts By User U2U Member
Simple
Junior Member

Posts: 6
Registered: 1/5/2004
Member Is Offline
posted on 1/6/2004 at 11:28 AM Reply With Quote
Not quite there, yet!


Thanks RM, but I still havent got the hang of it!

I'm pretty sure that I've followed your instructions but I'm getting the following error now:

Fatal error: Call to undefined function: show_calendar() in /homepages/27/d66223920/htdocs/home/calendar.php on line 45

The address to the page that I'm testing it on is:

http://www.boltonwanderersfc.net/cal.php

The folder where I have put the script is called 'calendar'

Is there any chance you can have a look at my source code and see if there's anything obviously wrong.

Thanks

Simon

PS RM canyou check your u2u, Ta
View User's Profile View All Posts By User U2U Member
RM
Super Administrator

Posts: 24
Registered: 12/16/2003
Member Is Offline
posted on 1/6/2004 at 02:13 PM Reply With Quote

Try the following syntax where you call a callender:
<html>
...
<body>
...
<?
include 'path_to_calendar_dir_files/calendar.php';
show_calendar(Your_calendar_name);
?>
...
</body>
...
</html>
View User's Profile View All Posts By User U2U Member
Simple
Junior Member

Posts: 6
Registered: 1/5/2004
Member Is Offline
posted on 1/6/2004 at 02:55 PM Reply With Quote
File called 'calendar.php'


RM unfortunately this hasn't worked. I know this may be a silly question but should there be a file called 'calendar.php'?

This line suggests to me there should
<?
include 'path_to_calendar_dir_files/calendar.php';
?>

If that is the case then I have a missing file. I've tried downloading the script again from softcomplex.com but there doesn't appear to be a file of that name. Could this be the problem?

Thanks again

Simon
View User's Profile View All Posts By User U2U Member
stronghold12
Junior Member

Posts: 2
Registered: 1/7/2004
Member Is Offline
posted on 1/7/2004 at 11:49 AM Reply With Quote
no calendar.php


I have exact same problem. The distribution does not contain a file called calendar.php!

Can we download it somewhere? Or might there be other files also missing from the distribution?
View User's Profile View All Posts By User U2U Member
Simple
Junior Member

Posts: 6
Registered: 1/5/2004
Member Is Offline
posted on 1/7/2004 at 12:31 PM Reply With Quote

I have downloaded the script direct from SoftComplex and probably so have you, so I don't suppose we can get a better source.

Hopefully someone will read this and put us straight on way or the other.

I'm just glad to see that it's not just me having problems...
View User's Profile View All Posts By User U2U Member
RM
Super Administrator

Posts: 24
Registered: 12/16/2003
Member Is Offline
posted on 1/8/2004 at 10:54 AM Reply With Quote
calendar.php


Hi!

The calendar.php is not shipped within distribution package because it is created by installation process. To install the application correctly you should do the followings:

1. Make a backup copy of your data files of PHP Event Calendar(Data directory path. By default is cl_files/data)
2. Check if install.php, installer.dat, calendar.dat exist in your calendar directory. If no, copy them from distribution package to the calendar directory
3. Close ALL Web browsers with any page related to PHP Event Calendar to avoid session collisions
4. Run a new Web browser
5. Enter Enter into the address line of Web browser the address of install.php file (http://my_site.my_domain/my_calendar_dir/install.php)
6. Check and correct the directory paths according to "Installating Instructions" section of PHP Event Calendar documentation(http://www.softcomplex.com/products/php_event_calendar/docs/)
7. Click on "Install" button.
8. Check an existing of the calendar.php file in the directory "Files directory path" (cl_files by default).
9. Remove install.php, installer.dat, calendar.dat from your calendar directory.
10. Open administration area of PHP Event Calendar located at http://my_site.my_domain/my_calendar_dir/cl_files/index.php
11. Enter default admin name and admin password.
12. In left part of admin area in "New calendar" input field enter desired calendar name.
13. Click on "Create" button.
14. Check result on your page.

RM
View User's Profile View All Posts By User U2U Member
Simple
Junior Member

Posts: 6
Registered: 1/5/2004
Member Is Offline
posted on 1/8/2004 at 12:18 PM Reply With Quote
Finally there!!


The documentation SoftComplex provide shows:

<?
show_calendar(Your_calendar_name);
?>

When it should really show:

<?
show_calendar('Your_calendar_name' );
?>

Being fairly new to this sort of stuff I was following there instructions on the page and wasn't aware of the two ' '.

Sorted now, many thanks for your help.

Simon
View User's Profile View All Posts By User U2U Member
stronghold12
Junior Member

Posts: 2
Registered: 1/7/2004
Member Is Offline
posted on 1/8/2004 at 03:11 PM Reply With Quote
calendar.php file


Thanks for the response. When I read that the calendar.php file had to be created by the distribution, I realized what my problem was.

The install file attempts to chmod the cl_files directory so that the calendar.php file can be written. But my host is Windows-based, so the chmod command was not recognized.

I had my host make the cl_files folder writeable, and the installation proceeded just fine.

Thanks again for the prompt response!!
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free/Trial Script Download Free Download
Product Documentation Documentation
Documentation page
Change Log
Support Forum Support Forum
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004