SEO Smart Links - Version 1.6

Version Description

Download this release

Release Info

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

Code changes from version 1.5.1 to 1.6

Files changed (2) hide show
  1. readme.txt +3 -0
  2. seo-links.php +12 -2
readme.txt CHANGED
@@ -21,6 +21,9 @@ Everything happens completely transparent, and you can edit the options from the
21
22
23
Change log
24
v1.5
25
- Added nofollow and new window options
26
21
22
23
Change log
24
+ v1.6
25
+ - Added option to process only single posts and pages
26
+
27
v1.5
28
- Added nofollow and new window options
29
seo-links.php CHANGED
@@ -2,7 +2,7 @@
2
3
/*
4
Plugin Name: SEO Smart Links
5
- Version: 1.5.1
6
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
7
Author: Vladimir Prelovac
8
Author URI: http://www.prelovac.com
@@ -54,6 +54,9 @@ function SEOLinks_process_text($text, $mode)
54
//$wpdb->terms;
55
//$wpdb->term_taxonomy
56
57
if (!$mode)
58
{
59
if ($post->post_type=='post' && !$options['post'])
@@ -281,7 +284,8 @@ function SEOLinks_comment_text_filter($text) {
281
'nofoln' =>'',
282
'nofolo' =>'',
283
'blankn' =>'',
284
- 'blanko' =>''
285
286
);
287
@@ -333,6 +337,7 @@ function SEOLinks_comment_text_filter($text) {
333
$options['nofolo']=$_POST['nofolo'];
334
$options['blankn']=$_POST['blankn'];
335
$options['blanko']=$_POST['blanko'];
336
337
338
update_option($this->SEOLinks_DB_option, $options);
@@ -362,6 +367,7 @@ function SEOLinks_comment_text_filter($text) {
362
$nofolo=$options['nofolo']=='on'?'checked':'';
363
$blankn=$options['blankn']=='on'?'checked':'';
364
$blanko=$options['blanko']=='on'?'checked':'';
365
366
367
$imgpath=trailingslashit(get_option('siteurl')). 'wp-content/plugins/seo-automatic-links/i';
@@ -414,6 +420,10 @@ function SEOLinks_comment_text_filter($text) {
414
<input type="checkbox" name="lcats" $lcats /><label for="lcats"> Categories</label> <br>
415
<input type="checkbox" name="ltags" $ltags /><label for="ltags"> Tags</label> <br>
416
417
<h4>Ignore</h4>
418
<p>You may wish to ignore certain words or phrases from automatic linking. Seperate them by comma.</p>
419
<input type="text" name="ignore" size="90" value="$ignore"/>
2
3
/*
4
Plugin Name: SEO Smart Links
5
+ Version: 1.6
6
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
7
Author: Vladimir Prelovac
8
Author URI: http://www.prelovac.com
54
//$wpdb->terms;
55
//$wpdb->term_taxonomy
56
57
+ if ($options['onlysingle'] && !(is_single() || is_page()))
58
+ return $text;
59
+
60
if (!$mode)
61
{
62
if ($post->post_type=='post' && !$options['post'])
284
'nofoln' =>'',
285
'nofolo' =>'',
286
'blankn' =>'',
287
+ 'blanko' =>'',
288
+ 'onlysingle' => 'on'
289
290
);
291
337
$options['nofolo']=$_POST['nofolo'];
338
$options['blankn']=$_POST['blankn'];
339
$options['blanko']=$_POST['blanko'];
340
+ $options['onlysingle']=$_POST['onlysingle'];
341
342
343
update_option($this->SEOLinks_DB_option, $options);
367
$nofolo=$options['nofolo']=='on'?'checked':'';
368
$blankn=$options['blankn']=='on'?'checked':'';
369
$blanko=$options['blanko']=='on'?'checked':'';
370
+ $onlysingle=$options['onlysingle']=='on'?'checked':'';
371
372
373
$imgpath=trailingslashit(get_option('siteurl')). 'wp-content/plugins/seo-automatic-links/i';
420
<input type="checkbox" name="lcats" $lcats /><label for="lcats"> Categories</label> <br>
421
<input type="checkbox" name="ltags" $ltags /><label for="ltags"> Tags</label> <br>
422
423
+ <h4>Only single</h4>
424
+ <p>To reduce database load you cna choose to have SEO SMART links work only on single posts and pages (for example not on main page or archives).</p>
425
+ <input type="checkbox" name="onlysingle" $onlysingle /><label for="onlysingle"> Process only single posts and pages</label> <br>
426
+
427
<h4>Ignore</h4>
428
<p>You may wish to ignore certain words or phrases from automatic linking. Seperate them by comma.</p>
429
<input type="text" name="ignore" size="90" value="$ignore"/>