Changeset 158797
- Timestamp:
- 09/29/2009 12:21:04 AM (17 years ago)
- Location:
- admangler/trunk
- Files:
-
- 3 edited
-
adMangler.class.php (modified) (2 diffs)
-
adMangler.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admangler/trunk/adMangler.class.php
r158580 r158797 79 79 function FilterTheContent($content) 80 80 { 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 } 82 89 $content = str_replace('[AdMangler:BuyForm]', '', $content); 83 90 return $content; … … 124 131 $this->banners[$width."x".$height] = $results; 125 132 } 133 } 126 134 135 if (is_array($this->banners[$width."x".$height])) 136 { 127 137 $banner = array_shift($this->banners[$width."x".$height]); 128 138 array_push($this->banners[$width."x".$height], $banner); -
admangler/trunk/adMangler.php
r158580 r158797 4 4 Plugin URI: http://www.codeternals.com/AdMangler 5 5 Description: Display, sell, and manage ad space on your Wordpress powered site with AdMangler. 6 Version: 0.0. 5.1Alpha6 Version: 0.0.6 Alpha 7 7 Author: Webternals, LLC - Allen Sanford 8 8 Author URI: http://www.webternals.com/ -
admangler/trunk/readme.txt
r158580 r158797 5 5 Requires at least: 2.8.2 6 6 Tested up to: 2.8.4 7 Stable Tag: 0.0. 5.1.Alpha7 Stable Tag: 0.0.6.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.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 66 70 = 0.0.5.1 Alpha = 67 71 * Fixed empty array bug
Note: See TracChangeset
for help on using the changeset viewer.