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

Increase size of calendar navigation ( << & >> )
Old 06-14-2005, 03:35 PM   #1
ktech
Calendar User
 
ktech is offline
Join Date: Mar 2005
Posts: 10
Default Increase size of calendar navigation ( << & >> )

Hello,

Unfortunately this code only cycles between 3 months. How can I use my own navigation design beneath a calendar (previous, next and current) while retaining the calendar's ability to cycle between all months? Thank you.


Code:
 
<table class=navTable cellspacing=0 cellpadding=0>
<tr>
	<td align=left><a href="calendar.php?mo=4&amp;yr=2005"><span><<
Previous</span></a></td>
	<td align=center><a href="calendar.php?mo=05&amp;yr=2005"><span>- Current
-</span></a></td>
	<td align=right><a href="calendar.php?mo=6&amp;yr=2005"><span>Next >>
</span></a></td>
</tr>
</table>
 

Old 06-14-2005, 03:42 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
Default

You could use PHP to define your own $mo and $yr variables.
__________________
-- Brian

Questions?

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

Old 06-14-2005, 03:48 PM   #3
ktech
Calendar User
 
ktech is offline
Join Date: Mar 2005
Posts: 10
Default

Hi Brian, thanks for your fast reply. Would I do this on the page displaying the calendar? Can you demonstrate this for one of the three variables (Eg, next)? Thank you very much.
 

Old 06-14-2005, 04:08 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
Default

Next would be $mo+1
Prevoius would be $mo-1

You'd also need to check the $mo>=1 and $mo<=12 or you'd need to adjust the year too.
__________________
-- Brian

Questions?

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

Old 06-14-2005, 04:32 PM   #5
ktech
Calendar User
 
ktech is offline
Join Date: Mar 2005
Posts: 10
Default

Hi Brian,

I applied the items you mentioned as demonstrated here but this did not work. I am not conversant in PHP.

<table class=navTable cellspacing=0 cellpadding=0>
<tr>
<td align=left><a href="calendar.php?$mo-1&amp;yr-1"><span><<
Previous</span></a></td>
<td align=center><a href="calendar.php?mo=05&amp;yr=2005"><span>- Current
-</span></a></td>
<td align=right><a href="calendar.php?$mo+1&amp;yr+1"><span>Next >>
</span></a></td>
</tr>
</table>
 

Old 06-14-2005, 04:47 PM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
Default

I'm not sure I completely understand what you're trying to do?

Is it just to make the << and >> larger? Or do you need to devise another system?
__________________
-- Brian

Questions?

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

Old 06-16-2005, 04:32 PM   #7
ktech
Calendar User
 
ktech is offline
Join Date: Mar 2005
Posts: 10
Default

Hello Brian,

Thanks for your help. Please see what I have done with:

http://sunriseacademy.org/calendar.php

The custom next, current and previous buttons do not cycle through all the months. What must I do to remedy this problem? Thanks.
 

Old 06-16-2005, 04:37 PM   #8
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
Default

What I primarily don't understand is why you need to make them "custom". Do the normal navigation arrows not work correctly?
__________________
-- Brian

Questions?

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

Old 06-16-2005, 04:40 PM   #9
ktech
Calendar User
 
ktech is offline
Join Date: Mar 2005
Posts: 10
Default

Hi Brian,

SunRise complained they were too small. That is why I had to modify them.
 

Old 06-16-2005, 04:42 PM   #10
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
Default

You can modify the size. Look in the theme/default directory for esstyle.css.

In that file look for:

.navTableText {
font-family: Geneva, Verdana, Arial, sans-serif;
font-size: 9px;
font-weight: Normal;
text-decoration: none;
color: #003366;
}

Change the font-size to any size you wish (and any other options too).

In the Setup Manager, you can change the text for the navigation to match what you're using now.
__________________
-- Brian

Questions?

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

Old 06-16-2005, 08:06 PM   #11
ktech
Calendar User
 
ktech is offline
Join Date: Mar 2005
Posts: 10
Default

Thanks Brian!....seems to be working OK now.
 

Old 12-13-2007, 10:28 PM   #12
liqiud
Calendar User
 
liqiud is offline
Join Date: Nov 2006
Posts: 8
Default

I keep changing the .navtable text but it's not making any difference. The rest of the css changes took place fine. Any ideas?

www.paintballgeex.com/nuke
 

Old 12-13-2007, 11:18 PM   #13
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
Default

This thread is over two years old and the information contained therein may not be relevant any longer.

Please start a new thread so we can help you.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths 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
Mini calendar size and style cmb1202 General Support 2 07-17-2005 11:15 PM
Reducing the Size of the Big Calendar ITWeb General 1 06-09-2005 03:50 PM
Error with << and >> firstrebel General Support 12 06-05-2005 08:30 PM
Error with the << and >> Navigation links on my home page. mickknutson General Support 6 03-14-2005 01:58 PM



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