| General Support Questions about using the Easy PHP Calendar. (Not installation or customizations) |
12-22-2003, 11:32 AM
|
#1
|
|
Calendar User
patrickng is offline
Join Date: Dec 2003
Posts: 8
|
Hi,
Not sure what went wrong, I haven't started to use MySQL so I used flat file.
Please check the following link:
http://www.tappies.com/calendar/demo.php
there are 2 entries, 21st and 22nd on the calendar of Dec, but I entered events for 20th and 21st. Click on the dates to get the pop up to see this error. Anything I did wrong?
Another try is to incorporate calendar into my web page, please check:
http://www.tappies.com/indextest2.html
Flat file implementation can't be done? Pls view the source and help me out what went wrong.
THanks
|
|
|
|
12-22-2003, 11:51 AM
|
#2
|
|
Calendar User
tifosi is offline
Join Date: Nov 2003
Posts: 21
|
1. The administer events option is for use only when using mySQL, hence the error trying to negotiate with a non existant mySQL database!
2. The script requires a php enabled server... and pages as .php
3. Noticed that the popups were showing the prior days date. There's a few topics on this. then again you may have just not set your day variables correctly inside the scripts.
|
|
|
|
12-22-2003, 01:01 PM
|
#3
|
|
Calendar User
patrickng is offline
Join Date: Dec 2003
Posts: 8
|
Thanks a lot tifosi!
1. I know the errors were caused by not using MySQL and admin doesn't work on flat file implementation
2. changed the name to .php as suggested and it works
http://www.tappies.com/indextest2.php
BUT
3. OK I've checked and changed the time zone to Hong Kong (+8), which is $gmt = "8";
But the resulting calendar page is still displaying +1 day. I entered "12-20-2003,,Tappies 1st Anniversary" in esdates.txt but the calendar displays/highlighted 21st Dec. Although the pop up date is correct.
Any hint of where should I temper with the script?
Thanks!
|
|
|
|
12-22-2003, 02:51 PM
|
#4
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
It looks like that the pop-up have the event right but the date wrong. I'll look into this...
|
|
|
|
12-23-2003, 11:27 AM
|
#5
|
|
Calendar User
patrickng is offline
Join Date: Dec 2003
Posts: 8
|
Thanks Papa. Here's an update.
1. I've changed to use MySQL anyway for the current page:
http://www.tappies.com/indextest2.php
2. Problem still exist, i've labelled the event for your easy checking:
- 24th Dec 2003 event is displayed as 25th on Calendar but correct on popup window
- 26th Dec 2003 event is displayed as 27th on Calendar but correct on popup window
Hope it will be solved soon.
Thanks!
|
|
|
|
12-23-2003, 07:35 PM
|
#6
|
|
Calendar User
Brad^ is offline
Join Date: Dec 2003
Posts: 4
|
Hi,
I appear to be having a similar problem. The current date highlighted is wrong. As i write it's the 24th Dec but the 25th is highlighted as the current day. The events problem is the same as described above.
I live in Sydney Australia so have set the GMT value to 11 (normally 10 but currently daylight savings).
I have setup a Test Calendar. I'm using MYSQL and PHP 4.3.
I may have missed something in the script setup but i think i did it correctly. If you need any further information to investigate the problem please let me know. By the way the script looks really good and is easy to use.
Brad
|
|
|
|
12-23-2003, 10:22 PM
|
#7
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Can you tell me what GMT your servers are set to?
|
|
|
|
12-26-2003, 05:21 AM
|
#8
|
|
Calendar User
Brad^ is offline
Join Date: Dec 2003
Posts: 4
|
Hi,
I used php date function and it gave me the following result
Friday 26th of December 2003 09:17:57 PM
(current time for my location)
GMT +1100
(when i setup the calendar i entered 11 for the GMT field.
Hope this helps.
Brad
|
|
|
|
12-29-2003, 02:03 AM
|
#9
|
|
Calendar User
neoro is offline
Join Date: Dec 2003
Posts: 5
|
hi there, I am having the same problem too
http://neoro.lysium.net/v2/calender/demo.php
I have not edited anything , but the GMT which in my current location ( malaysia ) = +8 so my
$gmt = "8";
right??
the server is located in the same location so I dont think there are any time difference.
I hope that this problem can be fixed,this is the best script so far that I have found ... keep it up...
this is my server's phpinfo ,
http://neoro.lysium.net/phpinfo.php
|
|
|
|
12-29-2003, 11:48 AM
|
#10
|
|
Calendar User
neoro is offline
Join Date: Dec 2003
Posts: 5
|
got it fix already I think
http://neoro.lysium.net/v2/blog/b2
credits to my friend over at http://lysium.net
he added the following
Line
358 of escal.php
$daycount++;
as he is the admin of the server
he would like to know whether its a server or script error..
Hope that helps..
|
|
|
|
12-29-2003, 12:05 PM
|
#11
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Thanks for the information. I'm still looking at the underlying cause and hope to post an update soon.
|
|
|
|
12-29-2003, 09:35 PM
|
#12
|
|
Calendar User
patrickng is offline
Join Date: Dec 2003
Posts: 8
|
Hi Neoro, thanks for the tip on changing the escal.php script, but my version (4.2) has 312 lines only, do you mean just add the line at the end of the script?
Thanks, can't wait to solve this problem.
|
|
|
|
12-29-2003, 09:45 PM
|
#13
|
|
Calendar User
patrickng is offline
Join Date: Dec 2003
Posts: 8
|
OK, I figured it is added on line 258 instead of 358 
Papa, pls let me know if this is a permanent fix for now, thanks!
|
|
|
|
 |
|
 |
12-29-2003, 10:26 PM
|
#14
|
|
Calendar User
neoro is offline
Join Date: Dec 2003
Posts: 5
|
Ok guys I know nuts about php , just some stuff in include and replace some words here and there , so this is what my friend did
in escal.php
Starting From Line 334 for Version 4.3 
The Addition I think, is highlighted in bold. Hope it helps
// PRINT CALENDAR TO BROWSER
for ($i = 1; $i<7; $i++) {
if ($cd>=$nd && $displayEmptyRows!=1) {
break;
}
for ($prow = 1; $prow<8; $prow++) {
// echo "$daycount - $tnum";
if ($daycount==$tnum && $highlightToday==1 && $cd>0 && $cd<$nd) {
echo " <td class=\"s2$bgc[$daycount] today\"";
if ($et[$daycount]!="") {
if ($overLIB == 1) {echo " onmouseover=\"return overlib('".overLib($daycount)."',WIDTH,$olWidth,DE LAY,100,FGCOLOR,'#FFFFFF',BGCOLOR,'#AAAAAA');\" onmouseout=\"return nd();\""; $et[$daycount]="";}
if ($standardPop == 1) {echo " title=\"$et[$daycount]\" onClick=\"popupEvent($daycount,$popupWidth,$popupH eight)\" style=\"cursor:hand;\"";}
}
echo ">$cd</td>\n";$daycount++;$cd++;
}
else {
if ($cd>0 && $cd<$nd) {
echo " <td class=s2$bgc[$daycount]";
if ($et[$daycount]!="") {
if ($overLIB == 1) {echo " onmouseover=\"return overlib('".overLib($daycount)."',WIDTH,$olWidth,DE LAY,100,FGCOLOR,'#FFFFFF',BGCOLOR,'#AAAAAA');\" onmouseout=\"return nd();\""; $et[$daycount]="";}
if ($standardPop == 1) {echo " title=\"$et[$daycount]\" onClick=\"popupEvent($daycount,$popupWidth,$popupH eight)\" style=\"cursor: pointer; cursor: hand;\"";}
}
echo ">$cd</td>\n"; $daycount++;
}
else {
echo " <td class=s20> </td>\n";
}
$cd++;
}
}
echo "</tr>\n";
}
echo "</table>\n";
?>
|
|
|
|
 |
12-30-2003, 01:42 AM
|
#15
|
|
Calendar User
patrickng is offline
Join Date: Dec 2003
Posts: 8
|
Thanks a lot, although I found that the bold part is already in v4.3's script.
What I did was adding $daycount++; just after <?php on line 313
<?php
$daycount++;
////////////////////////////////////////////
// DISPLAY CALENDAR ////////////////////////
////////////////////////////////////////////
That immediately solved the problem even though I know nothing about scripts.
|
|
|
|
12-30-2003, 01:46 AM
|
#16
|
|
Calendar User
Brad^ is offline
Join Date: Dec 2003
Posts: 4
|
Hi Everyone,
I have tried what was suggested above but am still unable to solve the problem. I am a PHP newbie so maybe I misunderstood. I looked through the script as suggested above and found the following line:
echo ">$cd</td>\n";$daycount++;
If i understand correctly the $daycount++ part needed to be added but in my copy of the script it was already there. Maybe I'm looking at the wrong line. I am happy to wait for the next update to the script or if someone wants to send me a copy of the ammended file I'm happy to give that a try.
Brad
|
|
|
|
12-30-2003, 01:52 AM
|
#17
|
|
Calendar User
Brad^ is offline
Join Date: Dec 2003
Posts: 4
|
Hi Again,
I am using version 4.3 of the script so made the change suggested above and now my problem has also been corrected.
Thanks to everyone who has been investigating the problem. I can now continue to setup and use this script on my site.
Brad
|
|
|
|
 |
|
 |
12-30-2003, 06:46 AM
|
#18
|
|
Calendar User
neoro is offline
Join Date: Dec 2003
Posts: 5
|
My Bad Guys Sorry, when my friend told me that he added $daycount++; to escal.php i made a search bottom up at the modified script. After comparing with the original script I noticed that he included it in line 332 ( i think anyway would do , since other did get it to work too )
so here is an extract from line 313 onwards of my modified script (escal.php). Once again Sorry guys, my bad
////////////////////////////////////////////
// DISPLAY CALENDAR ////////////////////////
////////////////////////////////////////////
echo "<table class=mainTable WIDTH=$tableWidth CELLSPACING=$cellSpacing CELLPADDING=$cellPadding BORDER=0>\n";
echo " <tr>\n";
echo " <td CLASS=\"monthYearText monthYearRow\" colspan=\"7\" title=\"Easily Simple Calendar 4.3\">\n $mn\n </td>\n";
echo " </tr>\n";
echo " <tr CLASS=dayNamesText>\n";
for ($I=0;$I<7;$I++) {
$dayprint=$weekDayStart+$I;
if ($dayprint>6) $dayprint=$dayprint-7;
echo" <td class=dayNamesRow WIDTH=$cellWidth>$day[$dayprint]</td>\n";
}
echo " </tr>\n";
$daycount++;
// PRINT CALENDAR TO BROWSER
for ($i = 1; $i<7; $i++) {
if ($cd>=$nd && $displayEmptyRows!=1) {
break;
}
for ($prow = 1; $prow<8; $prow++) {
// echo "$daycount - $tnum";
if ($daycount==$tnum && $highlightToday==1 && $cd>0 && $cd<$nd) {
echo " <td class=\"s2$bgc[$daycount] today\"";
if ($et[$daycount]!="") {
if ($overLIB == 1) {echo " onmouseover=\"return overlib('".overLib($daycount)."',WIDTH,$olWidth,DE LAY,100,FGCOLOR,'#FFFFFF',BGCOLOR,'#AAAAAA');\" onmouseout=\"return nd();\""; $et[$daycount]="";}
if ($standardPop == 1) {echo " title=\"$et[$daycount]\" onClick=\"popupEvent($daycount,$popupWidth,$popupH eight)\" style=\"cursor:hand;\"";}
}
echo ">$cd</td>\n";$daycount++;$cd++;
}
else {
if ($cd>0 && $cd<$nd) {
echo " <td class=s2$bgc[$daycount]";
if ($et[$daycount]!="") {
if ($overLIB == 1) {echo " onmouseover=\"return overlib('".overLib($daycount)."',WIDTH,$olWidth,DE LAY,100,FGCOLOR,'#FFFFFF',BGCOLOR,'#AAAAAA');\" onmouseout=\"return nd();\""; $et[$daycount]="";}
if ($standardPop == 1) {echo " title=\"$et[$daycount]\" onClick=\"popupEvent($daycount,$popupWidth,$popupH eight)\" style=\"cursor: pointer; cursor: hand;\"";}
}
echo ">$cd</td>\n";$daycount++;
}
else {
echo " <td class=s20> </td>\n";
}
$cd++;
}
}
echo "</tr>\n";
}
echo "</table>\n";
?>
|
|
|
|
 |
12-30-2003, 08:40 AM
|
#19
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Hopefully this bug will be nailed down in Version 4.4. It's been a pesky one!
|
|
|
|
12-30-2003, 08:44 PM
|
#20
|
|
Calendar User
patrickng is offline
Join Date: Dec 2003
Posts: 8
|
Thanks Papa.
I noticed that there are cdefx.gif files, are they for date category use? Is it in the script yet? Looking forward to.
|
|
|
|
 |
|
 |
12-30-2003, 09:36 PM
|
#21
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Quote:
Originally posted by patrickng@Dec 30 2003, 09:44 PM
Thanks Papa.
I noticed that there are cdefx.gif files, are they for date category use? Is it in the script yet? Looking forward to.
|
The other cdefX.gif files can be used now. You just need to modify the stylesheet to use those graphics (see modified code below). When you do it will produce a calendar like the one here http://www.stgeorgeisland.com/vacationrent...whaley#calendar.
It really isn't suitable for events which is why the script is distributed by default using the solid background graphics.
Replace the .sX class lines in the CSS file with:
/* Normal Cell Background (date number with no event markings) */
.s2 {
background-image: url("stat.gif");
background-color: #EEEEEE;
}
/* Empty Cell Background (empty cells with no date numbers) */
.s20 {
background-image: url("cdef5.gif");
background-color: #E5E5E5;
}
/* Mark Start Cell Background (usually a slashed graphic to show availability or solid for events) */
.s21 {
background-image: url("cdef1.gif");
background-color: #F5E0D8;
}
/* Mark Solid Cell Background (solid marked event date background) */
.s22 {
background-image: url("cdef2.gif");
background-color: #F5E0D8;
}
/* Mark End Cell Background (usually a slashed graphic to show availability or solid for events) */
.s23 {
background-image: url("cdef3.gif");
background-color: #F5E0D8;
}
/* Mark End/Start Cell Background (usually a slashed graphic to show availability or solid for events) */
.s24 {
background-image: url("cdef4.gif");
background-color: #F5E0D8;
}
|
|
|
|
 |
03-16-2004, 12:39 AM
|
#22
|
|
Calendar User
ksplace is offline
Join Date: Mar 2004
Posts: 1
|
I've kinda got a similar date problem, only it's the other way around. I enter a date, eg. March 17. On the calendar, March 16 is highlighted, but the pop-up is correct. I tried the solutions in this thread and it just pushed the date highlighted on the calendar back another day to the 15th, while the pop-up still remained correct.
:blink:
k
|
|
|
|
03-16-2004, 06:34 AM
|
#23
|
|
Support Team
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
|
Have you set your timezone in the config?
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
|
|
|
|
03-16-2004, 09:21 AM
|
#24
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Quote:
Originally posted by ksplace@Mar 16 2004, 12:39 AM
I've kinda got a similar date problem, only it's the other way around. I enter a date, eg. March 17. On the calendar, March 16 is highlighted, but the pop-up is correct. I tried the solutions in this thread and it just pushed the date highlighted on the calendar back another day to the 15th, while the pop-up still remained correct.
:blink:
k
|
What version are you using and can you share a link to the site having the problem?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 08:21 PM.
|