PDA

View Full Version : Events not displaying in Wordpress


godfathersoul
04-22-2008, 06:57 PM
I am having some trouble with the calendar set up. The calendar that I am using is here: http://bamboodancer.com/bamboo/eventcalendar/

It is placed inside of a wordpress blog. The calendar itself is embedded in the page template. Everything appears to be working fine from the looks of it (although the event that is displayed was posted in the wordpress post itself). However, when the event is clicked on a 404 Error page is displayed.

The proper info however can be seen here:
http://bamboodancer.com/bamboo/calendar/

While I have set up several of these calendars, I've never had this problem before. Can anyone tell me why the calendar is not displaying info properly in the post as it is supposed to?

Thanks!

ve9gra
04-22-2008, 09:32 PM
Just before calling the calendar, add the following $thisFile="/eventcalendar";

godfathersoul
04-23-2008, 02:28 AM
thank you for the quick response but I'm not sure I follow you and, if i did, i'm not sure it did what it was supposed to do.

To be clear:

The file structure is:
-Wordpress
---Blog
---Calendar

Pages show up as "http://www.SiteName.com/Wordpress/Page/" because of the way the drop down menus work and choosing various page parents. But that is another thing...

So when I made the addition of "$thisFile="/eventcalendar";" to the code such that:
<?php
$thisFile="/eventcalendar";
$EPCBLOG=1;
require ("calendar/calendar.php");
?>
I get a not found page. Putting the phpp code anywhere else results in a Not Found page.

But when i change "/eventcalendar" to "../calendar" I get, instead, this page:
http://bamboodancer.com/bamboo/calendar/?ev=2454576&mo=4&yr=2008
- a blank, unstyled page with the calendar and blog format, as it should show up on the Wordpress calendar page.

Suggestions?

ve9gra
04-23-2008, 07:05 AM
The goal is to get to this...

http://bamboodancer.com/bamboo/eventcalendar/?ev=2454576&mo=4&yr=2008

godfathersoul
05-12-2008, 05:07 PM
Hi,
I finally got back to this and...

The events do display now, but when the user clicks on the arrows of the calendar navigation to view other months, they are booted to an unformatted page that simply displays the default calendar display without any of the other website graphics. Why does this happen and how can i correct it? Thank you!

ve9gra
05-13-2008, 07:22 AM
Same as before. You need to set $thisFile="/eventcalendar"; before the small calendar is displayed.

godfathersoul
05-30-2008, 07:09 PM
Hi,
So while I've been moderately successful with the previous issues, what I find is the biggest issue is displaying other months.

The event calendar is:
http://bamboodancer.com/bamboo/eventcalendar
where "bamboo" is the root folder for Wordpress and "eventcalendar" is the calendar name. EPC is installed in "bamboodancer.org/bamboo"

however, when "next" and "prev" are clicked on, the URL changes to:
http://bamboodancer.com/eventcalendar?mo=6&yr=2008
- taking out the "bamboo" part.

Where/how can I change the basic structure of the next and prev buttons?

I would also like to add that I understand the way EPC works with the default permalink structure. The navigation and parent pages (and subsequent link structure) was set up before EPC was installed however.

The basic code for the prev and next buttons is:

<input name="epcprev" type="button" id="epcprev" value="<<" class="formButtons" onClick="location='/eventcalendar?mo=4&amp;yr=2008'" >
<input name="next" type="button" id="next" value=">>" class="formButtons" onClick="location='/eventcalendar?mo=6&amp;yr=2008'" >


so it seems to need "bamboo" inserted before "/eventcalender". I was unable to find where i could edit this. Suggestions?

godfathersoul
05-30-2008, 07:36 PM
scratch that entire part above...

I changed
$thisFile="/eventcalendar";
to read
$thisFile="bamboo/eventcalendar";

Thanks for making a great calendar. I know it wasn't intended to work with WP but it's great that it can be made to. Thanks again.