Changeset 176655
- Timestamp:
- 11/24/2009 08:28:15 PM (16 years ago)
- Location:
- admangler/trunk
- Files:
-
- 3 edited
-
adMangler.class.php (modified) (3 diffs)
-
adMangler.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admangler/trunk/adMangler.class.php
r161639 r176655 140 140 global $wpdb; 141 141 $str = ""; 142 if (!isset($this->banners[$width."x".$height]) )142 if (!isset($this->banners[$width."x".$height]) || empty($this->banners[$width."x".$height])) 143 143 { 144 144 $sql = "SELECT type,code FROM $this->adsTable WHERE width=$width and height=$height and active and approved and NOT base ORDER BY RAND()"; … … 146 146 if ($results) 147 147 $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) 149 152 { 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); 154 154 } 155 155 } … … 161 161 $str = $this->FormatAd($banner->type, $banner->code); 162 162 } 163 164 163 if ($return) return $str; else echo $str; 165 164 } // End function GetAds -
admangler/trunk/adMangler.php
r161639 r176655 4 4 Plugin URI: http://www.webternals.com/products/admangler/ 5 5 Description: Display, sell, and manage ad space on your Wordpress powered site with AdMangler. 6 Version: 0.0.7 Alpha6 Version: 0.0.7.1.Alpha 7 7 Author: Webternals, LLC - Allen Sanford 8 8 Author URI: http://www.webternals.com/ -
admangler/trunk/readme.txt
r161642 r176655 4 4 Tags: Ads 5 5 Requires at least: 2.8.2 6 Tested up to: 2.8. 47 Stable Tag: 0.0.7. Alpha6 Tested up to: 2.8.6 7 Stable Tag: 0.0.7.1.Alpha 8 8 9 9 Display, sell, and manage ad space on your Wordpress powered site with AdMangler. … … 64 64 == Changelog == 65 65 66 = 0.0.7.1.Alpha = 67 * Minor Bug fix 68 * Updated compatiablity version 69 66 70 = 0.0.7 Alpha = 67 71 * Implemented jQuery and jQuery validate plugin to do the validations on the forms
Note: See TracChangeset
for help on using the changeset viewer.