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

Displaying only events of previous months
Old 01-25-2009, 06:04 PM   #1
chspit
Calendar User
 
chspit is offline
Join Date: Jan 2009
Posts: 6
Default Displaying only events of previous months

Hi,
Can someone pls tell me how to display ONLY events of previous months in the List Mode of the Calendar.

Thanks in advance..
 

Old 01-25-2009, 06:41 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,879
Default

The List Mode shows events for the current month, or if displayed with the Normal or TOC Mode calendars, it shows events for the current displayed month.

If you can provide a link to your page where you want the List Mode, it would better help us understand the desired results and we can provide the code needed.
__________________
-- Brian

Questions?

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

Old 01-26-2009, 06:07 PM   #3
chspit
Calendar User
 
chspit is offline
Join Date: Jan 2009
Posts: 6
Default

The link is http://purebrassquintet.com/charlene/calendar.php.

The code I used is:
<?php require("calendar/calendar.php"); ?>

<?php
$LIST=1;
$DF = "d M Y | D";
$template="monthly.php";
$listYear = 2008;
require ("calendar/calendar.php");
?>

I have used the $listYear = 2008; so that at least I can display events of the previous year. However I want to display the events of all the previous years (the previous 3 years will be enough in my case).
 

Old 01-26-2009, 07:05 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,879
Default

What year would you like to start with?

And you are wanting all of these event to appear below the Normal Code calendar?
__________________
-- Brian

Questions?

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

Old 01-27-2009, 04:08 AM   #5
chspit
Calendar User
 
chspit is offline
Join Date: Jan 2009
Posts: 6
Default

I would like to start with the year 2005.

Yes it would be great if these events would appear below the Normal Code calendar.
 

Old 01-27-2009, 09:38 AM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,879
Default

Try changing this:

<?php
$LIST=1;
$DF = "d M Y | D";
$template="monthly.php";
$listYear = 2008;
require ("calendar/calendar.php");
?>

To this:

<?php
$mo=1;
$yr=2005;
$listWeeks=208;
$LIST=1;
$DF = "d M Y | D";
$template="monthly.php";
$listYear = 2008;
require ("calendar/calendar.php");
?>
__________________
-- Brian

Questions?

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

Old 01-27-2009, 08:09 PM   #7
chspit
Calendar User
 
chspit is offline
Join Date: Jan 2009
Posts: 6
Default

Hi Brian,
thanks for your replies, however unfortunately it did not work out yet. when i changed the code, only the events for the year 2008 appeared. (see link). there should be other previous events for 2007 which do not appear.
 

Old 01-27-2009, 09:05 PM   #8
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Try removing the $listYear line.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 01-28-2009, 04:43 AM   #9
chspit
Calendar User
 
chspit is offline
Join Date: Jan 2009
Posts: 6
Default

When I remove the $listYear line, the future events are displayed.
 

Old 01-28-2009, 04:58 AM   #10
chspit
Calendar User
 
chspit is offline
Join Date: Jan 2009
Posts: 6
Default

Ok, now I changed the $listWeeks line to $listMonths and it worked. thanks for putting me on the right track..

This is the code:

<?php
$LIST=1;
$mo=1;
$yr=2005;
$listMonths=48;
$DF = "d M Y | D";
$template="monthly.php";
require ("calendar/calendar.php");
?>

However, with this solution I have to manually change the $listMonths value and increment it every month for the previous events to be shown correctly.

Is there another way that works from "today" backwards, rather than from 4 years ago to "today"?
 

Old 01-28-2009, 09:05 AM   #11
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I created a 'procedure' that could allow you to do that. Another client of mine had asked me to make the calendar into a "video archive".

Here's the result - http://www.ahmadiah-idrisiah.com/video-list.php [I have no affiliation with the content of the site]. He got a list that goes backwards, up to a date he specified.

If you'd be interested in the same solution, please contact me (link below).
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
Closed Thread

Tags
events, month, previous

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
Show events for next 3 months on same page jeremyt Customizations (Themes / Templates) 2 02-10-2008 08:15 PM
Show events for all 3 months... strodick General Support 2 10-09-2007 11:21 AM
Events not Displaying in Blog + List View strobogirl Customizations (Themes / Templates) 4 05-23-2007 12:30 PM
Showing events in from previous and next months in TOC. charlotte21 General Support 9 03-30-2005 09:25 AM
Listing module not displaying one time events ethniccheese General Support 1 07-21-2004 01:24 PM



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