Willa
Junior Member
Posts: 5
Registered: 9/10/2003
Member Is Offline
|
| posted on 9/10/2003 at 10:02 PM |
|
|
Unable to view calendar on my page
When I run the page at http://purplefreak.com/calendar.html I get the following
errors:
Warning: Failed opening './files/db.php' for inclusion (include_path='./:/usr/local/lib/php') in
/home2/freak/purplefreak-www/calendar/files/calendar.php on line 37
--------------------------------------------------------------------------------
Fatal error: Cannot instantiate non-existent class: db_access in /home2/freak/purplefreak-www/calendar/files/calendar.php on line 40
This is the code I have in the page:
Right after </head> I have ths:
<? include 'calendar/files/calendar.php'; ?>
In the body I have this:
<? show_calendar(PurpleFreak); ?> <b>Test Text</b>
<? show_event($CLd,$CLm,$CLy,PurpleFreak); ?>
I'm scared to play around too much more and break the part that actual works (control panel) Any ideas?
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 9/11/2003 at 06:58 AM |
|
|
You should set the following values for variables in calendar.php file:
$_path_to_calendar = '/home2/freak/purplefreak-www/calendar/files/';
$_path_to_calendar_img = '/home2/freak/purplefreak-www/calendar/files/img/';
$_WEB_path_to_calendar_img = 'http://purplefreak.com/calendar/files/img/';
$_path_to_data = '/home2/freak/purplefreak-www/calendar/files/data/';
|
|
|
Willa
Junior Member
Posts: 5
Registered: 9/10/2003
Member Is Offline
|
| posted on 9/12/2003 at 05:59 AM |
|
|
Nik, Thank you! That part works now :)
New issues.. unable to get events to display on the same page.
http://purplefreak.com/calendar.php is the page
Here is the code:
Top of page:
<? include 'calendar/files/calendar.php'; ?>
Body of page:
<table>
<tr>
<td valign="top"><? show_calendar(PurpleFreak); ?></td>
<td valign="top"><? show_event($CLd,$CLm,$CLy,PurpleFreak); ?></td>
</tr>
</table>
Events keep trying to open in a new window, but they have errors. I added a test event on the 20th.
| Quote: | Originally posted by nik
You should set the following values for variables in calendar.php file:
$_path_to_calendar = '/home2/freak/purplefreak-www/calendar/files/';
$_path_to_calendar_img = '/home2/freak/purplefreak-www/calendar/files/img/';
$_WEB_path_to_calendar_img = 'http://purplefreak.com/calendar/files/img/';
$_path_to_data = '/home2/freak/purplefreak-www/calendar/files/data/'; |
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 9/12/2003 at 09:18 AM |
|
|
To place calendar and events list on the same page you should set Templates Config ->Alternative URL -> Custom event list URL the same as URL
that contains calendar. In your case it will look like:
calendar.php?CLd=%d&CLm=%m&CLy=%y
variables CLd=%d&CLm=%m&CLy=%y are required, Target should be set to _self.
|
|
|
Willa
Junior Member
Posts: 5
Registered: 9/10/2003
Member Is Offline
|
| posted on 9/12/2003 at 02:56 PM |
|
|
Still having issues :(
Ok its still not working :( I'm really starting to feel stupid!
In the templ.php file I have the following under Custom Event List URL:
<input type="text" name="url" value="<?=$calendar.php?CLd=%d&CLm=%m&CLy=%y?>" class="inpt"
size="40">
and...
<input type="text" name="target" value="<?=$_self?>" class="inpt" size="40">
When I go back to http://purplefreak.com/calendar.php and click on my event on
the 20th, its still opening a new browser window and giving a 404 errror tht page doesn't exist.
It tries to open this page:
http://purplefreak.com/show.php?CLm=09&CLd=20&CLy=2003&c_num=PurpleFreak
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 9/15/2003 at 08:40 AM |
|
|
Please replace your changed templ.php file with the one from distribution package and our specialists will help you to configure it correctly.
|
|
|
Willa
Junior Member
Posts: 5
Registered: 9/10/2003
Member Is Offline
|
| posted on 9/16/2003 at 12:48 AM |
|
|
OK the original template file is online..so I need to email you ftp access or something?
| Quote: | Originally posted by nik
Please replace your changed templ.php file with the one from distribution package and our specialists will help you to configure it correctly.
|
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 9/16/2003 at 09:59 AM |
|
|
Our specialists have made necessary changes and your event calendar should work fine.
|
|
|
Willa
Junior Member
Posts: 5
Registered: 9/10/2003
Member Is Offline
|
| posted on 9/22/2003 at 02:29 PM |
|
|
Wow! How did they fix it without being able to edit my files? Thank you for whatever you did! :)
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 9/22/2003 at 02:49 PM |
|
|
Enjoy your event calendar, Willa! And thanks for the interest to our products!
Don't hesitate to contact us again if you have any other questions.
|
|
|
djbiachi
Junior Member
Posts: 3
Registered: 9/26/2003
Location: england UK
Member Is Offline
|
| posted on 9/26/2003 at 08:46 PM |
|
|
my calender wont show but i dont get error messages
Hi.
Ive fully installed the calendar
created my own
but when i put my calendar on my page it just wont show...
<?
include 'http://www.djbiachi.co.uk/cl_files/calendar.php';
?>
ive got that in my head section....
<center><font color="ffcc00" face="verdana" size="2pts"><b class="one"><u>Site
Calendar</u></b></font></center>
<p><?
show_calendar(Demo_horizontal);
?>
</p>
and that is the first item inside a table on my page.
but the calendar wont show...
any idea's?
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 9/30/2003 at 08:57 AM |
|
|
We've checked and your event calendar has worked fine. Do you still experience any problems?
|
|
|
djbiachi
Junior Member
Posts: 3
Registered: 9/26/2003
Location: england UK
Member Is Offline
|
| posted on 9/30/2003 at 10:23 AM |
|
|
Calendar still not showing...
Hi the Calendar still wont show on my homepage when i view it...
Ive left the code as it was but it still wont show....
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 9/30/2003 at 11:49 AM |
|
|
First of all you should name your page as php not as html. Then you should write include as the following:
<?
include './cl_files/calendar.php';
?>
|
|
|