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

Filter click to homepage and a formatting issue
Old 11-25-2009, 06:39 PM   #1
RLSinOP
Calendar User
 
RLSinOP is offline
Join Date: Nov 2009
Posts: 9
Default Filter click to homepage and a formatting issue

I'm having 2 problems and would greatly appreciate your help. I'm currently testing the EPC demo code and I think it's just what I need.

Please take a look at this Wordpress page/site I'm developing for a Church:
http://ww2.rschrock.com:8086/?page_id=329

I'm using a blank page with a custom template with code mostly from the demoTOC.php file.

Problem #1 - Clicking on the filter button takes me back to the home page. My paths (/calendar) work everywhere else - suggestions?

Problem #2 - When you mouseover the calendar table, do you see how the colors change (the weekend shading and category legend colors go to white)? I assume it's a table or theme attribute, but I don't know what it is.

Again, any help would be much appreciated
 

Old 11-25-2009, 09:20 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Problem 1: try to add this just before the require for the filter
PHP Code:
$thisFile "?page_id=329"
Problem 2: Try putting the $CSS line inside of the <head> section, and the $OL line just after the <body> tag. You can check out the WordPress integration tutorial on my site. I'm hoping that putting the things in the right order will stop the messing up that you get on the table.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 11-26-2009, 12:13 AM   #3
RLSinOP
Calendar User
 
RLSinOP is offline
Join Date: Nov 2009
Posts: 9
Default

Thanks Gervais,

That didn't seem to have any effect. I'm not a PHP developer, so I tried both:

<?php $thisFile = "?page_id=329"; require("calendar/plugins/filter.php"); ?>

and...

<?php $thisFile = "?page_id=329"; ?>
<?php require("calendar/plugins/filter.php"); ?>

neither seemed to have any effect.

Additionally, I moved the $CSS and $OL lines back into the header.php file. Here's a paste of a few lines:

<?php $CSS=1; require("calendar/calendar.php"); ?>
</head>
<body class="<?php mystique_body_class() ?>">
<?php $OL=1; require("calendar/calendar.php"); ?>

By the way, the Wordpress theme I'm using is Mystique
 

Old 11-26-2009, 12:21 AM   #4
RLSinOP
Calendar User
 
RLSinOP is offline
Join Date: Nov 2009
Posts: 9
Default

One more thing...

I removed all the table tags (<table> <tr> <td>) and now the problem of mouse'ing over the calendar, legend and list only effects the individual rows rather than the entire table.
 

Old 11-26-2009, 03:58 PM   #5
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

For some reason, the filter isn't picking up the current file... remove the $thisFile line, and lets try something else...

In its place, have the following (I'm also adding the code for the filter so you can see how to place it)
PHP Code:
<?php
ob_start
();
require(
"calendar/calendar.php");
ob_end_clean();
require(
"calendar/plugins/filter.php");
?>
As for the weird highlighting, it's not related to the calendar. Check out your other calendar and you'll see that it does the same thing. You must have some JS code or something that does that, but I haven't been able to find anything yet.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 11-28-2009, 09:21 AM   #6
RLSinOP
Calendar User
 
RLSinOP is offline
Join Date: Nov 2009
Posts: 9
Default

Gervais - I got the formatting issue resolved, it was a how table styles were being set in my theme's style.php file. So that's resolved. The problem with the filter continues, perhaps this will be helpful. When I execute the filter (select a category and click the filter button), here's the resulting URL it returns:

http://ww2.rschrock.com:8086/?showCa...11&yr=2009&ev=

I don't know exactly what's going on here, but I'm not sure this can be accomplished if the filter query that's trying to happen by this ?showCat function is within Wordpress. Is AJAX a potential solution?
 
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



All times are GMT -4. The time now is 03:50 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 |