WordPress.org

Plugin Directory

Changeset 453374


Ignore:
Timestamp:
10/20/11 10:08:55 (3 years ago)
Author:
Strictly Software
Message:
 
Location:
strictly-autotags/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • strictly-autotags/trunk/readme.txt

    r396054 r453374  
    66Requires at least: 2.0.2                     
    77Tested up to: 3.1.0 
    8 Stable tag: 2.5 
     8Stable tag: 2.6 
    99 
    1010Strictly AutoTags is a plugin that automatically adds the most relevant tags to posts. 
     
    6969 
    7070= 1.1 = 
    71 * Changed internal members from private to protected 
    72 * Fixed bug in which an empty post returned an unitialised array 
    73 * Split up the main AutoTag method so that the 3 AutoDiscovery tests are in their own methods 
    74 * Put compatibility functions into their own include file 
    75 * Changed comments to phpdoc format 
     71* Changed internal members from private to protected. 
     72* Fixed bug in which an empty post returned an unitialised array. 
     73* Split up the main AutoTag method so that the 3 AutoDiscovery tests are in their own methods. 
     74* Put compatibility functions into their own include file. 
     75* Changed comments to phpdoc format. 
    7676 
    7777= 1.2 = 
    78 * Added Admin page description text into language specific text handler 
    79 * Added continents and major regions into the MatchCountries method 
    80 * Added noise word removal before name matching in the MatchNames method 
    81 * strip all HTML tags from article content before parsing 
    82 * updated regular expression that decapitalises words next to periods to only affect single capitalised words 
     78* Added Admin page description text into language specific text handler. 
     79* Added continents and major regions into the MatchCountries method. 
     80* Added noise word removal before name matching in the MatchNames method. 
     81* strip all HTML tags from article content before parsing. 
     82* updated regular expression that decapitalises words next to periods to only affect single capitalised words. 
    8383 
    8484= 1.3 = 
    85 * Added TrustTitle method to check whether it can be used to auto discover new tags or not 
    86 * Removed all HTML entities before checking content 
    87 * Added extra safety check to term parser to handle previosuly entered bad terms 
    88 * Added IsNoiseWord function in to check for capitalised noise words 
    89 * Changed regular expressions to remove all non word characters instead of some punctuation 
     85* Added TrustTitle method to check whether it can be used to auto discover new tags or not. 
     86* Removed all HTML entities before checking content. 
     87* Added extra safety check to term parser to handle previosuly entered bad terms. 
     88* Added IsNoiseWord function in to check for capitalised noise words. 
     89* Changed regular expressions to remove all non word characters instead of some punctuation. 
    9090 
    9191= 1.4 = 
    92 * Added new config option Ignore Percentage which sets the percentage of content when capitalised to ignore during auto discovery 
    93 * Added new config option Noise Words which allows user to set the list of noise words to ignore during auto discovery 
    94 * Added new config option Nested Tags which sets how multiple occurring nested tags such as New York, New York City, New York City Fire Department are handled 
    95 * changed regular expression that matches names to match any number of words 
    96 * Added new functions IsNoiseWord, CountCapitals, StripNonWords, ValidContent, SearchContent to strictlyautotags.class.php 
    97 * Added new function IsNothing to strictlyautotagfuncs.php 
    98 * Removed unneccessary rsort call 
    99 * Changed the coding for merging the stored tags and newly discovered ones 
     92* Added new config option Ignore Percentage which sets the percentage of content when capitalised to ignore during auto discovery. 
     93* Added new config option Noise Words which allows user to set the list of noise words to ignore during auto discovery. 
     94* Added new config option Nested Tags which sets how multiple occurring nested tags such as New York, New York City, New York City Fire Department are handled. 
     95* changed regular expression that matches names to match any number of words. 
     96* Added new functions IsNoiseWord, CountCapitals, StripNonWords, ValidContent, SearchContent to strictlyautotags.class.php. 
     97* Added new function IsNothing to strictlyautotagfuncs.php. 
     98* Removed unneccessary rsort call. 
     99* Changed the coding for merging the stored tags and newly discovered ones. 
    100100 
    101101= 1.5 = 
    102 * Added IsRomanNumeral function to skip values identified as Aconyms that are Roman Numerals 
    103 * Modifed a few regular expressions using /u which cause errors in cerain cases 
    104 * Added some error handling on some preg_match statements to prevent errors where unknowable tags or patterns cause issues 
    105 * Updated the ShowDebug statement in the function library to handle arrays 
     102* Added IsRomanNumeral function to skip values identified as Aconyms that are Roman Numerals. 
     103* Modifed a few regular expressions using /u which cause errors in cerain cases. 
     104* Added some error handling on some preg_match statements to prevent errors where unknowable tags or patterns cause issues. 
     105* Updated the ShowDebug statement in the function library to handle arrays. 
    106106 
    107107= 1.6 = 
    108 * Modified MatchNames method so that noise words are not removed from the auto discover text before hand in one go but from each match instead. This prevent two seperate tags from being added together when they shouldn't have been due to a noise word separating the two. 
    109 * Updated the SearchContent method so that the noise words are removed before matching 
    110 * Updated FormatContent so newlines are replaced with periods to reduce false combinations 
    111 * Added a period between the title and content when creating initial search strings 
     108* Modified MatchNames method so that noise words are not removed from the auto discovery text before hand in one go but instead from each match. This prevent two seperate tags from being added together when they shouldn't have been due to a noise word separating the two. 
     109* Updated the SearchContent method so that the noise words are removed before matching. 
     110* Updated FormatContent so newlines are replaced with periods to reduce false combinations. 
     111* Added a period between the title and content when creating initial search strings. 
    112112 
    113113= 1.7 = 
    114 * Added option to re-tag all existing posts or just those currently without tags 
     114* Added option to re-tag all existing posts or just those currently without tags. 
    115115* Modified the MatchNames function so that noise words are not removed from potential matches as this can make too many tags nonsensical. 
    116116 
    117117= 1.8 = 
    118 * Removed my own FormatRegEx method and replaced it's usage with preg_quote 
    119 * Removed usage of the non standard add_actions and replaced it's usage with multiple add_action calls 
    120 * Added some major cities to the MatchCountries method 
    121 * Added nonces to admin page to improve security 
    122 * Added esc_attr to HTML input values 
     118* Removed my own FormatRegEx method and replaced it's usage with preg_quote. 
     119* Removed usage of the non standard add_actions and replaced it's usage with multiple add_action calls. 
     120* Added some major cities to the MatchCountries method. 
     121* Added nonces to admin page to improve security. 
     122* Added esc_attr to HTML input values. 
    123123 
    124124= 1.9 = 
    125 * Added new admin option which allows users to remove under used tags and keep their saved tag list to a manageable size 
    126 * Ability to specify how many articles a tag has to belong to when being cleaned 
    127 * Added extra help text for noise word list to remind people that when they add noise words they should remove them from the saved post tags as well 
     125* Added new admin option which allows users to remove under used tags and keep their saved tag list to a manageable size. 
     126* Ability to specify how many articles a tag has to belong to when being cleaned. 
     127* Added extra help text for noise word list to remind people that when they add noise words they should remove them from the saved post tags as well. 
    128128 
    129129= 2.0 = 
    130 * Added new checkbox option to admin config page called "Remove Saved Noise Tags" which on saving will remove any noise words in the list 
    131 that are currently saved as post tags. This should help the problem where people have thought the system wasn't working due to noise words being matched. 
    132 * Changed the format of the admin save page to make it look nicer 
     130* Added new checkbox option to admin config page called "Remove Saved Noise Tags" which on saving will remove any noise words in the list that are currently saved as post tags. This should help the problem where people have thought the system wasn't working due to noise words being matched. 
     131* Changed the format of the admin save page to make it look nicer. 
    133132 
    134133= 2.1 = 
    135134* Fixed issue with noise word validator in the admin area so that it handles apostrophes, numbers and dashes. 
    136 * Updated the text on the admin page to remind people that this plugin only works with English characters e.g A-Z 
     135* Updated the text on the admin page to remind people that this plugin only works with English characters e.g A-Z. 
    137136 
    138137= 2.2 = 
    139 * Added new "Rank Important Content" option which ranks matches inside certain HTML tags as more important 
    140 * Added new AUTOTAG_LONG option to increase accuracy so that for content such as New York City Fire Department only an exact match is allowed rather than partials such as New York or New York City 
    141 * Removed the RemoveNoiseWords function call from SearchContent and instead added a check for IsNoiseWord before saving tags 
    142 * Added the RemoveNoiseWords function call to the main AutoTag method to remove noise words from the content used for new tag discovery 
    143 * Updated the SearchContent method to increment hitcounts for previously matched tags 
    144 * Fixed bug with noise word regular expression that was caused by using preg_quote which was adding a slash in front of the pipe delimiters 
     138* Added new "Rank Important Content" option which ranks matches inside certain HTML tags as more important. 
     139* Added new AUTOTAG_LONG option to increase accuracy so that for content such as New York City Fire Department only an exact match is allowed rather than partials such as New York or New York City. 
     140* Removed the RemoveNoiseWords function call from SearchContent and instead added a check for IsNoiseWord before saving tags. 
     141* Added the RemoveNoiseWords function call to the main AutoTag method to remove noise words from the content used for new tag discovery. 
     142* Updated the SearchContent method to increment hitcounts for previously matched tags. 
     143* Fixed bug with noise word regular expression that was caused by using preg_quote which was adding a slash in front of the pipe delimiters. 
    145144 
    146145= 2.3 = 
    147 * Added question mark to the regular expression that matches names and looks for full tag matches 
    148 * Added uninstall option 
    149 * Added counter to show how many tags the plugin has saved since upgrade / installation 
    150 * Added support strictly links to help users support the plugin more easily 
    151 * Added date of installation / upgrade 
    152 * Added register_activation_hook and register_deactivation_hook and the StrictlyAutoTagControl static class 
     146* Added question mark to the regular expression that matches names and looks for full tag matches. 
     147* Added uninstall option. 
     148* Added counter to show how many tags the plugin has saved since upgrade / installation. 
     149* Added support Strictly-Software.com links to help users support the plugin more easily. 
     150* Added date of installation / upgrade. 
     151* Added register_activation_hook and register_deactivation_hook and the StrictlyAutoTagControl static class. 
    153152 
    154153= 2.4 = 
    155 * Added new "Max Tag Words" option which specifies the maximum number of words a tag can have to help prevent long capitalised sentences getting matched 
    156 * Added new "Bold Tagged Words" option to wrap tagged words in strong tags to aid SEO  
    157 * Modified code in the SearchContent method to handle the new Max Tag Words setting 
    158 * Added a few more default locations to the the MatchCountries function including Palestine, Tel Aviv and Belfast 
     154* Added new "Max Tag Words" option which specifies the maximum number of words a tag can have to help prevent long capitalised sentences getting matched. 
     155* Added new "Bold Tagged Words" option to wrap tagged words in strong tags to aid SEO. 
     156* Modified code in the SearchContent method to handle the new Max Tag Words setting. 
     157* Added a few more default locations to the the MatchCountries function including Palestine, Tel Aviv and Belfast. 
    159158 
    160159= 2.5 = 
    161 * Added new "Case Sensitive" Noise Word list so that words or phrases that should only be ignored if the exact case matches are handled e.g it is a noise word IT is an acronym 
    162 * Fixed bug that prevented phrases from being added to the noise word list 
     160* Added new "Case Sensitive" Noise Word list so that words or phrases that should only be ignored if the exact case matches are handled e.g "it" is a noise word "IT" is an acronym. 
     161* Fixed bug that prevented phrases from being added to the noise word list. 
    163162* Updated Bold function so only exact matches of the tag are wrapped in bold tags. This is to prevent incorrect case matches of a tag from being bolded. 
     163 
     164 
     165= 2.6 = 
     166* Fixed a bug with the case-insensitive noise word list that was lower casing the words before storing them. 
     167* Fixed a bug that tested the format of case-insensitive noise words were correct. 
     168* Added my new Hash Tag Hunter Application to the Stictly Software Recommendations section. 
  • strictly-autotags/trunk/strictlyautotags.class.php

    r396551 r453374  
    33/** 
    44 * Plugin Name: Strictly Auto Tags 
    5  * Version: 2.5 
     5 * Version: 2.6 
    66 * Plugin URI: http://www.strictly-software.com/plugins/strictly-auto-tags/ 
    77 * Description: This plugin automatically detects tags to place against posts using existing tags as well as a simple formula that detects common tag formats such as Acronyms, names and countries. Whereas other smart tag plugins only detect a single occurance of a tag within a post this plugin will search for the most used tags within the content so that only the most relevant tags get added. 
     
    2626    * @var string 
    2727    */ 
    28     protected $version = "2.5"; 
     28    protected $version = "2.6"; 
    2929 
    3030    /** 
     
    15241524            if(empty($noisewords_case_sensitive)){ 
    15251525                $noisewords_case_sensitive = $this->defaultnoisewords_case_sensitive; 
    1526             }else{ 
    1527                 $noisewords_case_sensitive = strtolower($noisewords_case_sensitive); 
     1526            }else{           
    15281527 
    15291528                // make sure the noise words don't start or end with pipes 
    1530                 if( preg_match("/^([-a-z'1-9 ]+\|[-a-z'1-9 ]*)+$/",$noisewords_case_sensitive)){     
     1529                if( preg_match("/^([-a-z'1-9 ]+\|[-a-z'1-9 ]*)+$/i",$noisewords_case_sensitive)){    
    15311530                    $options['noisewords_case_sensitive']   = $noisewords_case_sensitive; 
    15321531 
     
    18741873                <h3 class="hndle">'.__('Stictly Software Recommendations', 'strictlyautotags').'</h3>                    
    18751874                <div class="inside">                 
    1876                     <p>'.__('If you enjoy using this Wordpress plugin you might be interested in some other websites, tools and plugins I have      developed.', 'strictlyautotags').'</p> 
     1875                    <p>'.__('If you enjoy using this Wordpress plugin you might be interested in some other websites, tools and plugins I have developed.', 'strictlyautotags').'</p> 
    18771876                    <ul> 
     1877                        <li><a href="http://www.strictly-software.com/applications/twitter-hash-tag-hunter" title="'.__('Strictly Software Hash Tag Hunter Application','strictlyautotags').'">'.__('Twitter Hash Tag Hunter Application','strictlyautotags').'</a> 
     1878                            <p>'.__('Strictly Hash Tag Hunter is a Windows application that is designed to aid Auto Bloggers or Site Owners that make use of Strictly AutoTags and my <a href="http://wordpress.org/extend/plugins/strictly-tweetbot/">Strictly TweetBot plugin</a>. It allows people with new or existing Twitter accounts to find out the #HashTags and @Accounts relevant to the keywords and search terms that your website is based around. Don\'t waste time by Tweeting Hash Tags that aren\'t followed, or by following accounts that are not relevant to your sites content. Save yourself time and energy by letting the <a href="http://www.strictly-software.com/applications/twitter-hash-tag-hunter">Twitter Hash Tag Hunter</a> to do all the important SEO work for you, tracking down key #HashTags and @Accounts your site should be following and tweeting to.','strictlyautotags').'</p> 
     1879                        </li>    
    18781880                        <li><a href="http://www.strictly-software.com/plugins/strictly-google-sitemap">'.__('Strictly Google Sitemap','strictlyautotags').'</a> 
    18791881                            <p>'.__('Strictly Google Sitemap is a feature rich Wordpress plugin built for sites requiring high performance. Not only does it use a tiny number of database queries compared to other plugins it uses less memory and was designed specifically for under performing or low spec systems. As well as offering all the features of other sitemap plugins it brings all those missing features such as sitemap index files, XML validation, scheduled builds, configuration analysis and SEO reports.','strictlyautotags').'</p> 
Note: See TracChangeset for help on using the changeset viewer.