PatrickJ
04-30-2008, 11:43 AM
Hello,
today I've bought EasyPHPCalendar and now I've tried to install it in Wordpress (in the sidebar).
I've installed the calendar on the root directory in the folder calendar.
I've tried the following
TRY THIS:
1. In the file header.php, find the <body> tag and place this code JUST UNDERNEATH IT:
<?php $OL=1; require("calendar/calendar.php"); ?>
2. In the file sidebar.php, right under the line <div id="sidebar"> (or whatever that div is called in your template) add this code:
<div id="easyCalender">
<!-- ADD CITYDISH.PHP CALENDAR -->
<?php require("calendar/calendar.php"); ?>
<!-- END CALENDAR -->
</div>
This of course will add the calendar to the top of the sidebar. It should work. You can move it elsewhere. And depending on your template, you might have to alter the EPC CSS to adjust the size of the calendar.
Let me know if that works.
Mad Dog
And then comes the following error
Warning: require(../../../../calendar/calendar.php) [function.require (http://php.net/function.require)]: failed to open stream: No such file or directory in /users/phelps/www/wordpress/wp-content/themes/concrete/header.php on line 23
Fatal error: require() [function.require (http://php.net/function.require)]: Failed opening required '../../../../calendar/calendar.php' (include_path='.:/etc/php/lib') in /users/phelps/www/wordpress/wp-content/themes/concrete/header.php on line 23
Can anybody help me please I don' know what does it mean.
Thank you very much!
today I've bought EasyPHPCalendar and now I've tried to install it in Wordpress (in the sidebar).
I've installed the calendar on the root directory in the folder calendar.
I've tried the following
TRY THIS:
1. In the file header.php, find the <body> tag and place this code JUST UNDERNEATH IT:
<?php $OL=1; require("calendar/calendar.php"); ?>
2. In the file sidebar.php, right under the line <div id="sidebar"> (or whatever that div is called in your template) add this code:
<div id="easyCalender">
<!-- ADD CITYDISH.PHP CALENDAR -->
<?php require("calendar/calendar.php"); ?>
<!-- END CALENDAR -->
</div>
This of course will add the calendar to the top of the sidebar. It should work. You can move it elsewhere. And depending on your template, you might have to alter the EPC CSS to adjust the size of the calendar.
Let me know if that works.
Mad Dog
And then comes the following error
Warning: require(../../../../calendar/calendar.php) [function.require (http://php.net/function.require)]: failed to open stream: No such file or directory in /users/phelps/www/wordpress/wp-content/themes/concrete/header.php on line 23
Fatal error: require() [function.require (http://php.net/function.require)]: Failed opening required '../../../../calendar/calendar.php' (include_path='.:/etc/php/lib') in /users/phelps/www/wordpress/wp-content/themes/concrete/header.php on line 23
Can anybody help me please I don' know what does it mean.
Thank you very much!