Version Description
Download this release
Release Info
Developer | redwallhp |
Plugin | WP125 |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.2
- readme.txt +1 -1
- wp125.php +3 -2
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Donate link: http://www.webmaster-source.com/donate/?plugin=wp125
|
|
6 |
Tags: ads, 125x125, management, advertisement
|
7 |
Requires at least: 2.3
|
8 |
Tested up to: 2.7.1
|
9 |
-
Stable tag: 1.3.
|
10 |
|
11 |
Easy management of 125x125 ads on your blog. Ads can be run for a specified number of days, and will automatically be taken down. Track clicks too.
|
12 |
|
6 |
Tags: ads, 125x125, management, advertisement
|
7 |
Requires at least: 2.3
|
8 |
Tested up to: 2.7.1
|
9 |
+
Stable tag: 1.3.2
|
10 |
|
11 |
Easy management of 125x125 ads on your blog. Ads can be run for a specified number of days, and will automatically be taken down. Track clicks too.
|
12 |
|
wp125.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.webmaster-source.com/wp125-ad-plugin-wordpress/
|
|
5 |
Description: Easily manage 125x125 ads within your WordPress Dashboard.
|
6 |
Author: Matt Harzewski (redwall_hp)
|
7 |
Author URI: http://www.webmaster-source.com
|
8 |
-
Version: 1.3.
|
9 |
*/
|
10 |
|
11 |
|
@@ -114,7 +114,8 @@ $setting_defaultad = get_option("wp125_defaultad");
|
|
114 |
$adtable_name = $wpdb->prefix . "wp125_ads";
|
115 |
if (!defined('ADLINK_EXTRA')) { define("ADLINK_EXTRA", ""); }
|
116 |
if ($setting_ad_order == 'random') { $theorder = 'RAND() LIMIT '.$setting_num_slots; } else { $theorder = 'slot ASC'; }
|
117 |
-
$
|
|
|
118 |
if ($setting_ad_orientation=='1c') {
|
119 |
echo '<div id="wp125adwrap_1c">'."\n";
|
120 |
$arraycount = 0;
|
5 |
Description: Easily manage 125x125 ads within your WordPress Dashboard.
|
6 |
Author: Matt Harzewski (redwall_hp)
|
7 |
Author URI: http://www.webmaster-source.com
|
8 |
+
Version: 1.3.2
|
9 |
*/
|
10 |
|
11 |
|
114 |
$adtable_name = $wpdb->prefix . "wp125_ads";
|
115 |
if (!defined('ADLINK_EXTRA')) { define("ADLINK_EXTRA", ""); }
|
116 |
if ($setting_ad_order == 'random') { $theorder = 'RAND() LIMIT '.$setting_num_slots; } else { $theorder = 'slot ASC'; }
|
117 |
+
$exclude_sql = "AND slot NOT IN ($exclude)";
|
118 |
+
$theads = $wpdb->get_results("SELECT * FROM $adtable_name WHERE status = '1' $exclude_sql ORDER BY $theorder", ARRAY_A);
|
119 |
if ($setting_ad_orientation=='1c') {
|
120 |
echo '<div id="wp125adwrap_1c">'."\n";
|
121 |
$arraycount = 0;
|