[pmwiki-users] Re: Formatting help?

Graham Poole ve4grm at rac.ca
Tue Oct 11 01:58:08 CDT 2005


Graham Poole <ve4grm <at> rac.ca> writes:

> 
> So I'm having a bit of trouble formatting my wiki (2.0.6).
  I use a free host
> that puts a banner ad as soon as the <body> tag shows up on the page.
  It worked
> just fine, up until a few days ago, and then, well, it does this:
> 
> http://redmage.siteburg.com/pmwiki/
> 
> so instead of a banner, I get
> 
> '); } // -->

So I seem to have found the problem.
I'm guessing the host changed their banner code lately,
and now FireFox reads it improperly.
Somehow, IE reads it correctly (weird, I know).

The issue occurs at this point in the page source,
right at the end of the banner code:

<SCRIPT language='JavaScript'>
// <!--
document.write('<font size=-3>
<img src="http://register.siteburg.com/g/cw.gif?redmage1"
height=1 width=1% border="0" name="CheckWidth" hspace=0 vspace=0>');
document.write('<img src="http://register.siteburg.com/g/ch.gif?redmage1"
height=1% width=1 border="0" name="CheckHeight"
hspace=0 vspace=0>
<br clear=all></font>');
if((self.parent==self||((self.length==0)
&&(document.images.CheckWidth.width>4)
&&document.images.CheckHeight.height>2)))
{
document.write('<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>');
}
// -->
</SCRIPT>

The second-last /script is read and closes off the initial SCRIPT,
as opposed to the script command directly before it.
(I know this because FireFox highlights certain parts of page sources)
This means the if statement isn't finished properly and
      '); } // -->    gets ouput as plain text.

Somehow this exact code works fine on non-pmwiki pages...
Any ideas why?  Or how to fix it?
I'm currently re-downloading FireFox,
and if I have to I'll use IE for now, but I'd prefer not to.

By the way, the previous two links will not work any more
(the second error stopped and became this one anyways)
as I reinstalled pmwiki to

http://redmage.siteburg.com/pmwiki/pmwiki.php

Bear in mind this is an install of 2.0.10 straight out
of the zip file with no modifications to any code,
not even any pages added yet.

Graham Poole





More information about the pmwiki-users mailing list