BNWFinance-
The problem has to do with where you are telling AdSense to be placed. Essentially, in order to get the effect that you are talking about, you need to call Adsense from within the article itself.
Here is a way to do this. Since you are using php, first take your adsense block code and throw it into a variable, along with a div that floated left.
First let's setup the CSS. Put this in the header:
Code:
<style type="text/css">
#container { width:600px; margin-left:auto; margin-right:auto; }
#adsense { float: left; margin:2px; }
</style>
Now, let's setup a php variable that contains a div and the adsense block:
Code:
<?
$adsense = '<div id="adsense">
<script type="text/javascript"><!--
wickedfire_ad_client = "pub-3667831486677476";
wickedfire_ad_width = 336;
wickedfire_ad_height = 280;
wickedfire_ad_format = "336x280_as";
wickedfire_ad_type = "text_image";
//2007-01-19: Redbox Codes
wickedfire_ad_channel = "5419184216";
//--></script>
<script type="text/javascript"
src="show_ads.js">
</script>
</div>';
?>
Great, now we've got a variable that will display an adsense block anytime you call $adsense in php. Next, you need to add that simple string $adsense somewhere in your article text, most probably near the top after the first 1 - 3 sentences. So your article.txt may look something like this:
Have you ever tried widgets? I have, and I think that green widgets are the best. $adsense There are many different types of widgets and one must take many different things into account when evaluating widgets for their own personal use.
PHP will throw the adsense block right in the middle of the article, and since it's floated to the left, the text will wrap around to the right.
I've setup an example for you here, feel free to peak around at the code and how it looks after it's rendered:
WickedFire Test
Let me know if you have any questions...