Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > Integration > Wordpress

Wordpress Information about integrating the calendar with the Wordpress Content Management System.

Closed Thread
 
Thread Tools Search this Thread Display Modes

WP sidebar integration
Old 08-12-2008, 10:41 AM   #1
elmalako
Calendar User
 
elmalako is offline
Join Date: Aug 2008
Posts: 8
Default WP sidebar integration

Hi folks, really hope you can help me here.....

I was finally able to activate the calendar as a plugin in wordpress.....and now I've got the calendar displaying at the top of every screen, and also results in this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/<snip>/html/GS/wp-content/plugins/calendar/functions/dateMarking.php:207) in /home/content/<snip>/html/GS/wp-login.php on line 214

In addition, I can't get it to integrate into the sidebar. Trying to add the php require statement(s) results in an error -- I'm obviously not specifying the correct location of the calendar.php file. (I'm modifying the sidebar.php within the theme I'm using (a subdirectory of the themes folder of wp-content). The calendar was installed into the plugins folder of wp-content. Although I've tried every iteration I can think of, I believe the path should be "../../plugins/calendar/calendar.php")

As a side note, I found that I had to change the commented section at the top of the calendar.php file in order for WP to recognize it as a plugin. Is it possible that the comment format of the other files is causing them to be unread by WP???

Thanks very much for any guidance, I've been banging my head against this for close to a week now. Very tired and sore, but determined to get this working!

-E




Can you please help me???
 

Old 08-12-2008, 06:09 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I think you misunderstood the instructions. I guess they're not really specific on what needs to be done. The WP plugin is the only thing that should be uploaded to /wp-content/plugins/.

The calendar should be installed to your html root directly. You should end up with /home/content/<snip>/html/calendar/.

By installing it at that location, you should be able to use the plugin without any modifications. Once you fix that, see if that doesn't also solve your issue with the Warning error. If it doesn't please provide a URL to your installation.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 08-15-2008, 10:00 AM   #3
elmalako
Calendar User
 
elmalako is offline
Join Date: Aug 2008
Posts: 8
Default

Brian,

Thanks, that was great clarification. I thought I needed to install the calendar into the wordpress installation but I was mistaken.

I'm not done, yet, though <g>!

I've got the calendar displaying in the sidebar where I want it, but there's no styling. When I change to TOC, the list displays with formatting, but when I switch back, the formatting disappears. The url is: montgomerygirlscouts at gmail dot org. Help, please?!?
 

Old 08-15-2008, 01:31 PM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

You need to make sure to add the $CSS line in your header.php file in your WP theme.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 08-15-2008, 02:30 PM   #5
elmalako
Calendar User
 
elmalako is offline
Join Date: Aug 2008
Posts: 8
Default

Yes, I did that in the header file. And the calendar shows up where I expect it to in the sidebar.

When I set a $var=1 I get formatting. When I don't set the variable (ie, leave the default setting), I get no formatting of the calendar itself. Only an event gets styled.

Any ideas?
 

Old 08-15-2008, 05:00 PM   #6
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

You really need to read how to integrate the calendar in WP again... Or maybe I should create a tutorial.

You need the $CSS line in the header.php file. Then you need the $OL line just inside of the <body> tag (which is more than likely also in header.php, but that depends on your theme). Then in the sidebar.php, that's where you'll finally add the calendar.

The $CSS line:
PHP Code:
<?php $CSS=1; require("calendar/calendar.php"); ?>
The $OL line:
PHP Code:
<?php $OL=1; require("calendar/calendar.php"); ?>
The calendar line:
PHP Code:
<?php require("calendar/calendar.php"); ?>
You NEED to have those three requires... having only one does not work.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrating EPC into a Wordpress sidebar Mad Dog Wordpress 31 10-03-2008 05:03 PM
Integration problem - can't change month indiza General Support 5 09-18-2007 09:32 PM
Does Joomla Integration Include The List Mode As Well As Toc? cberks Mambo/Joomla Integration 1 07-07-2006 05:16 PM
Calendar Integration...... bradphipps PHP-Nuke Integration 2 06-21-2006 07:48 AM



All times are GMT -4. The time now is 06:12 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |