[Pmwiki-users] Re: Suggestion for change to printable-page.php

John Rankin john.rankin
Mon Jul 28 15:18:37 CDT 2003


Good idea -- I can't think of any obvious side effects. I'll update the version in the Cookbook tonight. You may be able to achieve the same effect in local.php by testing if ($action=='browse') before setting your text colour.

Thanks for the suggestion.
-- 
John Rankin
Affinity Limited
T 64 4 495 3737
F 64 4 473 7991
021 RANKIN
john.rankin at affinity.co.nz
www.affinity.co.nz/wiki

On Tuesday, 29 July 2003 3:03 AM, John Feezell <johnfeezell at 3wplace.com> wrote:
Hi John,

I appreciate your development of this script.  I have use it frequently.

Recently I made a change to $HTMLBodyFmt in my local.php as shown below.
This change was made so that http://lm.3wplace.com/wiki would conform to 
the style of a related website http://www.literarymachine.com .

-- my change in my local.php --
$HTMLBodyFmt = '</head><body text="#FFDEB9" bgcolor="#6B7EA6" 
link="#FFDEB9" alink="#FFDEB9" vlink="#FFDEB9"><div class="wikibody">';

After this change the text color carried over into your script and made the 
resulting screen output look rather "washed-out" and terrible.  The 
modification below resulted in a more consistent output for both the screen 
and the printer.

-- original code in printable-page.php --
    $HTMLHeaderFmt .= "<style type = 'text/css'> body { background-color: 
#ffffff; }
        a:link  { color: #444444; font-weight: bold; text-decoration: none; 
}
        a:visited  { color: #444444; font-weight: bold; text-decoration: 
none; }
    </style>";

-- modified code --
    $HTMLHeaderFmt .= "<style type = 'text/css'> body { background-color: 
#ffffff; color: #000000}
        a:link  { color: #444444; font-weight: bold; text-decoration: none; 
}
        a:visited  { color: #444444; font-weight: bold; text-decoration: 
none; }
    </style>";

What do you think about a permanent addition of color: #000000 in the body 
section so that future releases of printable-page.php would include it?

It there another way to set this without modifing printable-page.php?

Thanks.

/JF



 






More information about the pmwiki-users mailing list