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 module to show events
Old 05-01-2005, 01:22 PM   #1
MackDude
Calendar User
 
MackDude is offline
Join Date: Apr 2005
Posts: 5
Default List module to show events

I can't seem to find this problem already posted.

I have installed the latest version (non-trial) into my website. It looks Great!

I have installed it so that at the top of the page it shows 2 calendars one for the current month and another for the following month. Right below the calendar the listing module displays the listings also (set to display 2 months).

Today, in the beginning of a new month, I noticed that the listing module is displaying 2 months worth of events, but starting with the month of the second calendar. Therefore not displaying any of the events for this month.

Any ideas on what I need to do?

The calendar can be seen at:
http://www.mackmixer.com/local.php

Thanks,
MackDude
 

Old 05-01-2005, 05:55 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

You should reset the $mo and $yr variables to the first month just before requiring the listings module.
__________________
-- Brian

Questions?

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

Old 05-01-2005, 07:57 PM   #3
MackDude
Calendar User
 
MackDude is offline
Join Date: Apr 2005
Posts: 5
Default

Thanks for the quick reply Brian.
I am VERY new....can you show me what the code would be like to reset the month and year?
Thanks again.

BTW. Great Product...Have recieved great feedback from it.
 

Old 05-01-2005, 08:38 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Just before $LIST="1"; add:

$mo--;
if ($mo==0) {$mo=12; $yr--;}
__________________
-- Brian

Questions?

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

Old 05-01-2005, 08:40 PM   #5
MackDude
Calendar User
 
MackDude is offline
Join Date: Apr 2005
Posts: 5
Default

Thanks Brian!
MackDude
 

Old 05-01-2005, 08:43 PM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

I just revised it and fixed a typo...
__________________
-- Brian

Questions?

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

Old 05-01-2005, 08:55 PM   #7
MackDude
Calendar User
 
MackDude is offline
Join Date: Apr 2005
Posts: 5
Default

I am getting a parsing error on the line where I added the code.

This is what I have.

<?php
$mo=$mo-1;
if ($mo==0) {$mo=12, $yr--;}
$LIST=1;
$listMonths = 2;
$DF = "D - M d";
$template="monthly2.php";
require ("calendar/calendar.php");
?>

did I do something wrong?
 

Old 05-01-2005, 09:00 PM   #8
MackDude
Calendar User
 
MackDude is offline
Join Date: Apr 2005
Posts: 5
Default

Worked like a Charm...
Thanks again.
MackDude
 
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
I'd Like to show Past Events in List Mode macdonut General Support 4 08-24-2005 10:01 AM
Using Multi-Calendar, Events Don't Show SierraMist General Support 9 06-23-2005 12:25 PM
list module doesn't list all events... hazonweb General Support 2 04-14-2005 04:34 PM
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 12:10 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 |