I've tested GoogleAds on my site today and well I gotta say they screwed everything up big time.
I pasted the GoogleAds code into my theme.html, cause I'm not going to put it in a block and have double borders.
Here's what the relevant part of my theme.html looks like:
<td width="125" valign="top">
<{foreach item=block from=$xoops_lblocks}>
<{include file="../themes/xxxxx/theme_blockleft.html"}>
<{/foreach}>
td>
I added the code to the cell, right after/below the left menu loop:
<td width="125" valign="top">
<{foreach item=block from=$xoops_lblocks}>
<{include file="../themes/PlanetSmilies/theme_blockleft.html"}>
<{/foreach}>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
script>
td>
...while the rest of the GoogleAds code (the part with colors, ad format, account info and stuff like that) went into the HEAD so it would be good friend with the rest of my jscripts there.
Here's that part too:
<script type="text/javascript">
I tested the whole thing, it worked. I added a
to seperate the ads more from the left hand menu and everything crashed. What I got was a white page, no error messages whatsoever.
I removed the
, and in return got my logo and background color back. -.- I removed all GoogleAds code, got me a new one from GoogleAdsense and this time it worked again. I centered the ads using
<div align="center"><center>center>div>
and it ceased working. I removed some spaces before and after the ad code and it worked once more.
Long story short, it seems absolutely random. A simple or
or empty line would make the whole page work or crash it. Not just the left hand menu, but THE WHOLE THING. I would sometimes get nothing but the logo, background and random jscript snipplets.
Five minutes ago I went to check my page again and I got a white page and
Error [Xoops]: Unable to connect to database
in file class/database/databasefactory.php line 34
Can somebody tell me what on earth is going on?