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

Old 04-07-2004, 05:55 AM   #1
Rewai
Calendar User
 
Rewai is offline
Join Date: Apr 2004
Posts: 3
Default

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?
 

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

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.
__________________
-- Brian

Questions?

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

Old 04-08-2004, 10:51 AM   #3
kbc
Calendar User
 
kbc is offline
Join Date: Apr 2004
Posts: 8
Default

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
 

Old 04-08-2004, 11:00 AM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

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:
__________________
-- Brian

Questions?

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

Old 04-08-2004, 11:04 AM   #5
kbc
Calendar User
 
kbc is offline
Join Date: Apr 2004
Posts: 8
Default

Hey - ok. Thanks for the quick reply.
I'll twiddle my thumbs a little longer

Thanks again,
KC
 

Old 04-08-2004, 12:01 PM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

No worries!
__________________
-- Brian

Questions?

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

Old 04-15-2004, 01:36 PM   #7
xcaliber
Calendar User
 
xcaliber is offline
Join Date: Apr 2004
Posts: 8
Default

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
 

Old 04-15-2004, 01:44 PM   #8
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Where do the drop-down date seem to be missing?
__________________
-- Brian

Questions?

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

Old 04-15-2004, 01:49 PM   #9
xcaliber
Calendar User
 
xcaliber is offline
Join Date: Apr 2004
Posts: 8
Default

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
 

Old 04-16-2004, 01:37 PM   #10
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

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">
 &nbsp;<tr>
 &nbsp; <td>
 &nbsp; &nbsp;<? $currentMonth = date("M"); if (!@$fmnth) $fmnth=$mnth;?>
 &nbsp; &nbsp;<select name="month" id="month">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <option selected>Month</option>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <? foreach ($allm as $fmnth) {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if($fmnth==$currentMonth) continue;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo "<option>$fmnth </option>";
 &nbsp; &nbsp; &nbsp; &nbsp;}
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </select>&nbsp;
 &nbsp; &nbsp; <? $currentYear = date("Y"); &nbsp;?>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <select name="year" id="year">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<option selected>Year</option>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<?
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for($fvyr = $currentYear-1; $fvyr <= ($currentYear+1); $fvyr++) {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "<option>$fvyr </option>";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;?>
 &nbsp; &nbsp; </select>
 &nbsp; &nbsp; &nbsp;&nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <input type="submit" name="Submit" value="Select">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </td>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</tr>
 &nbsp; &nbsp; &nbsp;</table>
</div>
</form>
__________________
-- Brian

Questions?

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

Old 04-16-2004, 02:53 PM   #11
xcaliber
Calendar User
 
xcaliber is offline
Join Date: Apr 2004
Posts: 8
Default

what file should I ad this to? and where in the file?
 

Old 04-16-2004, 03:23 PM   #12
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

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.
__________________
-- Brian

Questions?

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

Old 04-16-2004, 05:23 PM   #13
xcaliber
Calendar User
 
xcaliber is offline
Join Date: Apr 2004
Posts: 8
Default

This does not wornk when I hit the select button...am I missing something?
 

Old 04-16-2004, 06:24 PM   #14
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Can you provide a link to the page you're working on?
__________________
-- Brian

Questions?

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

Old 04-17-2004, 01:38 AM   #15
xcaliber
Calendar User
 
xcaliber is offline
Join Date: Apr 2004
Posts: 8
Default

http://www.islandsession.com/testbed/newsi...nts/events.html
 

Old 04-17-2004, 08:12 AM   #16
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Try this code instead:

Code:
<?php
 &nbsp;if (!isset($mo)) $mo = date("m",time() - date('Z') + ($gmt * 3600));
 &nbsp;if (!isset($yr)) $yr = date("Y",time() - date('Z') + ($gmt * 3600));
 &nbsp; &nbsp;?>
 &nbsp; &nbsp; &nbsp;<form name="form3" method="post" action="<?php echo $PHP_SELF ?>">
 &nbsp; &nbsp; &nbsp; &nbsp;<select name="mo" id="mo">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<?php
 &nbsp;for ($N=1; $N<=12; $N++) {
 &nbsp; &nbsp;echo "<option value='$N'";
 &nbsp; &nbsp;if ($N==$mo) echo " SELECTED";
 &nbsp; &nbsp;echo ">$mth[$N]</option>";
 &nbsp; &nbsp;}
 &nbsp; &nbsp;?>
 &nbsp; &nbsp; &nbsp; &nbsp;</select>
 &nbsp; &nbsp; &nbsp; &nbsp;<select name="yr" id="yr">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<?php
 &nbsp;for ($N=2000; $N<=2036; $N++) {
 &nbsp; &nbsp;echo "<option";
 &nbsp; &nbsp;if ($N==$yr) echo " SELECTED";
 &nbsp; &nbsp;echo ">$N</option>";
 &nbsp; &nbsp;}
 &nbsp; &nbsp;?>
 &nbsp; &nbsp; &nbsp; &nbsp;</select>
 &nbsp; &nbsp; &nbsp; &nbsp;<input type="submit" name="Submit" value="Go">
 &nbsp; &nbsp; &nbsp;</form>
That should do it!
__________________
-- Brian

Questions?

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

Old 04-18-2004, 11:41 PM   #17
xcaliber
Calendar User
 
xcaliber is offline
Join Date: Apr 2004
Posts: 8
Default

Works like a charm...thanks

 

Old 04-19-2004, 12:02 PM   #18
kbc
Calendar User
 
kbc is offline
Join Date: Apr 2004
Posts: 8
Default

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
 

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

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?
__________________
-- Brian

Questions?

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

Old 04-22-2004, 12:32 PM   #20
kbc
Calendar User
 
kbc is offline
Join Date: Apr 2004
Posts: 8
Default

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
 

Old 04-22-2004, 02:58 PM   #21
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Can you PM me the code of the page or FTP access to your server so I can see your code?
__________________
-- Brian

Questions?

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

Old 04-27-2004, 09:51 AM   #22
kbc
Calendar User
 
kbc is offline
Join Date: Apr 2004
Posts: 8
Default

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
Old 06-18-2004, 11:16 AM   #23
Jim
Calendar User
 
Jim is offline
Join Date: Jun 2004
Posts: 6
Default dateDropDown Navigation

Quote:
Originally Posted by Brian
Try this code instead:

[code]<?php
&nbsp;if (!isset($mo)) $mo = date("m",time() - date('Z') + ($gmt * 3600));
&nbsp;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
 

Old 06-18-2004, 11:56 AM   #24
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

The "&nbsp;" shouldn't be there. This was a problem when converting the board over to vBulletin. Try to remove all of the &nbsp;'s and see of that helps.
__________________
-- Brian

Questions?

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

Old 06-18-2004, 02:18 PM   #25
Jim
Calendar User
 
Jim is offline
Join Date: Jun 2004
Posts: 6
Default

Thanks Brian. It's working now.
 
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
Calendar not displaying correctly after adding events chrisw914 General 10 10-19-2006 01:07 PM
Displaying Info from Calendar trinitywave General Support 13 08-01-2005 12:12 PM
Calendar displaying as TEXT ?? newbie needs setup help!! :) stevenc General Support 12 06-30-2004 12:24 PM
Calendar displaying as text! Have already read previous posts. andi_levinge General Support 3 06-03-2004 10:00 PM
displaying calendar in php script via template file badmix General Support 0 01-08-2003 11:03 AM



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