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

Normal calendar with filter and List mode with specific catergories
Old 03-11-2009, 05:34 PM   #1
jcimb
Calendar User
 
jcimb is offline
Join Date: Mar 2009
Posts: 12
Question Normal calendar with filter and List mode with specific catergories

I have a 2-column layout. The first column to get displayed has List Mode specifying 2 categories. The second column has a normal calendar with filter option so user can specify.
The showCat for the List Mode is affecting the categories the normal calendar shows, so I put in
unset($showCat, $_REQUEST['showCat']);
but when the user selects the filter option on the normal calendar, the unset seems to be unsetting the user's selection.

So, I read another post about setting temporary variables, so I tried various versions of putting that before and after the List Mode, before and after the Normal mode, and latest try was to put it around the List Mode and Filter. None are giving the desired result.
Here is the page with just the unset: www.tallyholeesburg.com/index.php
and here is the page where I'm trying the temporary variables:
www.tallyholeesburg.com/test6.php

Where am I going wrong?
BTW, This is the BEST calendar - thank you! Never going back to the other free one I used to use.
Thanks in advance.
 

Old 03-12-2009, 07:50 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Basically, you want to save the variables before you unset them, and then reset them after. So since you want your list to skip those settings, this is how it would look

PHP Code:
$tempShowCat $_REQUEST['showCat'];
unset(
$_REQUEST['showCat']);
$LIST=1;
<... list 
variables ...>
require(
"calendar/calendar.php");
$_REQUEST['showCat'] = $tempShowCat
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 03-12-2009, 01:02 PM   #3
jcimb
Calendar User
 
jcimb is offline
Join Date: Mar 2009
Posts: 12
Smile

ve9gra,

At first it didn't work, but I replaced:
$_REQUEST['showCat'] = $tempShowCat;
with this line and it worked perfectly:
$showCat = $tempShowCat;

Thanks so much, I really appreciate the quick response.
This calendar is the best!
(I forgot to say that this is the paid version 6.3.27.)
 
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
List Mode Filter jerry General Support 1 01-30-2007 09:04 AM
Multi Calendar Mode....... bradphipps General 1 06-24-2006 03:11 PM
Filter and List Mode - How can I change the initial category displayed? m2m General Support 2 05-05-2006 03:52 PM
Plug-in filter for list mode MikeV General Support 12 03-24-2006 09:18 PM
Navigation for the list mode Andreas General Support 2 06-30-2005 04:45 PM



All times are GMT -4. The time now is 09:58 PM.


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 |