View Single Post
Old 09-29-2009, 12:45 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,576
http://meandmymac.net/plugins/adrotate/

I dont like to spam a banner after every post, I like to put every three posts

this will show a random banner using zone 1 with adrotate

Code:
<?php if (have_posts()) : ?>
 
<?php $count = 0; ?>
 
<?php while (have_posts()) : the_post(); ?>
 
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?></small>
 
<div class="entry">
<?php the_content('Read the rest of this entry &raquo;'); ?>
</div>
 
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
</div>
 
<?php if(++$counter % 3 == 0) : ?>

<?php echo adrotate_banner('1'); ?>

<?php endif; ?>
 
<?php endwhile; ?>
<?php endif; ?>
hope this helps
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Gallery Scraper / WPXXX Theme / Free Templates
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote