Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: grid spacing  (Read 516 times)
0 Members and 1 Guest are viewing this topic.
Sheila Hoffman
New Member
*

Karma: 0
Offline Offline

Posts: 0

graphic designer


WWW
« on: December 04, 2002, 08:43:00 AM »

I have two iterations of Calendar Script installed, one the old one and one the new. I'm in the process of updating the old one to the new. I prefer the default to be grid view, but often we only have a few items in a month. Weeks with no entries squash down to tiny rows. I'm wondering if there's a way to make it so all the boxes come up about the same size as in the old version so it always looks like a monthly calendar even if the boxes are empty.

Old one:
www.eastsidearts.org/cgi-bin/calendar/calendar.pl

New one:
www.evergreentandemclub.org/cgi-bin/calendar.pl

------------------
Sheila Hoffman
Newsletters & More
Fast, Affordable, Effective
Full-Service Web & Print Design in Seattle
www.newslettersandmore.net

Logged

Sheila Hoffman
Newsletters & More
Fast, Affordable, Effective
Full-Service Web & Print Design in Seattle
www.newslettersandmore.net

DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: December 04, 2002, 03:17:00 PM »

** I'm wondering if there's a way to make it so all the boxes come up about the same size as in the old version  **

The grids are not all the same size when *I* view your old version.

If you knew how many rows were to be displayed in the calendar you could try adding a height attribute by percentage (eg. height="20%" for a 5 row calendar, height="16.67%" for a 6 row calendar) to the table cells. But that is not an HTML standard and may or may not work in all/any browsers.

Alternately, you could code the template to insert a transparent 1x1 pixel .gif stretched to some arbitrary height in the blank grids to make them always have at least that height.

Dan O.


[This message has been edited by DanO (edited December 04, 2002).]

Logged
Sheila Hoffman
New Member
*

Karma: 0
Offline Offline

Posts: 0

graphic designer


WWW
« Reply #2 on: December 04, 2002, 03:24:00 PM »

Dan:

Thanks for the response. You're correct, they're not all the SAME. I wasn't really accurate. But when there's nothing at all on the calendar in the old style there was still vertical space in each empty date box. In the new style if there's a lot there it takes up the space appropriately however, if there's nothing there it shrinks and when a whole month is empty it looks pretty ridiculus to my eyes.

I imagine both of your solutions could work. They both sound a little beyond my experience for implementing. Right now I'm in the throws of setting up my new install and can't think about this. I was hoping for a simple setting within the existing files.

Thanks,
Sheila

------------------
Sheila Hoffman
Newsletters & More
Fast, Affordable, Effective
Full-Service Web & Print Design in Seattle
www.newslettersandmore.net

Logged

Sheila Hoffman
Newsletters & More
Fast, Affordable, Effective
Full-Service Web & Print Design in Seattle
www.newslettersandmore.net

Sheila Hoffman
New Member
*

Karma: 0
Offline Offline

Posts: 0

graphic designer


WWW
« Reply #3 on: December 04, 2002, 03:52:00 PM »

Just finished getting the new install done. It's at a temporary address but you can easily see what I mean. I've only entered one event and the other weeks looks swished.

http://www.wwwroot4.net/~eac/cgi-bin/calendar.pl?calendar=default

Sheila

------------------
Sheila Hoffman
Newsletters & More
Fast, Affordable, Effective
Full-Service Web & Print Design in Seattle
www.newslettersandmore.net

Logged

Sheila Hoffman
Newsletters & More
Fast, Affordable, Effective
Full-Service Web & Print Design in Seattle
www.newslettersandmore.net

DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #4 on: December 04, 2002, 07:10:00 PM »

** I was hoping for a simple setting within the existing files.  **

Any solution will require editing if the default.html template file.

There should be code in there (maybe several times) like
<%IF EVENTS EXIST%> followed a couple of lines later by
<%/IF%>. All that sould be necessary is adding the code
you want inserted before the <%/IF%> and preceeding
it with an <%/ELSE%>.  Eg.

<%IF EVENTS EXIST%>
several
lines
of
code
follow

<%ELSE%> (You to add this)
code (You to add this)
you  (You to add this)
want (You to add this)
inserted (You to add this)
if (You to add this)
no (You to add this)
events (You to add this)

<%/IF%>

Of course, you don't actually add the bracketed statement (You to add this). BTW. Even a bunch of <BR>'s would add height to an empty grid.

Dan O.


[This message has been edited by DanO (edited December 04, 2002).]

Logged
vanessa
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: August 03, 2004, 11:51:00 AM »

Sheila doesn't want the swished cells
( http://www.wwwroot4.net/~eac/cgi-bin/calendar.pl?calendar=default  )
By the way, a very nicely designed site.

But I would like the effect. What do I need to change in the default template
( http://www.lifechurchministries.org/cgi-bin/calendar.cgi  )

Thanks.
vanessa

Logged
Pages: [1]   Go Up
Print
Jump to: