| General Support Questions about using the Easy PHP Calendar. (Not installation or customizations) |
04-07-2004, 05:55 AM
|
#1
|
|
Calendar User
Rewai is offline
Join Date: Apr 2004
Posts: 3
|
I've downloaded v5.2 today and have sucessfully installed it.
I notice on http://www.easilysimplecalendar.com/listingsDemo.php there is a range of events displayed below the calendar.
I might be missing something very obvious (probably am), however I don't see how to do use this feature.
Where should I be looking? How is it achieved?
|
|
|
|
04-07-2004, 10:14 AM
|
#2
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
That feature is part of Version 5.3 which isn't released but is in it's final testing phase. You will be able to upgrade for free once this Version is available.
|
|
|
|
04-08-2004, 10:51 AM
|
#3
|
|
Calendar User
kbc is offline
Join Date: Apr 2004
Posts: 8
|
Hi Brian,
I understand this will part of the 5.3 release but is there any harm in providing the line of code that will generate the listings beneath here or is there more to it? Even so...
Rewai - have you spent any further time trying to work this out on your own? I'm guessing not unless of course you need it by a deadline (like me).
Anyway - been waiting for some word about 5.3 as I misunderstood that this was in fact included in 5.2 already.
Thanks,
KC
|
|
|
|
04-08-2004, 11:00 AM
|
#4
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
As you may have seen, the code is being tested on the demo page. I feel fairly confident that it will be released before the weekend is out.
Quote:
|
is there any harm in providing the line of code that will generate the listings
|
The code that produces the listings is 815 lines long. :blink:
|
|
|
|
04-08-2004, 11:04 AM
|
#5
|
|
Calendar User
kbc is offline
Join Date: Apr 2004
Posts: 8
|
Hey - ok. Thanks for the quick reply.
I'll twiddle my thumbs a little longer
Thanks again,
KC
|
|
|
|
04-08-2004, 12:01 PM
|
#6
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
No worries!
|
|
|
|
04-15-2004, 01:36 PM
|
#7
|
|
Calendar User
xcaliber is offline
Join Date: Apr 2004
Posts: 8
|
so I just downloaded what I believe to be the latest version today and I am not able to get the dropdown dates. I am only getting (<<), (-=-) and (>>). How can I enable the dropdown dates
|
|
|
|
04-15-2004, 01:44 PM
|
#8
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
Where do the drop-down date seem to be missing?
|
|
|
|
04-15-2004, 01:49 PM
|
#9
|
|
Calendar User
xcaliber is offline
Join Date: Apr 2004
Posts: 8
|
on the demo.php it only has << -=- and >>. I viewd the config but it does not have an option to change these settings.
Looking at your demo page which is listingsDemo.php I see where you can view different monts and year by selecting from a dropdown calendar then select GO, however when I go to the demo page on my installation I do not see this
|
|
|
|
 |
|
 |
04-16-2004, 01:37 PM
|
#10
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
You can configure the navigational arrows in the Setup and Configuration Manager.
However, if you want to add a form-style drop-down list for the month and year, try this code that was posted in another thread by tomB:
Code:
<form name="form1" method="post" action=" <? echo $PHP_SELF ?> ">
<div align="right">
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td>
<? $currentMonth = date("M"); if (!@$fmnth) $fmnth=$mnth;?>
<select name="month" id="month">
<option selected>Month</option>
<? foreach ($allm as $fmnth) {
if($fmnth==$currentMonth) continue;
echo "<option>$fmnth </option>";
}
?>
</select>
<? $currentYear = date("Y"); ?>
<select name="year" id="year">
<option selected>Year</option>
<?
for($fvyr = $currentYear-1; $fvyr <= ($currentYear+1); $fvyr++) {
echo "<option>$fvyr </option>";
}
?>
</select>
<input type="submit" name="Submit" value="Select">
</td>
</tr>
</table>
</div>
</form>
|
|
|
|
 |
04-16-2004, 02:53 PM
|
#11
|
|
Calendar User
xcaliber is offline
Join Date: Apr 2004
Posts: 8
|
what file should I ad this to? and where in the file?
|
|
|
|
04-16-2004, 03:23 PM
|
#12
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
It is not part of the calendar and should be added to your file (the one that calls the showCalendar.php file) wherever you want the drop-downs to appear; which could be just about anywhere on your page.
|
|
|
|
04-16-2004, 05:23 PM
|
#13
|
|
Calendar User
xcaliber is offline
Join Date: Apr 2004
Posts: 8
|
This does not wornk when I hit the select button...am I missing something?
|
|
|
|
04-16-2004, 06:24 PM
|
#14
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
Can you provide a link to the page you're working on?
|
|
|
|
04-17-2004, 01:38 AM
|
#15
|
|
Calendar User
xcaliber is offline
Join Date: Apr 2004
Posts: 8
|
|
|
|
|
 |
|
 |
04-17-2004, 08:12 AM
|
#16
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
Try this code instead:
Code:
<?php
if (!isset($mo)) $mo = date("m",time() - date('Z') + ($gmt * 3600));
if (!isset($yr)) $yr = date("Y",time() - date('Z') + ($gmt * 3600));
?>
<form name="form3" method="post" action="<?php echo $PHP_SELF ?>">
<select name="mo" id="mo">
<?php
for ($N=1; $N<=12; $N++) {
echo "<option value='$N'";
if ($N==$mo) echo " SELECTED";
echo ">$mth[$N]</option>";
}
?>
</select>
<select name="yr" id="yr">
<?php
for ($N=2000; $N<=2036; $N++) {
echo "<option";
if ($N==$yr) echo " SELECTED";
echo ">$N</option>";
}
?>
</select>
<input type="submit" name="Submit" value="Go">
</form>
That should do it!
|
|
|
|
 |
