Plugin Directory

Changeset 158797


Ignore:
Timestamp:
09/29/2009 12:21:04 AM (17 years ago)
Author:
webternals
Message:

AdMangler: 0.0.6.Alpha Bug fixes

Location:
admangler/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admangler/trunk/adMangler.class.php

    r158580 r158797  
    7979        function FilterTheContent($content)
    8080        {
    81             $content = str_replace('[AdMangler:468x60]', $this->GetAds(468, 60), $content);
     81            global $wpdb;
     82            $sql = "SELECT a.width, b.height FROM ".$wpdb->prefix."AdMangler_ads as a, ".$wpdb->prefix."AdMangler_ads as b ";
     83            $sql .= "WHERE a.height = b.height GROUP by b.height, a.width";
     84            $results = $wpdb->get_results($sql);
     85            foreach ($results as $banner)
     86            {
     87                $content = str_replace("[AdMangler:".$banner->width."x".$banner->height."]", $this->GetAds($banner->width, $banner->height), $content);
     88            }
    8289            $content = str_replace('[AdMangler:BuyForm]', '', $content);
    8390            return $content;
     
    124131                        $this->banners[$width."x".$height] = $results;
    125132                }
     133            }
    126134           
     135            if (is_array($this->banners[$width."x".$height]))
     136            {
    127137                $banner = array_shift($this->banners[$width."x".$height]);
    128138                array_push($this->banners[$width."x".$height], $banner);
  • admangler/trunk/adMangler.php

    r158580 r158797  
    44        Plugin URI: http://www.codeternals.com/AdMangler
    55        Description: Display, sell, and manage ad space on your Wordpress powered site with AdMangler.
    6         Version: 0.0.5.1 Alpha
     6        Version: 0.0.6 Alpha
    77        Author: Webternals, LLC - Allen Sanford
    88        Author URI: http://www.webternals.com/
  • admangler/trunk/readme.txt

    r158580 r158797  
    55Requires at least: 2.8.2
    66Tested up to: 2.8.4
    7 Stable Tag: 0.0.5.1.Alpha
     7Stable Tag: 0.0.6.Alpha
    88
    99Display, sell, and manage ad space on your Wordpress powered site with AdMangler.
     
    6464== Changelog ==
    6565
     66= 0.0.6 Alpha =
     67* Bug fixes dealing with multiple banner ads
     68* Bug fix dealing with the displaying with a post or page using the [AdMangler:468x60] style tags
     69
    6670= 0.0.5.1 Alpha =
    6771* Fixed empty array bug
Note: See TracChangeset for help on using the changeset viewer.