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

List Mode - Show Displayed Month
Old 10-25-2006, 08:42 AM   #1
mcfatema
Calendar User
 
mcfatema is offline
Join Date: Aug 2006
Posts: 7
Default List Mode - Show Displayed Month

I've got a nice one-page printable version of a TOC calendar working. Below the calendar I'd like to list the details of the events for the month that is shown, recognizing that the user can scroll forward a month or two. Is there any way to easily get the list mode to pick up on the displayed TOC month and list only the events for that month?

An example is at: http://scouts.tamatoledo.net/wolf_calendar.php
 

Old 10-25-2006, 09:47 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

You can reference the $mo variable to determine the month being displayed. If it's not set, it should display the current month.
__________________
-- Brian

Questions?

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

Old 10-25-2006, 09:53 AM   #3
mcfatema
Calendar User
 
mcfatema is offline
Join Date: Aug 2006
Posts: 7
Default

OK, that helps as I can now see what month is currently displayed. Any way to control the list mode display to correspond to that month also?
 

Old 10-25-2006, 01:13 PM   #4
mcfatema
Calendar User
 
mcfatema is offline
Join Date: Aug 2006
Posts: 7
Default

I tried blog list mode inside a loop setting $ev to each day of the month. Didn't quite do what I expected but I sure got a lot of output!

The code was something like this:

for ( $i=1; $i<32; $i++ )
{
$ev = myDateToJulian( $year, $month, $i );
// $showCat = "4|8|2|3|"; // wolf
$EPCBLOG=2;
$template="blog.php";
$DF = "l, F j, Y";
require ("calendar/calendar.php");
}
 

Old 10-25-2006, 01:15 PM   #5
mcfatema
Calendar User
 
mcfatema is offline
Join Date: Aug 2006
Posts: 7
Default

The result can be seen here:

http://scouts.tamatoledo.net/test.php
 

Old 10-25-2006, 03:35 PM   #6
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Right before the last } add this line

unset($displayedEvents);

But I think you will get better results out of the Listing mode instead of using half of the Blog mode.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 10-25-2006, 03:54 PM   #7
mcfatema
Calendar User
 
mcfatema is offline
Join Date: Aug 2006
Posts: 7
Default

Didn't appear to have any effect.

I agree that listing mode is what I'd like to use. However, having browsed the forums for a couple of hours now it appears that there is no way to get LIST mode to display anything other than today's events and those going forward.

Today is October 25. What I'd really like to see under my November calendar is just the list of events that occur in November (and forward). The problem I have is that in LIST mode today I'm still seeing the events for the last week of October...even though I'm looking at a November calendar.

Thanks for the suggestion. Any other solutions you can think of would be much appreciated.
 

Old 10-25-2006, 06:00 PM   #8
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Quote:
Originally Posted by mcfatema
Today is October 25. What I'd really like to see under my November calendar is just the list of events that occur in November (and forward). The problem I have is that in LIST mode today I'm still seeing the events for the last week of October...even though I'm looking at a November calendar.
If you're viewing November on the TOC calendar, you should only see November in the List Mode.

When I view the link you've provided I see it does display October, but also there is something very wrong with your template because the date in the list mode keeps repeating.

You may possibly have a corrupt file that's causing this, and it would most likely be in the functions directory. You may want to try uploading those files again and reverting your list mode template to make things work correctly.

Please let me know if you continue to have any issues.
__________________
-- Brian

Questions?

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

Old 10-25-2006, 08:50 PM   #9
mcfatema
Calendar User
 
mcfatema is offline
Join Date: Aug 2006
Posts: 7
Default

The repeating date was because I tried to use BLOG mode (part 2 only) and was attempting to set $ev repeatedly to each day of the target month.

I have now restored the code for the LIST portion to this:

<left><?php print "Month=".$mo; ?> TEST Events...</left><br>

<?php
$LIST=1;
$listDays=31;
$listEvents=10;
$DF = "D, M d";
$template="monthly.php";
require ("calendar/calendar.php");
?>

When I view November (or any other month) in the TOC calendar the LIST portion of my page still shows events beginning with the today (October 25) and forward.

For instance this link: http://scouts.tamatoledo.net/test.php?mo=12&yr=2006
shows the December calendar but the list is still from today forward.

What am I missing here? Can't imagine that any of my functions are corrupt...the only changes I've made since installation are in the css portion of the monthly.php template.
 

Old 10-25-2006, 09:12 PM   #10
mcfatema
Calendar User
 
mcfatema is offline
Join Date: Aug 2006
Posts: 7
Default

OK, I got it working. Process of elimination...I had to remove the $listDays line and now the listing does seem to keep pace with the TOC.

Thanks.
 

Old 10-26-2006, 09:35 AM   #11
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Glad you got it working!

Enjoy!
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 
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 and List Mode - How can I change the initial category displayed? m2m General Support 2 05-05-2006 03:52 PM
show two years in list mode scatchon General Support 1 11-30-2005 10:58 AM
List mode - show all past events for year neubeedoo Customizations (Themes / Templates) 3 11-01-2005 02:46 PM
Any way to make list mode function as "headlines" JamesC Customizations (Themes / Templates) 11 10-08-2005 04:03 PM
I'd Like to show Past Events in List Mode macdonut General Support 4 08-24-2005 10:01 AM



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