Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Customizations (Themes / Templates)

Customizations (Themes / Templates) Help with customizing the themes and templates. Post your own custom themes for others to enjoy.

Closed Thread
 
Thread Tools Search this Thread Display Modes

calendar start date
Old 09-29-2006, 05:22 PM   #1
danny1
Calendar User
 
danny1 is offline
Join Date: Sep 2006
Posts: 16
Default calendar start date

hi,

in the normal calendar mode, i defined the start date for the calendar as:

$mo="10";
$yr="2006;

however, in doing this i am only able to see october. what i'd like to do is have the calendar start oct 2006, but then be navigable for future dates. is this possible.

http://www.wired-gallery.com/pages/home.php for example.

thanks,

dan
 

Old 09-29-2006, 05:33 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

If you define it in the page that way, it will always override any other variables that would normall change the month that is being displayed.

What you could do is:

PHP Code:
 <?php
if (!$_REQUEST['mo'])  $mo="10";
if (!
$_REQUEST['yr'])  $yr="2006";
?>
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

Old 09-29-2006, 11:23 PM   #3
danny1
Calendar User
 
danny1 is offline
Join Date: Sep 2006
Posts: 16
Default

should the code be in the body or the head?
 

Old 09-30-2006, 10:39 AM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

It doesn't matter where the code is added to your page, as long as it's before the final require("calendar.php"); command.
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

Old 09-30-2006, 12:12 PM   #5
danny1
Calendar User
 
danny1 is offline
Join Date: Sep 2006
Posts: 16
Default

sorry brian,

i seem to be doing something wrong. i'm entering the code however, wherever i put it i end up with a just a white screen - which i've learned means there's something wrong with the php code.

-dan
 

Old 09-30-2006, 12:45 PM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

My code was wrong.

I've edited my origianl post. Try it now.
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 
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 Start Date najm General Support 4 09-29-2006 05:17 PM
Click on calendar and enter date into a form - is it possible? macho General Support 15 09-21-2006 03:15 PM
Start List Mode calendar from future date tpiper General Support 3 04-04-2006 08:51 AM
start date / end date mbstuart General 5 12-22-2005 08:53 AM
Not correct URL when clicking on a date in calendar! johannae General 13 09-02-2005 08:57 AM



All times are GMT -4. The time now is 09:47 PM.


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 |