Plugin Directory

Changeset 2290254


Ignore:
Timestamp:
04/23/2020 04:07:35 PM (6 years ago)
Author:
kpgraham
Message:

Chsnged name of Permalink-Finder and checked to see it it was still compatible with the latest version of WordPress.

Location:
permalink-finder/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • permalink-finder/trunk/includes/pf-mu-options.php

    r665428 r2290254  
    33mu-options.php
    44
    5 Provides mu support to the Permalink Finder plugin
     5Provides mu support to the Link Fixer plugin
    66
    77This hooks the options functions of wp in order to update one option from blog #1`
  • permalink-finder/trunk/includes/pf-options.php

    r2059135 r2290254  
    11<?php
    22/*
    3     Permalink Finder Plugin
     3    Link Fixer Plugin
    44    Options Setup Page
    55*/
     
    268268?>
    269269<div class="wrap">
    270   <h2>Permalink-Finder Options</h2>
     270  <h2>Link Fixer Options</h2>
    271271  <h3>Version 2.3</h3>
    272272  <h4><?php echo $totredir; ?> Permalinks redirected</h4>
     
    284284 
    285285?>
    286   <p style="font-weight:bold;">The Permalink-Finder Plugin is installed and working correctly.</p>
     286  <p style="font-weight:bold;">The Link Fixer Plugin is installed and working correctly.</p>
    287287  <p style="font-weight:bold;"><a href="" onclick="window.location.href=window.location.href;return false;">Refresh</a></p>
    288288  <hr/>
     
    316316        }
    317317    ?>
    318     <h3>Permalink Finder Options:</h3>
    319     <p>You can control how the Permalink Finder finds the correct match when a 404 occurs.</p>
     318    <h3>Link Fixer Options:</h3>
     319    <p>You can control how the Link Fixer finds the correct match when a 404 occurs.</p>
    320320    <table align="center" cellspacing="2" style="background-color:#CCCCCC;font-size:.9em;">
    321321      <tr bgcolor="white">
     
    485485  <br/>
    486486  <h3>Redirection Overrides:</h3>
    487   <p>You can manually specify a redirection link. If permalink finder is consistently sending a link to the wrong page you can manuall specify the link that you want redirected. The link does not have to exist.<br/>
     487  <p>You can manually specify a redirection link. If Link Fixer is consistently sending a link to the wrong page you can manually specify the link that you want redirected. The link does not have to exist.<br/>
    488488    You can specify the type redirect code, 301, 307, etc. <br/>
    489489    You can specify whether the match has to be exact or not. If you choose inexact, you can have any link that has the partial link to anew location. For instance, you might redirect /tv/startrek to http://yoursite.com/tv/star-trek.<br/>
    490490    You must enter the target link. This does not have to be on your site. You can sepcify that anyone who tries to access a page will be redirected to an affiliate link or wikipedia, for instance.<br/>
    491     You can delete a link if it is not workin.<br/>
    492     Be careful how you enter the target link. If it is not found, the permalink finder might start looping, continually searching for a link that does not exist. Test yur links! </p>
     491    You can delete a link if it is not working.<br/>
     492    Be careful how you enter the target link. If it is not found, the Link Fixer Plugin might start looping, continually searching for a link that does not exist. Test yur links! </p>
    493493  <fieldset style="border thin black solid;" >
    494494  <legend>Add Override:</legend>
  • permalink-finder/trunk/permalink-finder.php

    r2113196 r2290254  
    11<?php
    22/*
    3 Plugin Name: Permalink Finder
     3Plugin Name: Link Fixer
    44Plugin URI: https://www.facebook.com/BlogsEye/
    5 Description: Never get a 404 page not found again. If you have restructured or moved your blog, this plugin will find the right post or page every time.
     5Description: Never get a 404 page not found again. If you have restructured or moved your blog, this plugin will find the right post or page every time (The name has been changed from Permalink Finder to Link Fixer).
    66Version: 2.8
    77Author: Keith P. Graham
     
    6060    }
    6161    // this means we can install the options page on the network options page.
    62     add_options_page('Permalink Finder', 'Permalink Finder', 'manage_options', 'permalink_finder','kpg_permalink_finder_control');
     62    add_options_page('Link Fixer', 'Link Fixer', 'manage_options', 'Link_fixer','kpg_permalink_finder_control');
    6363    add_action('rightnow_end', 'kpg_pf_rightnow');
    6464}
     
    6666function kpg_pf_net_admin_menus() {
    6767    if(!current_user_can('manage_network_options')) return;
    68     add_submenu_page('settings.php','Permalink Finder', 'Permalink Finder', 'manage_network_options', 'adminpermalink_finder','kpg_permalink_finder_control');
     68    add_submenu_page('settings.php','Link Fixer', 'Link Fixer', 'manage_network_options', 'adminpermalink_finder','kpg_permalink_finder_control');
    6969    //add_options_page('Stop Spammers', 'Stop Spammers', 'manage_options','adminstopspammersoptions','kpg_pf_control');
    7070    //add_options_page('Stop Spammers History', 'Spammer History', 'manage_options','adminstopspammerstats','kpg_pf_stats_control');
     
    9292        // steal the akismet stats css format
    9393        // get the path to the plugin
    94         echo "<p><a style=\"font-style:italic;\" href=\"$me\">Permalink Finder</a> has redirected $totredir pages.";
     94        echo "<p><a style=\"font-style:italic;\" href=\"$me\">Link Fixer</a> has redirected $totredir pages.";
    9595        if ($nobuy=='N' && $totredir>10000) echo "  <a style=\"font-style:italic;\" href=\"https://www.facebook.com/BlogsEye/buy-the-book/\">Buy Keith Graham&apos;s Science Fiction Book</a>";
    9696        echo"</p>";
    9797    } else {
    98         echo "<p><a style=\"font-style:italic\" href=\"$me\">Permalink Finder</a> has not redirected any 404 errors, yet.";
     98        echo "<p><a style=\"font-style:italic\" href=\"$me\">Link Fixer</a> has not redirected any 404 errors, yet.";
    9999        echo"</p>";
    100100    }
     
    259259        'fixhtml'=>'N',
    260260        'do200'=>'N',
    261         'robots'=>"# robots.txt generated by Permalink Finder
     261        'robots'=>"# robots.txt generated by Link Fixerr
    262262User-agent: *
    263263Disallow: */cgi-bin/
  • permalink-finder/trunk/readme.txt

    r2113196 r2290254  
    1 === Permalink Finder Plugin ===
     1=== Link Fixer ===
    22Tags: permalinks, move, migrate, 301, 404, redirect, PageRank, seo,sitemap, robots.txt, crossdomain.xml, apple-touch-icon.png, favicon.ico
    33Requires at least: 3.0 
    4 Stable tag: 2.8 
    5 Tested up to: 5.1
     4Stable tag: 2.9 
     5Tested up to: 5.3
    66Contributors: Keith Graham       
    77Donate link: https://www.facebook.com/BlogsEye/
     
    1313== Description ==
    1414
    15 The Permalink Finder Plugin detects when Wordpress cannot find a permalink. Before it generates the 404 error the plugin tries to locate any posts with similar words. It does this by searching through the database trying to find any of the word values from the bad link. It takes the best match and then, rather than issuing a 404 error, it sends back a redirect to the correct page.
     15The Link Fixer Plugin (note the name change from Parmalink Finder) detects when WordPress cannot find a permalink. Before it generates the 404 error the plugin tries to locate any posts with similar words. It does this by searching through the database trying to find any of the word values from the bad link. It takes the best match and then, rather than issuing a 404 error, it sends back a redirect to the correct page.
    1616Users will see the page that they are looking for, and search engine spiders will see the 301 redirect and update their databases so that the page appears correctly in searches.
    1717
     
    32322. Upload the plugin to your wp-content/plugins directory.
    33333. Activate the plugin.
    34 4. Change any options in the Permalink Finder settings.
     344. Change any options in the Link Fixer settings.
    3535The plugin can be tested by adding or deleting words from a working permalink in your browser address area. Even if you mangle the permalink it should find a valid link and almost always it will find the correct link.
    3636
    3737
    3838== Changelog ==
     39
     40= 2.9 =
     41* Tested on WordPress version 5.3. Changed the name to Link Fixer in order to help users find the plugin
    3942
    4043= 2.8 =
     
    6770* search for exacts matches on categories
    6871* changed the way MU functions work so that MU options can only be set on the Network Admin Dashboard.
    69 * Under MU users cannot see the Permalink options unless the admin sets the MU switch in the permalink finder options.
     72* Under MU users cannot see the Permalink options unless the admin sets the MU switch in the Link Fixer options.
    7073* Keeps a grand total of the permalinks fixed since the plugin was installed (or version 2.2).
    7174* converts underscores to hyphens.
Note: See TracChangeset for help on using the changeset viewer.