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

Twelve Month Calendar -- ver. 4.8 ONLY
Old 06-30-2004, 02:10 AM   #1
tomB
Calendar User
 
tomB's Avatar
 
tomB is offline
Join Date: Oct 2003
Location: Santa Rosa, CA
Posts: 68
Send a message via AIM to tomB Send a message via MSN to tomB Send a message via Yahoo to tomB
Default Twelve Month Calendar -- ver. 4.8 ONLY

{Admin}
This feature is now built into Version 6.1.4.
Please view the instructions for information on how to use this feature.
{/Admin}

If you are using version 4.8 of the calendar and want to have an inline calendar showing twelve months at a time. Download the attached ZIP file and enjoy.

tomB
Attached Files
File Type: zip twelve_mnth.zip (4.0 KB, 671 views)

Last edited by tomB; 08-12-2004 at 06:00 PM.
 

Old 08-12-2004, 03:24 AM   #2
Jomanix
Calendar User
 
Jomanix is offline
Join Date: Aug 2004
Location: France
Posts: 4
Default

The months are not displayed in the left column , is it normal tomB ?
 

Found the solution
Old 08-12-2004, 05:22 AM   #3
Jomanix
Calendar User
 
Jomanix is offline
Join Date: Aug 2004
Location: France
Posts: 4
Default Found the solution

I found the solution, just an error in your script:
echo " <td CLASS=\"monthYearText monthYearRow\">$mth[$mo]&nbsp;</td>";

instead of:

echo " <td CLASS=\"monthYearText monthYearRow\">$mts[$mo]&nbsp;</td>";

 

Old 08-12-2004, 12:48 PM   #4
tomB
Calendar User
 
tomB's Avatar
 
tomB is offline
Join Date: Oct 2003
Location: Santa Rosa, CA
Posts: 68
Send a message via AIM to tomB Send a message via MSN to tomB Send a message via Yahoo to tomB
Default

Thanks! I,ll fix the script in the download.

tomB
 

Old 08-12-2004, 01:17 PM   #5
Jomanix
Calendar User
 
Jomanix is offline
Join Date: Aug 2004
Location: France
Posts: 4
Default

Another question tomB: when I click on the previous and next year (2003 and 2005) at the bottom of the twelve months calendar, nothing happens

Do you have a solution ?
 

Old 08-12-2004, 06:06 PM   #6
tomB
Calendar User
 
tomB's Avatar
 
tomB is offline
Join Date: Oct 2003
Location: Santa Rosa, CA
Posts: 68
Send a message via AIM to tomB Send a message via MSN to tomB Send a message via Yahoo to tomB
Default

Ok!

1) the mts[] variable is correct. It shows short month names.
You need to add the following to the escalConfig.php file after the definition of mth[].


// Short MONTH NAMES
// Edit the month names below
$mts[1]="Jan";
$mts[2]="Feb";
$mts[3]="Mar";
$mts[4]="Apr";
$mts[5]="May";
$mts[6]="Jun";
$mts[7]="Jul";
$mts[8]="Aug";
$mts[9]="Sep";
$mts[10]="Oct";
$mts[11]="Nov";
$mts[12]="Dec";

2) The navigation problem is probably due to the file referenced by the link. If you look at the code it will probably say something like:

<a href="<?php echo twelve_mnth.php?yr=$yb" ?>">&lt;...

Change the reference to "twelve_mnth.php to $PHP_SELF in all three places. That should fix it.

tomB
 

Old 08-13-2004, 01:55 AM   #7
Jomanix
Calendar User
 
Jomanix is offline
Join Date: Aug 2004
Location: France
Posts: 4
Default

OK, thanks for the mts[] variable, I'll add it to the config file.

