Hi
Can someone point me in the right direction?
I have a blogs plugin for my php site but its in MVC. All my blogs are working fine but i dont know how i can insert google adsense into the middle of the contents "middle of blog post" so google ad will show.
This is the code from blogs/views/scipts/index/view.tpl
Code:
<h2>
<?php echo $this->blog->getTitle() ?>
</h2>
<ul class='blogs_entrylist'>
<li>
<div class="blog_entrylist_entry_date">
<?php echo $this->translate('Posted by');?> <?php echo $this->htmlLink($this->owner->getHref(), $this->owner->getTitle()) ?>
<?php echo $this->timestamp($this->blog->creation_date) ?>
<?php if( $this->category ): ?>
-
<?php echo $this->translate('Filed in') ?>
<a href='javascript:void(0);' onclick='javascript:categoryAction(<?php echo $this->category->category_id?>);'><?php echo $this->translate($this->category->category_name) ?></a>
<?php endif; ?>
<?php if (count($this->blogTags )):?>
-
<?php foreach ($this->blogTags as $tag): ?>
<a href='javascript:void(0);' onclick='javascript:tagAction(<?php echo $tag->getTag()->tag_id; ?>);'>#<?php echo $tag->getTag()->text?></a>
<?php endforeach; ?>
<?php endif; ?>
-
<?php echo $this->translate(array('%s view', '%s views', $this->blog->view_count), $this->locale()->toNumber($this->blog->view_count)) ?>
</div>
<div class="blog_entrylist_entry_body rich_content_body">
<?php echo $this->blog->body ?>
</div>
</li>
</ul>
<script type="text/javascript">
$$('.core_main_blog').getParent().addClass('active');
</script>
does anyone know how to insert google adsense into my posts?
thanks for helping