miscellany
« Home »
« E-mail / AIM »
« Atom Feed »
« Blogger.com Profile »
playing favorites
second best
outside
mind's eye
autobiography
enqueue
enqueue :: CD enqueue :: CD enqueue :: CD
enqueue :: book enqueue :: book enqueue :: book
Thursday, January 30, 2003

Got this e-mail in response to a question about Calcium, a web calendar we use @ ApexCommunity.net and SummitSix12.net. I doubt you're interested, but it's here incase I ever need the info again.

Hello Ian-

Right, as you've found, Calcium doesn't have CSS support built in, and there's no settings for attributes for the BODY tag. However, you can do the latter with a small modification to one of the Perl source code files.

Just copy the Calcium file "Calendar/Body.pm" into the "upgrades/Calendar" directory, then edit the new copy. At line #18 or so, you'll see this:

    $self->{'html'} = '<body text="' . $prefs-=color ('MainPageFG') . '"' .
                      $vlink .
                      'link="' . $prefs->color ('LinkFG') . '" ';

Add a line for bgproperties, e.g.:

    $self->{'html'} = '<body text="' . $prefs-=color ('MainPageFG') . '"' .
                      $vlink .
                      'bgproperties="fixed"' .
                      'link="' . $prefs->color ('LinkFG') . '" ';

be careful with the quotes, and note the period at the end of that new line.

Hope this helps;
Regards
   -Fred Steinberg
   Brown Bear Software

How cool is that? The author wrote back to me in under 24 hours telling me how I can modify his scripts to do what I want them to.

Comments:


Add a Comment

Blogger.com flickr Feedback by BackBlog
Valid XHTML 1.1 Valid CSS 2