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


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Drop Down Filter Question
Old 01-30-2007, 03:48 PM   #1
Bigguy
Calendar User
 
Bigguy is offline
Join Date: Jan 2007
Location: Georgia
Posts: 27
Default Drop Down Filter Question

Brian I am wondering is there a way to limit to what list as well as calendars that the drop down filter will effect. We have a list in a section of our site that is updating by the next 7 events. It is that way on all of our pages. I notice that when you are on the calendar page and select a category in the filter that it will also change the list that we have preset to show the next 7 events. Can we tell it somehow not to effect (filter) our preset list but just the calendar or the monthly event list at the bottom of our calendar?
 

Old 01-30-2007, 08:13 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Before the "require" code for the List Mode, insert:

PHP Code:
 <?php unset($showCat); ?>
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 01-31-2007, 11:13 AM   #3
Bigguy
Calendar User
 
Bigguy is offline
Join Date: Jan 2007
Location: Georgia
Posts: 27
Default

Brian I tried to insert the code as you gave, but I could not put the php tags in the code for it to work so this is what I did insted. It did not work. It will still let the filter change this list.

<?php $LIST=1; $listWeeks=52; $listEvents=7; $DF = "n/d/Y - l"; $template="sidelist.php"; unset($showCat); require ("calendar/calendar.php"); ?>
 

Old 01-31-2007, 11:34 AM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Can you post a link to your page?
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 01-31-2007, 12:18 PM   #5
Bigguy
Calendar User
 
Bigguy is offline
Join Date: Jan 2007
Location: Georgia
Posts: 27
Default

This is the test page that I have the filter on:
http://www.thesanctuaryofaugusta.org/calendar2.php

The Current Event list on the left side is what I do not want the filter to change.

Thanks
 

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

Since the list is parsed before the TOC, you'll have to make some adjustments. Replace the code for the list with the following:
PHP Code:
<?php
if(isset($_REQUEST['showCat'])) {
    
$epc_tempCat $_REQUEST['showCat'];
    unset(
$_REQUEST['showCat']);
}
$LIST=1;
$listWeeks=52;
$listEvents=7;
$DF "n/d/Y - l";
$template="sidelist.php";
require (
"calendar/calendar.php");
if(isset(
$epc_tempCat)) $_REQUEST['showCat'] = $epc_tempCat;
?>
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-01-2007, 11:26 AM   #7
Bigguy
Calendar User
 
Bigguy is offline
Join Date: Jan 2007
Location: Georgia
Posts: 27
Default

ve9gra I tried the code that you gave. It still will parse the sidebar list by the filter settings. Anything else to try?
 

Old 02-01-2007, 12:25 PM   #8
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Can you zip and attached your page? (Or, do so in a support ticket if you don't want to post it publicly.)
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 02-01-2007, 01:56 PM   #9
Bigguy
Calendar User
 
Bigguy is offline
Join Date: Jan 2007
Location: Georgia
Posts: 27
Default

Brian just sent it via support tickect.
 

Old 02-01-2007, 06:28 PM   #10
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I tested this on a server that has globals disabled... You might have to add unset($showCat); just after the other unset in my previous code...
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-01-2007, 08:10 PM   #11
Bigguy
Calendar User
 
Bigguy is offline
Join Date: Jan 2007
Location: Georgia
Posts: 27
Default

Got it working (Thanks Brian) and was wanting to know with this new code how to tell it to remove one of the categories from showing up. I did the advanced filter setting and it gave me the code: 5|3|4|1|

In this script where would I need to add this in as well as the other changes that you told me I needed to do.

I could not find anything showing how to just tell the list not to show a certain event. I had to ckick the ones I wanted to "show only" in the list and get this code. Looks as if I add a category later I will have to go back and redo my filter setting. Is this true also? If there is a way to tell the list not to show a certain category that would be better for me and would prefer that method.

PHP Code:
<?php 
$showCatTMP 
$_REQUEST['showCat'];
unset (
$showCat$_REQUEST[showCat], $_GET[showCat]);
$LIST=1$listWeeks=52$listEvents=7$DF "n/d/Y - l"$template="sidelist.php"; require ("calendar/calendar.php"); $_REQUEST['showCat'] = $showCatTMP?>

Last edited by Bigguy; 02-01-2007 at 08:13 PM.
 

Old 02-02-2007, 09:10 AM   #12
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

PHP Code:
 <?php 
$showCatTMP 
$_REQUEST['showCat'];
unset (
$showCat$_REQUEST[showCat], $_GET[showCat]);
$showCat "5|3|4|1|";
$LIST=1$listWeeks=52$listEvents=7$DF "n/d/Y - l"$template="sidelist.php"; require ("calendar/calendar.php");
unset (
$showCat$_REQUEST[showCat], $_GET[showCat]); $_REQUEST['showCat'] = $showCatTMP?>
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 02-02-2007, 11:01 AM   #13
Bigguy
Calendar User
 
Bigguy is offline
Join Date: Jan 2007
Location: Georgia
Posts: 27
Default

Thanks Brian that worked great.

I also want to tell you that the support on this issue has been outstanding. Looking forward to all the new things that are to come.
 
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
filter drop box question Joonstar Customizations (Themes / Templates) 1 07-04-2006 09:35 AM
Filter and List Mode - How can I change the initial category displayed? m2m General Support 2 05-05-2006 03:52 PM
filter drop down list meir General Support 4 11-16-2005 10:58 AM
Where is the "Advanced Filter screen" dan_cameron General Support 1 09-02-2005 06:33 PM
Catagory Filter Drop Down on Calendar sjbrownie General 3 06-22-2005 03:12 PM



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