SEO Smart Links - Version 1.6.3

Version Description

Download this release

Release Info

Developer freediver
Plugin Icon 128x128 SEO Smart Links
Version 1.6.3
Comparing to
See all releases

Code changes from version 1.6.2 to 1.6.3

Files changed (2) hide show
  1. readme.txt +5 -1
  2. seo-links.php +5 -5
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: freediver
3
  Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
4
  Tags: Post, posts, comments, links, seo, google, automatic
5
  Requires at least: 2.3
6
- Tested up to: 2.5.1
7
  Stable tag: trunk
8
 
9
  SEO Smart Links can automatically link keywords and phrases in your posts and comments with corresponding posts, pages, categories and tags.
@@ -21,6 +21,10 @@ Everything happens completely transparent, and you can edit the options from the
21
 
22
 
23
  Change log
 
 
 
 
24
  v1.6.2
25
  - Fixed small issue with database leading to compability issues with some WP isntallations
26
 
3
  Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
4
  Tags: Post, posts, comments, links, seo, google, automatic
5
  Requires at least: 2.3
6
+ Tested up to: 2.6.2
7
  Stable tag: trunk
8
 
9
  SEO Smart Links can automatically link keywords and phrases in your posts and comments with corresponding posts, pages, categories and tags.
21
 
22
 
23
  Change log
24
+ v1.6.3
25
+ - Fixed issue with too short titles (now titles shorter then 4 characters are ignored)
26
+ - Targets are sorted by length and longer titles are linked to first
27
+
28
  v1.6.2
29
  - Fixed small issue with database leading to compability issues with some WP isntallations
30
 
