Website Monetization by MageNet - Version 1.0.13

Version Description

  • Fix small bug
Download this release

Release Info

Developer MageNet
Plugin Icon 128x128 Website Monetization by MageNet
Version 1.0.13
Comparing to
See all releases

Code changes from version 1.0.12 to 1.0.13

Files changed (2) hide show
  1. monetization-by-magenet.php +5 -2
  2. readme.txt +3 -0
monetization-by-magenet.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Website Monetization by MageNet
4
  Description: Website Monetization by MageNet allows you to sell contextual ads from your pages automatically and receive payments with PayPal. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://magenet.com" target="_blank">Sign up for a MageNet Key</a>, and 3) Go to Settings > "Website Monetization by MageNet" configuration page, and save your MageNet Key.
5
- Version: 1.0.12
6
  Author: MageNet.com
7
  Author URI: http://magenet.com
8
  */
@@ -131,7 +131,7 @@ if (!class_exists('MagenetLinkAutoinstall')) {
131
  if($is_active_plugin=='on' && ($post->post_type == 'page' OR $post->post_type == 'post')) $link_count = 2;
132
 
133
  $this->link_shown++;
134
- if($this->link_shown == $link_count) {
135
  global $wpdb;
136
  $link_data = $this->getLinks();
137
  $content .= '<div class="mads-block">';
@@ -217,6 +217,9 @@ if (!class_exists('MagenetLinkAutoinstall')) {
217
  }
218
  update_option("magenet_links_last_update", time());
219
  }
 
 
 
220
  $check_page_without_last_slash_query = "";
221
  if($page_url[strlen($page_url)-1] == "/") {
222
  $check_page_without_last_slash_query = " OR page_url='" . $site_url . substr($page_url, 0, -1) . "'";
2
  /*
3
  Plugin Name: Website Monetization by MageNet
4
  Description: Website Monetization by MageNet allows you to sell contextual ads from your pages automatically and receive payments with PayPal. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://magenet.com" target="_blank">Sign up for a MageNet Key</a>, and 3) Go to Settings > "Website Monetization by MageNet" configuration page, and save your MageNet Key.
5
+ Version: 1.0.13
6
  Author: MageNet.com
7
  Author URI: http://magenet.com
8
  */
131
  if($is_active_plugin=='on' && ($post->post_type == 'page' OR $post->post_type == 'post')) $link_count = 2;
132
 
133
  $this->link_shown++;
134
+ if($this->link_shown <= $link_count) {
135
  global $wpdb;
136
  $link_data = $this->getLinks();
137
  $content .= '<div class="mads-block">';
217
  }
218
  update_option("magenet_links_last_update", time());
219
  }
220
+ $site_url = str_replace("'", "\'", get_option("siteurl"));
221
+ $page_url = str_replace("'", "\'", $_SERVER["REQUEST_URI"]);
222
+
223
  $check_page_without_last_slash_query = "";
224
  if($page_url[strlen($page_url)-1] == "/") {
225
  $check_page_without_last_slash_query = " OR page_url='" . $site_url . substr($page_url, 0, -1) . "'";
readme.txt CHANGED
@@ -84,6 +84,9 @@ MageNet crawler will index your sites the same way Google does. It will “read
84
  3. "Pages options" menu
85
 
86
  == Changelog ==
 
 
 
87
  = 1.0.12 =
88
  * Fixed the issue with installing links at the homepages
89
  * Fix some other small bugs
84
  3. "Pages options" menu
85
 
86
  == Changelog ==
87
+ = 1.0.13 =
88
+ * Fix small bug
89
+
90
  = 1.0.12 =
91
  * Fixed the issue with installing links at the homepages
92
  * Fix some other small bugs