WP125 - Version 1.1.2

Version Description

Download this release

Release Info

Developer redwallhp
Plugin Icon wp plugin WP125
Version 1.1.2
Comparing to
See all releases

Code changes from version 1.1.0 to 1.1.2

Files changed (3) hide show
  1. readme.txt +1 -1
  2. wp125.php +5 -3
  3. youradhere.jpg +0 -0
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: http://www.webmaster-source.com/donate/
6
  Tags: ads, 125x125, management, advertisement
7
  Requires at least: 2.3
8
  Tested up to: 2.6
9
- Stable tag: 1.1.0
10
 
11
 
12
  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.
6
  Tags: ads, 125x125, management, advertisement
7
  Requires at least: 2.3
8
  Tested up to: 2.6
9
+ Stable tag: 1.1.2
10
 
11
 
12
  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.
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.1.0
9
  */
10
 
11
 
@@ -121,7 +121,8 @@ $adguidearray_shufflefix = $adguidearray[0]; $adguidearray[0]=''; $adguidearray[
121
  }
122
  for ($curslot=1; $curslot <= $setting_num_slots; $curslot++) {
123
  if (isset($adguidearray[$curslot])) {
124
- echo '<div class="wp125ad"><img src="'.$adguidearray[$curslot]['image_url'].'" alt="'.$adguidearray[$curslot]['name'].'" /></div>';
 
125
  } else { echo '<div class="wp125ad"><a href="'.$setting_buyad_url.'" rel="nofollow"><img src="'.$setting_defaultad.'" alt="" /></a></div>'; }
126
  }
127
  echo '</div>';
@@ -142,7 +143,8 @@ $adguidearray_shufflefix = $adguidearray[0]; $adguidearray[0]=''; $adguidearray[
142
  }
143
  for ($curslot=1; $curslot <= $setting_num_slots; $curslot++) {
144
  if (isset($adguidearray[$curslot])) {
145
- echo '<div class="wp125ad"><img src="'.$adguidearray[$curslot]['image_url'].'" alt="'.$adguidearray[$curslot]['name'].'" /></div>';
 
146
  } else { echo '<div class="wp125ad"><a href="'.$setting_buyad_url.'" rel="nofollow"><img src="'.$setting_defaultad.'" alt="" /></a></div>'; }
147
  }
148
  echo '</div>';
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.1.2
9
  */
10
 
11
 
121
  }
122
  for ($curslot=1; $curslot <= $setting_num_slots; $curslot++) {
123
  if (isset($adguidearray[$curslot])) {
124
+ if ($adguidearray[$curslot]['clicks'] != -1) { $linkurl = get_option('blogurl').'index.php?adclick='.$adguidearray[$curslot]['id']; } else { $linkurl = $adguidearray[$curslot]['target']; }
125
+ echo '<div class="wp125ad"><a href="'.$linkurl.'" rel="nofollow"><img src="'.$adguidearray[$curslot]['image_url'].'" alt="'.$adguidearray[$curslot]['name'].'" /></a></div>';
126
  } else { echo '<div class="wp125ad"><a href="'.$setting_buyad_url.'" rel="nofollow"><img src="'.$setting_defaultad.'" alt="" /></a></div>'; }
127
  }
128
  echo '</div>';
143
  }
144
  for ($curslot=1; $curslot <= $setting_num_slots; $curslot++) {
145
  if (isset($adguidearray[$curslot])) {
146
+ if ($adguidearray[$curslot]['clicks'] != -1) { $linkurl = get_option('blogurl').'index.php?adclick='.$adguidearray[$curslot]['id']; } else { $linkurl = $adguidearray[$curslot]['target']; }
147
+ echo '<div class="wp125ad"><a href="'.$linkurl.'" rel="nofollow"><img src="'.$adguidearray[$curslot]['image_url'].'" alt="'.$adguidearray[$curslot]['name'].'" /></a></div>';
148
  } else { echo '<div class="wp125ad"><a href="'.$setting_buyad_url.'" rel="nofollow"><img src="'.$setting_defaultad.'" alt="" /></a></div>'; }
149
  }
150
  echo '</div>';
youradhere.jpg ADDED
Binary file