By PipSqueak on
Does anyone know how to change the node.tpl.php to break the " print $content " in the middle so that I can insert the adsense include in the middle of each content? I do not like to include adsense manually in each article, I hope to have this done automatically if possible.
Thanks
Comments
Easy as Pie
http://urlgreyhot.com/personal/weblog/drupal_tip_2_sprinkling_ads_throug...
That should do it for you.
Cheers
jacauc
insert_block module for ads between teaser and body
or inserted somewhere else in the body.
I've been testing the use of the insert_block module to place ad code inside stories.
add code like [block:block=35] in the article body text. Seems to work OK so far.
I had attempted to use reptags for the same purpose but didn't have success and the block admin interface is easier to paste in ad server invocation code.
This is better than hardwired in the template/code in that staff can change as required through the browser. Downside is that old articles do not have the tags.