Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Wordpress - oglasi između postova

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
Nemesis



Joined: 01 Oct 2005
Posts: 732

PostPosted: 10.09.2008 23:35    Post subject: Wordpress - oglasi između postova Add user to your forum ignore list Reply with quote

E skužio sam da mi dosta ekipe veselo klikče na reklame u postu, ali njih nemam na homepageu, pa me zanima koji plugin mogu staviti da imam tako eTarget ili neki affiliate oglas nakon nekog n-tog posta na homepageu??

_________________
Webastično.com | Last.fm | Twitter
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger Twitter profile
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 11.09.2008 05:44    Post subject: Add user to your forum ignore list Reply with quote

Code:
<?php if (have_posts()) : ?>

   <?php $cnt = 0; ?>

   <?php while (have_posts()) : the_post(); ?>
   
      <?php $cnt++; ?>

      <!-- prikaz posta -->
   
      <?php
      
         // samo nakon prvog posta:
         if ($cnt == 1) { include (TEMPLATEPATH . '/oglas.php'); }
         
         // svaki drugi
         if ($cnt % 2 == 0) { include (TEMPLATEPATH . '/oglas.php'); }
         
         // svaki treći
         if ($cnt % 3 == 0) { include (TEMPLATEPATH . '/oglas.php'); }
         
      ?>

   <?php endwhile; ?>

<?php else : ?>

   <!-- Nema postova -->
   
<?php endif; ?>

http://us.php.net/operators.arithmetic

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Nemesis



Joined: 01 Oct 2005
Posts: 732

PostPosted: 11.09.2008 14:33    Post subject: Add user to your forum ignore list Reply with quote

Hvala Very Happy

_________________
Webastično.com | Last.fm | Twitter
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group