Plugin Directory

Changeset 176655


Ignore:
Timestamp:
11/24/2009 08:28:15 PM (16 years ago)
Author:
webternals
Message:

AdMangelr 0.0.7.1.Alpha

Location:
admangler/trunk
Files:
3 edited

Legend:

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

    r161639 r176655  
    140140            global $wpdb;
    141141            $str = "";
    142             if (!isset($this->banners[$width."x".$height]))
     142            if (!isset($this->banners[$width."x".$height]) || empty($this->banners[$width."x".$height]))
    143143            {
    144144                $sql = "SELECT type,code FROM $this->adsTable WHERE width=$width and height=$height and active and approved and NOT base ORDER BY RAND()";
     
    146146                if ($results)
    147147                    $this->banners[$width."x".$height] = $results;
    148                 else
     148
     149                $sql = "SELECT type,code FROM $this->adsTable WHERE width=$width and height=$height and active and approved and base ORDER BY RAND()";
     150                $results = $wpdb->get_results($sql);
     151                if ($results)
    149152                {
    150                     $sql = "SELECT type,code FROM $this->adsTable WHERE width=$width and height=$height and active and approved and base ORDER BY RAND()";
    151                     $results = $wpdb->get_results($sql);
    152                     if ($results)
    153                         $this->banners[$width."x".$height] = $results;
     153                    $this->banners[$width."x".$height] = array_merge($this->banners[$width."x".$height], $results);
    154154                }
    155155            }
     
    161161                $str = $this->FormatAd($banner->type, $banner->code);
    162162            }
    163 
    164163            if ($return) return $str; else echo $str;
    165164        } // End function GetAds
  • admangler/trunk/adMangler.php

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

    r161642 r176655  
    44Tags: Ads
    55Requires at least: 2.8.2
    6 Tested up to: 2.8.4
    7 Stable Tag: 0.0.7.Alpha
     6Tested up to: 2.8.6
     7Stable Tag: 0.0.7.1.Alpha
    88
    99Display, sell, and manage ad space on your Wordpress powered site with AdMangler.
     
    6464== Changelog ==
    6565
     66= 0.0.7.1.Alpha =
     67* Minor Bug fix
     68* Updated compatiablity version
     69
    6670= 0.0.7 Alpha =
    6771* Implemented jQuery and jQuery validate plugin to do the validations on the forms
Note: See TracChangeset for help on using the changeset viewer.