View Full Version : Evolution error when ads in post.
athlon24
11-05-2008, 06:27 PM
When I put an ads inside the post, maybe after the title of the post or even a script inside the post, when it is published, the page will just be blank. AT first it will load then will it is completed, it turns into a white blank page. sarahG said before that it conflicts with the jquery thing. How will be fixed?
Kevin
11-06-2008, 12:12 AM
try removing <script src="<?php bloginfo('template_url'); ?>/js/jquery-1.2.6.pack.js" type="text/javascript"></script> from the header.php file and see if that fixes it.
just removed this from the official download package as it doesnt seem to be doing anything.
I believe this was causing some errors with google ads. Let me know if it's working ok :)
athlon24
11-06-2008, 06:10 AM
I'm sorry kevin but I can't find that line in my header.php. I am not quite sure if sarahG asked me to remove that line before when we are trying to deal with the jquery thing. I'll verify it.
sarahG
11-06-2008, 08:42 AM
No it's not conflicting with jQuery. I explained this in another thread - http://www.bloggingtips.com/forums/showthread.php?t=751
This line in theme.js
$(".post").wrap("<div class='post_c'><div class='post_b'>" + "</div></div>");
I believe is the cause of the problem for this particular issue. I can't explain why, but the AdSense ads don't seem to like the theme.js changes.
You could remove the line above from theme.js (or comment out with two forward slashes ie. // ) and see what happens. The AdSense should be fine, although I don't know what changes it will make to the look of the page, however the addition above can easily be done by hand and shouldn't require JavaScript to do it.
Kevin
11-06-2008, 05:26 PM
I just removed this from the js file in the demo area and I can't see anything different. I've put it back for now but if you find the same thing I'll remove it from the official download.
sarahG
11-06-2008, 07:22 PM
The only styling I can find for these two classes in both the default_blue and default_red.css files is
.post_c {
}
.post_b {
width: 100%;
}
So I'm not sure why the original theme developer put that in there. Maybe it was left over from something else or initial coding and wasn't removed afterwards.
To be honest there are a couple of lines in the theme.js file that are either not really needed or could just be manually added in. I don't know why they weren't in the first place. Only the widget classes are suitable there because they effectively add invalid code to achieve the way the boxes on the right look, which should be possible without the need for JS but the markup would need rewriting!
Kevin
11-06-2008, 11:00 PM
I need to find time one day and go through all the code for this as theres clearly a lot of code which was added and then not taken out.
I've taken that code out of the official download release. :)
vBulletin® v3.8.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.