1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To combat forum spam, we are temporarily disabling the ability to create new accounts for the forums. Please feel free to open a support ticket through out client area with any support issues. You can also search the forums for answers to many questions.

displaying multiple months

Discussion in 'Customizations (Themes / Templates)' started by elliott, Apr 26, 2012.

Thread Status:
Not open for further replies.
  1. elliott

    elliott New Member

    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/forums/showthread.php?t=3375 and used the code presented there:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
    <?php $CSS=1; require("calendar/calendar.php"); ?> 
    <?php $OL=1; require("calendar/calendar.php"); ?> 
    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; 
    echo "</td>"; 
    echo "<td align=\"center\">"; 
    $mo = $curMonth; 
    $yr = $curYear; 
    echo "</td>"; 
    echo "<td align=\"center\">"; 
    $mo = $nextMonth; 
    $yr = $nextYear; 
    echo "</td>"; 
    echo "</tr></table>"; 
    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://americanheritagesocietyofgeorgia.com/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.
  2. Brian

    Brian EPC Developer Staff Member

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

    elliott New Member

    where do I get the plugin?
  4. elliott

    elliott New Member

    Okay, I found this page through a Google Search: http://docs.easyphpcalendar.com/source/Plugins/MultiCalendarGenerator.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?
  5. elliott

    elliott New Member

    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)
Thread Status:
Not open for further replies.

Share This Page