View Full Version : Filter click to homepage and a formatting issue
RLSinOP
11-25-2009, 07:39 PM
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
ve9gra
11-25-2009, 10:20 PM
Problem 1: try to add this just before the require for the filter $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.
RLSinOP
11-26-2009, 01:13 AM
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
RLSinOP
11-26-2009, 01:21 AM
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.
ve9gra
11-26-2009, 04:58 PM
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
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.
RLSinOP
11-28-2009, 10:21 AM
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/?showCat=4&Submit=Filter&mo=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?
ve9gra
11-29-2009, 08:56 AM
I guess this post (http://www.easyphpcalendar.com/forums/showthread.php?t=9724&highlight=%24thisFile) should get you there... It's the exact same situation.
RLSinOP
11-29-2009, 11:15 AM
Any idea how to do this Gervais? Sorry - I wish I knew how to direct a <form> to post, but I don't. Any help would be very much appreciated.
Thanks again,
!! Forget it - I figured it out - here's the <form> code from the filter.php file:
<form action="/?page_id=329" method="post" name="FilterForm" id="FilterForm">
ve9gra
11-29-2009, 07:24 PM
I hope this fixed your problem... And I should have expanded on the details, sorry.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.