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

Displaying Month & Year above listings?
Old 07-06-2004, 11:38 AM   #1
marisab
Calendar User
 
marisab is offline
Join Date: Jul 2004
Posts: 5
Default Displaying Month & Year above listings?

I'm using the listings module here:

http://www.karenshomearts.com/class_schedule.php

At the top of the page, I'd like it to say

"Class Schedule - July 2004" or whatever month is currently showing. I can't seem to figure out how to do this. Help?

Thank you!

- Marisa
 

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

To dynamically change the header would require custom programming to accomplish as there isn't a mechanism to do this in the program. You could do this fairly easily if you can work with PHP. Just check for the $mo vairable and echo the appropriate month name for the number.
__________________
-- Brian

Questions?

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

More info
Old 07-06-2004, 12:49 PM   #3
marisab
Calendar User
 
marisab is offline
Join Date: Jul 2004
Posts: 5
Default More info

Hi Brian-

I tried to do this, but had limited success.

If I put the code <?php echo $mo;?> AFTER the call to the listings template, it displays, but if I put it before the call to the template it does not display.

I also tried putting the code in the template itself and that didn't work. I am sort of a PHP newbie, so it's probably something obvious. Any ideas what I might be missing?

Thank you.
- Marisa
 

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

I can't look it up right now, but search for the forums for the code to add the drop-down date selector to the calendar. It may be able to lead you in the right direction...
__________________
-- Brian

Questions?

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

Old 07-07-2004, 06:32 AM   #5
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

marisab: here, try this code

PHP Code:
<?php if (!isset($mo)) {
    
$mymo $_REQUEST["mo"];
} else {
    
$mymo $mo;
}
if (!
$mymo$mymo date("n");
$months = array('','January','February','March','April','May','June','July','August','September','October','November','December');
echo 
$months[$mymo]; ?>
Just paste that code where you want the month name to appear.

If you want something more advanced, you can paste the whole thing except the last line at the begining of your script and then just use that last line at every spot where you want the month name.

Hope this helps.

Gervais
 

Old 07-07-2004, 01:23 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

It doesn't seem to work as expected; the month will always be the current month set in line 6.
The variable $mo will always be empty until 'escal.php' is called.

What needs to happen (IMHO) is 'escal.php' needs to have a "HIDE" switch. Call (require) 'escal.php' with the "HIDE" switch set to 1; all the variables will be set but the calendar wil not be displayed. Then you can use all the variables; $mo, $mnth[], etc.

tomB
 
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
Year Selection Start/End - for drop down menus abcddurham General 1 09-04-2005 11:41 AM
displaying only the month events summary dwcasey General Support 3 06-03-2005 12:04 PM
Any limitations on number of events in a month? Dave G General Support 5 01-22-2005 08:57 PM
Month and Year buttons (months just not showing) freshmint General Support 4 09-17-2004 11:14 AM



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