wordpress ad rotator?

Discussion in 'WordPress' started by Solid_Nuts, Nov 4, 2008.

  1. #1
    I've been looking for a plugin that can display 6 125px ad blocks simutaniously but at random order? is there any such plugin?

    I've tried WPAds plugin but it only shows 1 at a time.

    anyone know of any such plugin?
     
    Solid_Nuts, Nov 4, 2008 IP
  2. seohyderabad

    seohyderabad Peon

    Messages:
    1,190
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try using max banner ads plugin
     
    seohyderabad, Nov 4, 2008 IP
  3. magicinthedesert

    magicinthedesert Peon

    Messages:
    143
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Using the adrotator plugin, you could create 6 different ad text files, each containing the code for the 6 ads you wanted to rotate, and display them on the same page and use css or a table to arrange them neatly.
     
    magicinthedesert, Nov 5, 2008 IP
    uzair21 likes this.
  4. Solid_Nuts

    Solid_Nuts Active Member

    Messages:
    886
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #4
    thanks magicinthedesert, I actually thought of that but wasn't sure how it would work exactly, I'll give that a shot now.

    @seohyderabad thanks for the tip, tried it out and it seems pretty good but it's not really free so i won't be using it.

    Edited: I just got accepted at openx.org for the beta hosted service and I know that can do it so I'll try that out.
     
    Solid_Nuts, Nov 5, 2008 IP
  5. uzair21

    uzair21 Peon

    Messages:
    502
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    All you need to have is Adrotator plugin for wordpress. That should solve your problem.
     
    uzair21, Nov 6, 2008 IP
  6. magicinthedesert

    magicinthedesert Peon

    Messages:
    143
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Let me know how that goes. Here's some direction.

    1. Create 6 .txt files, each containing the code to your banner ads
    2. Upload those .txt files into the wp-content folder
    3. Place those ads using this code:
    < ?php echo getad('bannerad') ?>
    Code (markup):
    where bannerad is the name of your .txt file. You'll have 6 different sets of this code, each with a different .txt file name.
    4. Place divs around the groups you want for easy styling using CSS, or create a table layout


    If you need additional help, let me know.
     
    magicinthedesert, Nov 6, 2008 IP
  7. Solid_Nuts

    Solid_Nuts Active Member

    Messages:
    886
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Thanks for the tips, unfortunately there is one problem.. ad rotator pulls the ads randomly so using this method i would end up with the possibility of duplicated ads loading at the same time.. I've left a message on his blog asking if there is a simple way to modify the php so it doesn't load them randomly so I'll see how it goes.

    Thanks again.
     
    Solid_Nuts, Nov 9, 2008 IP
  8. zdrol

    zdrol Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I don't know if you've fixed your problem yet or not, but here is a modified adrotator.php that will read in all of the ads from your text file, and spit them all out in a random order. hope this helps.
    
    <?php
    function getad($ad = '') {
      $ad = trim($ad);
      if(strlen($ad) > 0) {
        $ad = ABSPATH . "wp-content/" . $ad . '.txt';
        if(file_exists($ad)) {
          $ads = file($ad);
          shuffle($ads);
          $output = "";
          foreach($ads as $entry) {
             $output = $output . $entry;
          }
          return $output;
        }
      }
    }
    ?>
    
    
    Code (markup):
     
    zdrol, Dec 2, 2008 IP