Changeset 2290254
- Timestamp:
- 04/23/2020 04:07:35 PM (6 years ago)
- Location:
- permalink-finder/trunk
- Files:
-
- 4 edited
-
includes/pf-mu-options.php (modified) (1 diff)
-
includes/pf-options.php (modified) (5 diffs)
-
permalink-finder.php (modified) (5 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
permalink-finder/trunk/includes/pf-mu-options.php
r665428 r2290254 3 3 mu-options.php 4 4 5 Provides mu support to the Permalink Finder plugin5 Provides mu support to the Link Fixer plugin 6 6 7 7 This hooks the options functions of wp in order to update one option from blog #1` -
permalink-finder/trunk/includes/pf-options.php
r2059135 r2290254 1 1 <?php 2 2 /* 3 Permalink Finder Plugin3 Link Fixer Plugin 4 4 Options Setup Page 5 5 */ … … 268 268 ?> 269 269 <div class="wrap"> 270 <h2> Permalink-Finder Options</h2>270 <h2>Link Fixer Options</h2> 271 271 <h3>Version 2.3</h3> 272 272 <h4><?php echo $totredir; ?> Permalinks redirected</h4> … … 284 284 285 285 ?> 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> 287 287 <p style="font-weight:bold;"><a href="" onclick="window.location.href=window.location.href;return false;">Refresh</a></p> 288 288 <hr/> … … 316 316 } 317 317 ?> 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> 320 320 <table align="center" cellspacing="2" style="background-color:#CCCCCC;font-size:.9em;"> 321 321 <tr bgcolor="white"> … … 485 485 <br/> 486 486 <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 manuallspecify 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/> 488 488 You can specify the type redirect code, 301, 307, etc. <br/> 489 489 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/> 490 490 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 findermight 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> 493 493 <fieldset style="border thin black solid;" > 494 494 <legend>Add Override:</legend> -
permalink-finder/trunk/permalink-finder.php
r2113196 r2290254 1 1 <?php 2 2 /* 3 Plugin Name: Permalink Finder3 Plugin Name: Link Fixer 4 4 Plugin 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 .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 (The name has been changed from Permalink Finder to Link Fixer). 6 6 Version: 2.8 7 7 Author: Keith P. Graham … … 60 60 } 61 61 // 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'); 63 63 add_action('rightnow_end', 'kpg_pf_rightnow'); 64 64 } … … 66 66 function kpg_pf_net_admin_menus() { 67 67 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'); 69 69 //add_options_page('Stop Spammers', 'Stop Spammers', 'manage_options','adminstopspammersoptions','kpg_pf_control'); 70 70 //add_options_page('Stop Spammers History', 'Spammer History', 'manage_options','adminstopspammerstats','kpg_pf_stats_control'); … … 92 92 // steal the akismet stats css format 93 93 // 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."; 95 95 if ($nobuy=='N' && $totredir>10000) echo " <a style=\"font-style:italic;\" href=\"https://www.facebook.com/BlogsEye/buy-the-book/\">Buy Keith Graham's Science Fiction Book</a>"; 96 96 echo"</p>"; 97 97 } 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."; 99 99 echo"</p>"; 100 100 } … … 259 259 'fixhtml'=>'N', 260 260 'do200'=>'N', 261 'robots'=>"# robots.txt generated by Permalink Finder261 'robots'=>"# robots.txt generated by Link Fixerr 262 262 User-agent: * 263 263 Disallow: */cgi-bin/ -
permalink-finder/trunk/readme.txt
r2113196 r2290254 1 === Permalink Finder Plugin===1 === Link Fixer === 2 2 Tags: permalinks, move, migrate, 301, 404, redirect, PageRank, seo,sitemap, robots.txt, crossdomain.xml, apple-touch-icon.png, favicon.ico 3 3 Requires at least: 3.0 4 Stable tag: 2. 85 Tested up to: 5. 14 Stable tag: 2.9 5 Tested up to: 5.3 6 6 Contributors: Keith Graham 7 7 Donate link: https://www.facebook.com/BlogsEye/ … … 13 13 == Description == 14 14 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.15 The 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. 16 16 Users 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. 17 17 … … 32 32 2. Upload the plugin to your wp-content/plugins directory. 33 33 3. Activate the plugin. 34 4. Change any options in the Permalink Finder settings.34 4. Change any options in the Link Fixer settings. 35 35 The 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. 36 36 37 37 38 38 == 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 39 42 40 43 = 2.8 = … … 67 70 * search for exacts matches on categories 68 71 * 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. 70 73 * Keeps a grand total of the permalinks fixed since the plugin was installed (or version 2.2). 71 74 * converts underscores to hyphens.
Note: See TracChangeset
for help on using the changeset viewer.