seo-links.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  /*
4
  Plugin Name: SEO Smart Links
5
- Version: 1.6.2
6
  Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
7
  Author: Vladimir Prelovac
8
  Author URI: http://www.prelovac.com
@@ -122,7 +122,7 @@ if ($options['lposts'] || $options['lpages'])
122
  if ( !$posts = wp_cache_get( 'seo-links-posts', 'seo-smart-links' ) ) {
123
 
124
 
125
- $query="SELECT post_title, ID, guid, post_type FROM $wpdb->posts WHERE post_status = 'publish'";
126
  $posts = $wpdb->get_results($query);
127
 
128
  wp_cache_add( 'seo-links-posts', $posts, 'seo-smart-links', 86400 );
@@ -161,7 +161,7 @@ if ($options['lcats'])
161
  {
162
  if ( !$categories = wp_cache_get( 'seo-links-categories', 'seo-smart-links' ) ) {
163
 
164
- $query="SELECT $wpdb->terms.name, $wpdb->terms.term_id FROM $wpdb->terms LEFT JOIN $wpdb->term_taxonomy ON $wpdb->terms.term_id = $wpdb->term_taxonomy.term_id WHERE $wpdb->term_taxonomy.taxonomy = 'category'";
165
  //$query="SELECT wp_terms.name, wp_terms.term_id FROM wp_terms LEFT JOIN wp_term_taxonomy ON wp_terms.term_id = wp_term_taxonomy.term_id WHERE wp_term_taxonomy.taxonomy = 'category'";
166
  $categories = $wpdb->get_results($query);
167
 
@@ -196,7 +196,7 @@ if ($options['ltags'])
196
 
197
  if ( !$tags = wp_cache_get( 'seo-links-tags', 'seo-smart-links' ) ) {
198
 
199
- $query="SELECT $wpdb->terms.name, $wpdb->terms.term_id FROM $wpdb->terms LEFT JOIN $wpdb->term_taxonomy ON $wpdb->terms.term_id = $wpdb->term_taxonomy.term_id WHERE $wpdb->term_taxonomy.taxonomy = 'post_tag'";
200
  //$query="SELECT wp_terms.name, wp_terms.term_id FROM wp_terms LEFT JOIN wp_term_taxonomy ON wp_terms.term_id = wp_term_taxonomy.term_id WHERE wp_term_taxonomy.taxonomy = 'post_tag'";
201
  $tags = $wpdb->get_results($query);
202
 
@@ -384,7 +384,7 @@ function SEOLinks_comment_text_filter($text) {
384
  <h3>Information</h3>
385
  <div id="dbx-content" style="text-decoration:none;">
386
  <img src="$imgpath/home.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links"> SEO Smart Links Home</a><br /><br />
387
- <img src="$imgpath/help.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links#comments"> Suggest a Feature</a><br /><br />
388
  <img src="$imgpath/rate.png"><a style="text-decoration:none;" href="http://wordpress.org/extend/plugins/seo-automatic-links/"> Rate SEO Smart Links</a><br /><br />
389
  <img src="$imgpath/more.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/wordpress-plugins"> My WordPress Plugins</a><br /><br />
390
  <br />
2
 
3
  /*
4
  Plugin Name: SEO Smart Links
5
+ Version: 1.6.3
6
  Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
7
  Author: Vladimir Prelovac
8
  Author URI: http://www.prelovac.com
122
  if ( !$posts = wp_cache_get( 'seo-links-posts', 'seo-smart-links' ) ) {
123
 
124
 
125
+ $query="SELECT post_title, ID, guid, post_type FROM $wpdb->posts WHERE post_status = 'publish' AND LENGTH(post_title)>3 ORDER BY LENGTH(post_title) DESC";
126
  $posts = $wpdb->get_results($query);
127
 
128
  wp_cache_add( 'seo-links-posts', $posts, 'seo-smart-links', 86400 );
161
  {
162
  if ( !$categories = wp_cache_get( 'seo-links-categories', 'seo-smart-links' ) ) {
163
 
164
+ $query="SELECT $wpdb->terms.name, $wpdb->terms.term_id FROM $wpdb->terms LEFT JOIN $wpdb->term_taxonomy ON $wpdb->terms.term_id = $wpdb->term_taxonomy.term_id WHERE $wpdb->term_taxonomy.taxonomy = 'category' AND LENGTH($wpdb->terms.name)>3 ORDER BY LENGTH($wpdb->terms.name) DESC";
165
  //$query="SELECT wp_terms.name, wp_terms.term_id FROM wp_terms LEFT JOIN wp_term_taxonomy ON wp_terms.term_id = wp_term_taxonomy.term_id WHERE wp_term_taxonomy.taxonomy = 'category'";
166
  $categories = $wpdb->get_results($query);
167
 
196
 
197
  if ( !$tags = wp_cache_get( 'seo-links-tags', 'seo-smart-links' ) ) {
198
 
199
+ $query="SELECT $wpdb->terms.name, $wpdb->terms.term_id FROM $wpdb->terms LEFT JOIN $wpdb->term_taxonomy ON $wpdb->terms.term_id = $wpdb->term_taxonomy.term_id WHERE $wpdb->term_taxonomy.taxonomy = 'post_tag' AND LENGTH($wpdb->terms.name)>3 ORDER BY LENGTH($wpdb->terms.name) DESC";
200
  //$query="SELECT wp_terms.name, wp_terms.term_id FROM wp_terms LEFT JOIN wp_term_taxonomy ON wp_terms.term_id = wp_term_taxonomy.term_id WHERE wp_term_taxonomy.taxonomy = 'post_tag'";
201
  $tags = $wpdb->get_results($query);
202
 
384
  <h3>Information</h3>
385
  <div id="dbx-content" style="text-decoration:none;">
386
  <img src="$imgpath/home.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links"> SEO Smart Links Home</a><br /><br />
387
+ <img src="$imgpath/help.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/forum"> Plugin Forums</a><br /><br />
388
  <img src="$imgpath/rate.png"><a style="text-decoration:none;" href="http://wordpress.org/extend/plugins/seo-automatic-links/"> Rate SEO Smart Links</a><br /><br />
389
  <img src="$imgpath/more.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/wordpress-plugins"> My WordPress Plugins</a><br /><br />
390
  <br />