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

Trying to load 2 instances of Calendar
Old 07-14-2009, 11:12 AM   #1
biotechguy0331
Calendar User
 
biotechguy0331 is offline
Join Date: Nov 2007
Posts: 6
Default Trying to load 2 instances of Calendar

Hi,

I am trying to load two instances of the calendar onto one page. One is a list of all of the events (in the main area) and the other is on the side of the page that says "our next event is...". The side where it says our next event is part of the website template and is consistent throughout the site.

When I do this for the general pages and the page that lists all of the upcoming events (filtered for all categories), it works great, but when I filter it to a specific category, it loads the next event as the next category specific event, which is not correct.

Does anyone know a way to resolve this so it continues to load the next event for all categories?

Thanks!!
 

Old 07-14-2009, 11:33 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

You'll need to do a little PHP programming to do this.

Before the list with all categories add this code:

<?php
$showCatX=$showCat;
unset($showcat);
?>

Then, after the calendar list code, add this:

<?php
$showCat=$showCatX;
?>

This should do it, but I didn't test it.
__________________
-- Brian

Questions?

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

Old 07-14-2009, 11:57 AM   #3
biotechguy0331
Calendar User
 
biotechguy0331 is offline
Join Date: Nov 2007
Posts: 6
Default

Thanks for the quick reply! That worked great on the pages that had the hard-coded category number in them. Any thoughts on what to do about the page that uses the drop down filter? The php code did not seem to have an effect.

Thanks!
 

Old 07-14-2009, 12:10 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Try changing all instances of $showCat to $_REQUEST['showCat'];
__________________
-- Brian

Questions?

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

Tags
filter, instances, multiple

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
running 2 instances of calendar on one site grunt2001c Customizations (Themes / Templates) 1 03-28-2009 11:57 AM
Feature query - mulitple calendar instances? webfoundry General 5 12-16-2008 04:18 PM
Slow calendar page load nology General Support 3 07-12-2008 12:25 PM
Upgrade from Demo - Calendar won't load BethatInsite Installation / Upgrade Questions 3 08-29-2007 04:06 PM
Possibilty of Multiple Calendar Instances IanHaskin General 5 07-07-2006 01:15 PM



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