[Pmwiki-users] show style for right box
Patrick R. Michaud
pmichaud
Wed Jan 19 09:44:50 CST 2005
On Wed, Jan 19, 2005 at 02:43:56PM +0000, Hans Bracker wrote:
[reformatted for me to read easier...]
>
> ## style rightbar box if not empty:
> global $HTMLStylesFmt;
> $rpage = ReadPage(FmtPageName('$Group.RightBar', $pagename));
> if ($rpage['text'] == '') $rpage = ReadPage('Main.RightBar');
> if ($rpage['text'] > '') {
> if ($sc == 'blue') {
> $HTMLStylesFmt[] = "#rightbar { background:#dfefff;}\n";
> } elseif ($sc == 'lavender') {
> $HTMLStylesFmt[] = "#rightbar { background:#f0e3ff;}\n";
> } elseif ($sc == 'comic') {
> $HTMLStylesFmt[] = "#rightbar { background:#FDEDD8;}\n";
> }
> };
Try adding a space before " #rightbar ..." in each of the above.
It may be that the previous item in the $HTMLStylesFmt array doesn't
end with whitespace, resulting in "...}#rightbar { background: ..."
which might not parse well.
> IE6 and Firefox pick this up fine and display the background color,
> whereas the Netscape and opera do not, the code is not there looking
> at the page source.
Do you have a page url where we could take a look? Also, are you
sure that the pages aren't being cached in Netscape and opera such
that you're always looking at a previous version of the page?
Pm
More information about the pmwiki-users
mailing list