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: Unable to view calendar on my page
Willa
Junior Member

Posts: 5
Registered: 9/10/2003
Member Is Offline
posted on 9/10/2003 at 10:02 PM Reply With Quote
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?
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 9/11/2003 at 06:58 AM Reply With Quote

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/';
View User's Profile View All Posts By User U2U Member
Willa
Junior Member

Posts: 5
Registered: 9/10/2003
Member Is Offline
posted on 9/12/2003 at 05:59 AM Reply With Quote

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/';
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 9/12/2003 at 09:18 AM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
Willa
Junior Member

Posts: 5
Registered: 9/10/2003
Member Is Offline
posted on 9/12/2003 at 02:56 PM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 9/15/2003 at 08:40 AM Reply With Quote

Please replace your changed templ.php file with the one from distribution package and our specialists will help you to configure it correctly.
View User's Profile View All Posts By User U2U Member
Willa
Junior Member

Posts: 5
Registered: 9/10/2003
Member Is Offline
posted on 9/16/2003 at 12:48 AM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 9/16/2003 at 09:59 AM Reply With Quote

Our specialists have made necessary changes and your event calendar should work fine.
View User's Profile View All Posts By User U2U Member
Willa
Junior Member

Posts: 5
Registered: 9/10/2003
Member Is Offline
posted on 9/22/2003 at 02:29 PM Reply With Quote

Wow! How did they fix it without being able to edit my files? Thank you for whatever you did! :)
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 9/22/2003 at 02:49 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
djbiachi
Junior Member

Posts: 3
Registered: 9/26/2003
Location: england UK
Member Is Offline
posted on 9/26/2003 at 08:46 PM Reply With Quote
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?
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 9/30/2003 at 08:57 AM Reply With Quote

We've checked and your event calendar has worked fine. Do you still experience any problems?
View User's Profile View All Posts By User U2U Member
djbiachi
Junior Member

Posts: 3
Registered: 9/26/2003
Location: england UK
Member Is Offline
posted on 9/30/2003 at 10:23 AM Reply With Quote
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....
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 9/30/2003 at 11:49 AM Reply With Quote

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';
?>
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