[Plugin: All in One Adsense and YPN] SERIOUS BUG 02/02/2009
-
Hi,
I am not sure whether this will apply to all blogs etc. I found a little bug, basically before each advert it was invalid html tags. <p and <br.
I had a quick look through the code and right down the very bottom of the source code you have:
$repchar = “<p”;
if(strpos($content, “<p”) === false)
$repchar = “<br”;This was causing the problem. So I changed it to:
$repchar = “<p>”;
if(strpos($content, “<p>”) === false)
$repchar = “”;[EDIT]
You also need to change
$content = substr_replace($content, $replacewith.$repchar, $pickme, 2);
to
$content = substr_replace($content, $replacewith.$repchar, $pickme, 0);
Now it works fine, I suggest people check what the plugin is doing on your blog.
- The topic ‘[Plugin: All in One Adsense and YPN] SERIOUS BUG 02/02/2009’ is closed to new replies.