Plugin Directory

Changeset 432615


Ignore:
Timestamp:
09/02/2011 11:51:47 PM (15 years ago)
Author:
lukeuk
Message:

installer and readme update

Location:
post-miner/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • post-miner/trunk/PostMiner/Installer.php

    r432610 r432615  
    9898    static private $SQL_DROP_VISITED = "DROP TABLE `%s_visits`";
    9999   
     100    /**
     101     * SQL statement for deleting terms relation content
     102     * @var string
     103     */
     104    static private $SQL_DELETE_TERMS_RELATION = 'DELETE FROM `%s_term_relationships`';
     105
     106    /**
     107     * SQL statement for deleting terms
     108     * @var string
     109     */
     110    static private $SQL_DELETE_TERMS = 'DELETE FROM `%s_terms`';
     111
    100112   
    101113    /**
     
    120132        $wpdb->get_results( sprintf( self::$SQL_VISITED, $prefix ) );
    121133       
    122         add_option("post-miner_db_version", '1.0.0');
    123134       
    124         update_option("post-miner_db_version", '1.0.1');
     135        if( get_option("post-miner_db_version") == '1.0.0' )
     136        {
     137            update_option("post-miner_db_version", '1.0.1');
     138           
     139            update_option("post-miner_recommendations_header", "Recommended for you:");
     140           
     141            $wpdb->get_results( sprintf( self::$SQL_DELETE_TERMS_RELATION, $prefix ) );
     142           
     143            $wpdb->get_results( sprintf( self::$SQL_DELETE_TERMS, $prefix ) );
     144        }
     145        else
     146        {
     147            add_option("post-miner_db_version", '1.0.0');
     148           
     149            add_option("post-miner_recommendations_header", "Recommended for you:");
    125150       
    126         add_option("post-miner_recommendations_header", "You might be also interested in:");
    127        
    128         add_option("post-miner_recommendations_limit", 5);
     151            add_option("post-miner_recommendations_limit", 5);
     152        }
    129153       
    130154        PostMiner_Indexer::indexPosts();
  • post-miner/trunk/readme.txt

    r429760 r432615  
    55Requires at least: 3.1.0
    66Tested up to: 3.2.1
    7 Stable tag: 0.9.2
     7Stable tag: 1.0.0
    88
    99Content recommendations engine for WordPress.
     
    1212
    1313Post Miner helps your audience discovering relevant content on your blog without searching.
    14 The plugin uses Euclidean distance and collective intelligence* (CI will be available from version 1.x)
     14The plugin uses Euclidean distance and collective intelligence* (CI will be available from version 1.1.x)
    1515to provide a good match and better user experience.
    1616
    1717== Installation ==
    18 
    19 1. IMPORTANT! It makes sense to use this plugin ONLY with ENGLISH language content at this point.
    2018
    21191. Upload `post-miner` directory to the `/wp-content/plugins/`
     
    3432= 0.9.2 =
    3533* critical bug fix - broken recommendations links
     34
     35= 1.0.0 =
     36* recommending user relevant content (visitor's behavior is stored in the database)
     37* improved recommendation algorithm
Note: See TracChangeset for help on using the changeset viewer.