Looking for Plugin that lets u insert ads

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lakerslive
    Confirmed User
    • Aug 2012
    • 929

    #1

    Looking for Plugin that lets u insert ads

    Between Posts. I am using a wordpress tube site

    ex

    Video 1
    Video 2
    Video 3
    --ad--
    video 4
    video 5

    tnx. I;'ve google around, nothin..
  • CaptainHowdy
    Too lazy to set a custom title
    • Dec 2004
    • 94730

    #2
    Lil' bump for you ...

    Comment

    • HomerSimpson
      Too lazy to set a custom title
      • Sep 2005
      • 13826

      #3
      how about using wp shortcodes...

      here's how to do it...

      In posts you put these tags where you want those ads
      [videoad1]
      [videoad2]
      [videoad3]

      and in functions.php you simply add:

      Code:
      function videoad1_shortcode(){
      	return 'ad1 html goes here';
      }
      function videoad2_shortcode(){
      	return 'ad2 html goes here';
      }
      function videoad3_shortcode(){
      	return 'ad3 html goes here';
      }
      add_shortcode('videoad1', 'videoad1_shortcode');
      add_shortcode('videoad2', 'videoad2_shortcode');
      add_shortcode('videoad3', 'videoad3_shortcode');
      need more help... feel free to contact me... email in sig...
      Make a bank with Chaturbate - the best selling webcam program
      Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

      PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

      Comment

      • Brian mike
        #Alberta51
        • Oct 2014
        • 8735

        #4
        I was looking for this for one of my site. Will try it out
        Tube - Cam - Escorts - Top List
        Menu Tab - Banner - Header Link - Blog Post
        DM me

        Comment

        • fris
          Too lazy to set a custom title
          • Aug 2002
          • 55679

          #5
          Originally posted by lakerslive
          Between Posts. I am using a wordpress tube site

          ex

          Video 1
          Video 2
          Video 3
          --ad--
          video 4
          video 5

          tnx. I;'ve google around, nothin..
          you can add to the theme code to load after every 3rd post, you bascially check the post count in the loop.

          just add it before the end of the loop, or wherever you want it to show up in the markup of the theme code.

          something like this.

          Code:
          if ( ( $wp_query->current_post + 1 ) % 3 === 0 ) {
              echo 'after every 3rd post'; // add the html ad code here
          }
          or

          Code:
          <?php if ( ( $wp_query->current_post + 1 ) % 3 === 0 ) :?>
          
          <a href="http://gfy.com"><img src="ad.jpg"></a>
          
          <?php endif;?>
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

          Comment

          • HomerSimpson
            Too lazy to set a custom title
            • Sep 2005
            • 13826

            #6
            Good point fris!
            Somehow I overlooked the fact that it has to be inside a list...
            %3===0 is the way to go...
            Make a bank with Chaturbate - the best selling webcam program
            Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

            PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

            Comment

            • fris
              Too lazy to set a custom title
              • Aug 2002
              • 55679

              #7
              Originally posted by HomerSimpson
              Good point fris!
              Somehow I overlooked the fact that it has to be inside a list...
              %3===0 is the way to go...
              i think wp changed the way the post count is, when doing %3 === 0, it showed after the first post.

              i think it counts first as zero, and second as 1
              Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

              Comment

              Working...