I changed the reference by $PHP_SELF, now the link appears to be the same (http://127.0.0.1/calendar/escal/twelve_mnth.php?yr=2003) but still no way to access to the previous and next year

Nevertheless, the script is basically the same than in the demo.php file (<a href="<?php echo "demo.php?mo=$mb&yr=$yb" ?>">&lt;&lt;</a></font></td>) where the scrolling month by month is working perfectly !

I don't understand...

Last edited by Jomanix; 08-13-2004 at 04:21 AM.
 

Old 09-18-2004, 07:37 PM   #8
Bobby
Calendar User
 
Bobby is offline
Join Date: Sep 2004
Posts: 4
Default

Hi tomB,

Just bought and downloaded v5.7 and need to be able to view 12 months at a time - this is essential to my using escal. As this thread is only for v4.8 any ideas how I could implement something similar in v5.7.

Thanks, any thoughts greatfully appreciated.

Bob.
 

Old 09-18-2004, 08:20 PM   #9
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Have you tried the attached file in the first post? It may need a couple of changes for the different file names in Version 5... Maybe tomB can look at this?

I'm sure we can make it work.
__________________
-- Brian

Questions?

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

Old 09-19-2004, 11:40 AM   #10
Bobby
Calendar User
 
Bobby is offline
Join Date: Sep 2004
Posts: 4
Default

Hi,

Trying hard to get this 12 month display to work - looking at the changes required in tomBs zip file -

tom states;
___________________________________________
You will also need to change escalConfig.php:

Set the variable $tableWidth to about 650.

Add the following after the definition of mth[].

// Short MONTH NAMES
// Edit the month names below
$mts[1]="Jan";
$mts[2]="Feb";
$mts[3]="Mar";
$mts[4]="Apr";
$mts[5]="May";
$mts[6]="Jun";
$mts[7]="Jul";
$mts[8]="Aug";
$mts[9]="Sep";
$mts[10]="Oct";
$mts[11]="Nov";
$mts[12]="Dec";

_______________________________

Am I correct in thinking escalConfig.php is now config.inc.php ?

I added a variable $tablewidth;

$tableWidth = "650";

and added the $mts vaiables as above

I put inline.php in the escal directory and changed line 16 of inline.php to read;

require ("config.inc.php");

I then ftpd twelve_mnth.php to my escal folder and ran it. I got the error;

Parse error: parse error, unexpected '=' in /var/www/html/escal/twelve_mnth.php on line 40

Line 40 in twelv_mnth.php is;

<td align="left" ><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><a href="<?php echo $PHP_SELF?yr=$yb" ?>">&lt;<?php echo $yb; ?></a></font></td>

Anyways I deleted lines 40,41 and 42 in twelve_mnth.php and ran it again this time the the 12 months diaplyed but as a sort of continuous line you can see here;

http://www.tykatem.co.uk/escal/twelve_mnth.php

Im getting close but struggling - any help?

Bob.
 

Old 09-19-2004, 09:31 PM   #11
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Try this...

PHP Code:
<table width="700" border="0" cellspacing="0" cellpadding="4">
<?php
// THIS WILL SHOW ALL MONTHS FOR A CALENDAR YEAR

if (!isset($yr)) $yr date("Y"); // SET THIS FROM YOUR SCRIPT

for ($N=1$N<13$N=$N+3) {
?>
  <tr>
    <td><?php $mo $N; require("escal/showCalendar.php"); /></td>
    <
td><?php $mo $N+1; require("escal/showCalendar.php"); /></td>
    <
td><?php $mo $N+2; require("escal/showCalendar.php"); /></td>
  </
tr>
<?
php
}
?>
</table>
__________________
-- Brian

Questions?

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

12-month calendar for v5.x in the works
Old 09-21-2004, 12:44 AM   #12
tomB
Calendar User
 
tomB's Avatar
 
tomB is offline
Join Date: Oct 2003
Location: Santa Rosa, CA
Posts: 68
Send a message via AIM to tomB Send a message via MSN to tomB Send a message via Yahoo to tomB
Lightbulb 12-month calendar for v5.x in the works

Stay tuned to this station! Updates are in the works.

 

Old 05-06-2005, 01:14 AM   #13
dave_gordon
Calendar User
 
dave_gordon is offline
Join Date: May 2005
Posts: 33
Default

If possible, could you assist me in working out the name comparisons for the latest v6? As an example the file 'escalConfig.php' no longer exists.
Kind Regards
Dave
 
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
Clickable month titles in MUTLI view alexjudd General Support 1 08-25-2005 08:40 AM
6 Month Calendar Colin General Support 2 08-01-2005 12:22 PM
Six Month CALENDAR? Mark MT General Support 9 03-17-2005 08:54 AM
Multiple calendar views on a site jenniferwilde General Support 0 03-03-2004 01:41 PM



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