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

Category Dropdown Filter & showCat Together?
Old 10-02-2010, 02:28 PM   #1
jeremyt
Calendar User
 
jeremyt is offline
Join Date: Feb 2008
Posts: 16
Default Category Dropdown Filter & showCat Together?

Hi,

When I try to use $showCat="11|10"; it works, but it disables the dropdown filter on my calendar.

Here's how I'm adding this:

<?php include("plugins/filter.php"); ?>

<?php
$TOC=1;
$showCat="7|11|10";
require ("calendar.php");
?>

Any advice?

Thanks!!
Jeremy
 

Old 10-03-2010, 09:40 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,907
Default

This really shouldn't be happening.

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

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

Old 10-03-2010, 05:27 PM   #3
jeremyt
Calendar User
 
jeremyt is offline
Join Date: Feb 2008
Posts: 16
Default

Sure, this is my paramter:
$showCat="7|11|10";

This is effectively filtering out category 12 in the default view but now the Filter dropdown control doesn't work.
http://www.redeemerhoboken.com/calendar/events.php

Thanks again,
Jeremy
 

Old 10-03-2010, 06:08 PM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,969
Default

That's normal. The filter uses $showCat to display a single category at a time... if you have $showCat defined in your code, it will override anything else (including the filter selection).

There's an easy way to set a default selection, and let the filter override it. Simply set $showCat this way

PHP Code:
if((!isset($_REQUEST['showCat'])) or ($_REQUEST['showCat']=="")) { $showCat="7|11|10"; } 
You should note that the filter will still show the category that you wanted to hide... I have a modified version of the filter plugin that respects your selection and only shows categories that you want. If you are interested in my plugin, use the link below to contact me.
__________________
-- 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
Category and Filter Question trinity0159 General Support 1 04-29-2010 07:15 AM
Category filter dropdown - any way to get color swatches in there? bunner bob Customizations (Themes / Templates) 2 02-09-2009 12:51 PM
How to have category filter show more than one category in dropdown. zaphod Customizations (Themes / Templates) 5 09-24-2008 06:31 PM
Don't Be Like Mike - and a Category question HoosierMike General Support 2 05-23-2006 09:42 AM
Filter and List Mode - How can I change the initial category displayed? m2m General Support 2 05-05-2006 03:52 PM



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