Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Customizations (Themes / Templates)

Customizations (Themes / Templates) Help with customizing the themes and templates. Post your own custom themes for others to enjoy.

Closed Thread
 
Thread Tools Search this Thread Display Modes

displaying multiple months
Old 04-26-2012, 10:03 AM   #1
elliott
Calendar User
 
elliott is offline
Join Date: Nov 2010
Posts: 10
Default displaying multiple months

I want to display small calendars for last month, this month, and next month all in one row. Then have navigation under them so they will go forward or backward one month at a time. You can see an example where that is being done at: http://nashvilleexcursions.com/events.php

Searching the forum I found how to display the 3 months in a row here: http://www.easyphpcalendar.com/forum...ead.php?t=3375 and used the code presented there:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<title>Calendar</title> 
<?php $CSS=1; require("calendar/calendar.php"); ?> 
</head> 

<body> 
<?php $OL=1; require("calendar/calendar.php"); ?> 
<?php 
import_request_variables("gp"); 
if (!isset($yr)) $yr=date("Y"); 
if (!isset($mo)) $mo=date("n"); 
$lastMonth = $mo - 1; 
$lastYear = $yr; 
if ($lastMonth == 0) { $lastMonth = 12; $lastYear--; } 
$curMonth = $mo; 
$curYear = $yr; 
$nextMonth = $mo + 1; 
$nextYear = $yr; 
if ($nextMonth == 13) { $nextMonth = 1; $nextYear++; } 

echo "<table cellspacing='0' cellpadding='35'><tr>"; 
$noNav = 1; 
echo "<td align=\"center\">"; 
$mo = $lastMonth; 
$yr = $lastYear; 
require("calendar/calendar.php"); 
echo "</td>"; 
echo "<td align=\"center\">"; 
$mo = $curMonth; 
$yr = $curYear; 
require("calendar/calendar.php"); 
echo "</td>"; 
echo "<td align=\"center\">"; 
$mo = $nextMonth; 
$yr = $nextYear; 
require("calendar/calendar.php"); 
echo "</td>"; 
echo "</tr></table>"; 
?> 
</body> 
</html>
Then it goes on to say: "Also, note the use of $noNav = 1;. You will need to use that to turn off the navigation beneath each calendar. Pretty messy if you don't."

I understand so far.

Question #1 now is how do I add back in navigation under the whole row of 3 calendars so they advance as in the example I linked you to above?

Question #2 is how do I make the event listing under the row of calendars, display the list of events for all three months represented by the 3 calendars showing.

Here: http://americanheritagesocietyofgeor.../calendar3.php
you can see where I am at so far. I want to get in the above two features before I start styling the colors and spacing.

Please go easy on me.... I only have a very small grasp of PHP and since this is called "EASY PHP CALENDAR", I am hoping it will indeed prove to be "easy" .... with your help, of course which I very much appreciate. I hate to admit it, but I need very specific instructions, please.
 

Old 04-26-2012, 10:15 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Did you try to use the multi-calendar generator plugin? This is what it is designed to do.
__________________
-- Brian

Questions?

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

Old 04-26-2012, 10:17 AM   #3
elliott
Calendar User
 
elliott is offline
Join Date: Nov 2010
Posts: 10
Default

where do I get the plugin?
 

Old 04-26-2012, 10:41 AM   #4
elliott
Calendar User
 
elliott is offline
Join Date: Nov 2010
Posts: 10
Default

Okay, I found this page through a Google Search: http://docs.easyphpcalendar.com/sour...rGenerator.htm

So, is this a plugin that I download somewhere and install in the file directory..... or do I just use the code presented on this page?

My apologies for sounding so dumb.

Do you have other plugins available that I may want to use as well..... how would I see a list of plugins available?
 

Old 04-26-2012, 11:10 AM   #5
elliott
Calendar User
 
elliott is offline
Join Date: Nov 2010
Posts: 10
Default

UPDATE:
Waiting on your reply, I decided to assume there was no "download/install" of a plugin..... but that I just needed to insert the code shown. Which I did it's now working correctly. Just need to go add the styling now.

(I'm just documenting all this here so that future noobs like me can see the answer and hopefully it will be helpful)
 
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
Displaying Months as Table Heading in List View cgrodriguez Customizations (Themes / Templates) 5 10-07-2009 10:45 AM
Displaying only events of previous months chspit General Support 10 01-28-2009 09:05 AM
Display of multiple months rosland Customizations (Themes / Templates) 4 11-08-2008 07:44 AM
Is it possible to display multiple calendar months next to each other? Robski Customizations (Themes / Templates) 2 01-11-2008 07:41 AM



All times are GMT -4. The time now is 06:17 AM.


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 |