04-18-2004, 11:41 PM
|
#17
|
|
Calendar User
xcaliber is offline
Join Date: Apr 2004
Posts: 8
|
Works like a charm...thanks
|
|
|
|
 |
|
 |
04-19-2004, 12:02 PM
|
#18
|
|
Calendar User
kbc is offline
Join Date: Apr 2004
Posts: 8
|
Hello,
I've tried this and I can only get this to work if I use it in the same file.
What I'm trying to do is show the calendar in an include, and show the Monthly listings and dropdown selection Month/Year in a separate include.
What happens for me is the "There are no events to display for this time period." shows up and the dropdown list of months is empty (at least what is printed out to the screen - the source shows the form values are there). Now I could change the months code and get that to show up, but I prefer it to stay "sticky" when a selection is made plus it's probably a simple fix I'm overlooking. ;-)
In other words, my template includes these two files:
File 1: //show calendar
============================
<?php $CSS=1; require ("showCalendar.php"); ?>
<?php $OL=1; require ("showCalendar.php"); ?>
<div align="center">
<?php require ("showCalendar.php"); ?>
</div>
============================
File 2: //show dropdown selection and monthly listing
============================
<?php
if (!isset($mo)) $mo = date("m",time() - date('Z') + ($gmt * 3600));
if (!isset($yr)) $yr = date("Y",time() - date('Z') + ($gmt * 3600));
?>
<form name="form3" method="post" action="<?php echo $PHP_SELF ?>">
<select name="mo" id="mo" class="input">
<?php
for ($N=1; $N<=12; $N++) {
echo "<option value='$N'";
if ($N==$mo) echo " SELECTED";
echo ">$mth[$N]</option>";
}
?>
</select>
<select name="yr" id="yr" class="input">
<?php
for ($N=2004; $N<=2005; $N++) {
echo "<option";
if ($N==$yr) echo " SELECTED";
echo ">$N</option>";
}
?>
</select>
<input type="submit" name="Submit" value="Go" class="input">
</form>
<?php
$LIST=1;
$DF = "D - M d";
$template="monthly.php";
require ("showCalendar.php");
?>
============================
Any ideas? Much appreciated.
Thanks!
KC
|
|
|
|
 |
04-19-2004, 07:19 PM
|
#19
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
Quote:
Originally posted by kbc@Apr 19 2004, 11:02 AM
Hello,
I've tried this and I can only get this to work if I use it in the same file.
What I'm trying to do is show the calendar in an include, and show the Monthly listings and dropdown selection Month/Year in a separate include....
|
Can you provide a link to the page where you are trying to do this?
|
|
|
|
04-22-2004, 12:32 PM
|
#20
|
|
Calendar User
kbc is offline
Join Date: Apr 2004
Posts: 8
|
Hi Brian,
Thanks for your reply.
I've moved the dropdown month/year selection to the same include file as the calendar and they started working again... but the event listings still won't show up.
Here's the dev url I'm working with so you see what I mean:
http://beach.stage.atlas.cc/calendar/
I've posted the example code for the two included files in the post above...
(p.s. Overlib and OnClick is turned off in setup)
Thanks,
KC
|
|
|
|
04-22-2004, 02:58 PM
|
#21
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
Can you PM me the code of the page or FTP access to your server so I can see your code?
|
|
|
|
04-27-2004, 09:51 AM
|
#22
|
|
Calendar User
kbc is offline
Join Date: Apr 2004
Posts: 8
|
Hey Brian -
Thanks a ton for taking the time to help figure this out.
Since I'm using a dynamic templating structure that grabs pieces of code to build the page on the fly, I guess separating the calendar from the monthly event listings caused a problem that had me baffled.
The calendar itself shows up in the left column of my design and in a separate include file, the monthly listings are now showing up correctly in the right column.
I found that I could even replace the lines you had placed to fix this just to include the config file in the listings.php file at line 1 and boom it worked. Clearly, since separating these two pieces, the listings could no longer find the config.
I've got to say - you've been extremely helpful!
KC
|
|
|
|
 |
dateDropDown Navigation |
 |
06-18-2004, 11:16 AM
|
#23
|
|
Calendar User
Jim is offline
Join Date: Jun 2004
Posts: 6
|
dateDropDown Navigation
Quote:
|
Originally Posted by Brian
Try this code instead:
[code]<?php
if (!isset($mo)) $mo = date("m",time() - date('Z') + ($gmt * 3600));
if (!isset($yr)) $yr = date("Y",time() - date('Z') + ($gmt * 3600));
. . .
That should do it! 
|
My Calendar is installed and working fine, but each time I insert the code into my calendar.php page, I get a Parse Error. I have placed the code above, below, and various other places on the page.
Any ideas on what I need to do to make this work?
Using sql under ESCal 5.5. This is my calendar page. (The code is not in this page): http://www.genealogy.forefamily.org/calendar.php
Thanks,
Jim
|
|
|
|
06-18-2004, 11:56 AM
|
#24
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
|
The " " shouldn't be there. This was a problem when converting the board over to vBulletin. Try to remove all of the 's and see of that helps.
|
|
|
|
06-18-2004, 02:18 PM
|
#25
|
|
Calendar User
Jim is offline
Join Date: Jun 2004
Posts: 6
|
Thanks Brian. It's working now.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear 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 02:27 AM.
|