Plugin Directory

Changeset 855344


Ignore:
Timestamp:
02/11/2014 05:49:34 AM (12 years ago)
Author:
phd38
Message:

duplicate 4.0.2 to trunk

Location:
wp-mediatagger/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wp-mediatagger/trunk/languages/mediatagger-def-i18n.php

    r854374 r855344  
    8484_("If you experience this plugin brings value to your site, you are free to make a donation for supporting the development and maintenance.");
    8585_("Even small donations matter and are encouraging !");
     86_("Display your MediaTagger tag cloud in the sidebar. Before that, you need to have properly tagged your medias in the MediaTagger plugin Admin Panel and have as well setup a result page that you will use as your tag cloud target page");
    8687_n("media associated to tag", "medias associated to tag");
    8788_n("media found", "medias found");
     
    101102    'header_general' => array(
    102103        'type' => "HEADER",
    103         //'desc' => self::$t->general
    104104        'desc' => self::__("General")
    105105    ),
  • wp-mediatagger/trunk/languages/mediatagger-fr_FR.po

    r854374 r855344  
    33"Project-Id-Version: WP MediaTagger\n"
    44"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-imagetagger\n"
    5 "POT-Creation-Date: 2014-02-09 07:30+0100\n"
     5"POT-Creation-Date: 2014-02-10 17:35+0100\n"
    66"PO-Revision-Date: \n"
    77"Last-Translator: phd38 <contact@photos-dauphie.com>\n"
     
    429429
    430430#: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:86
     431msgid ""
     432"Display your MediaTagger tag cloud in the sidebar. Before that, you need to "
     433"have properly tagged your medias in the MediaTagger plugin Admin Panel and "
     434"have as well setup a result page that you will use as your tag cloud target "
     435"page"
     436msgstr ""
     437"Affichez le nuage de tags MediaTagger dans la colonne latérale. Avant tout, "
     438"vous devez avoir taggé vos médias dans le panneau d'administration du plugin "
     439"MediaTagger, et avoir également défini une page résultat qui sera utilisée "
     440"comme page cible pour le nuage de tags."
     441
     442#: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:87
    431443msgid "media associated to tag"
    432444msgid_plural "medias associated to tag"
     
    434446msgstr[1] "médias associés à ce tag"
    435447
    436 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:87
     448#: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:88
    437449msgid "media found"
    438450msgid_plural "medias found"
     
    440452msgstr[1] "médias trouvés"
    441453
    442 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:88
     454#: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:89
    443455#, php-format
    444456msgid "image %d to %d"
     
    447459msgstr[1] "images %d à %d"
    448460
    449 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:89
     461#: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:90
    450462msgid "Original tag"
    451463msgid_plural "Original tags"
     
    453465msgstr[1] "Tags d'origine"
    454466
    455 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:90
     467#: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:91
    456468msgid "New tag"
    457469msgid_plural "New tags"
     
    459471msgstr[1] "Nouveaux tags"
    460472
    461 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:91
     473#: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:92
    462474msgid "occurence"
    463475msgid_plural "occurences"
     
    22452257#, fuzzy
    22462258#~ msgid ""
    2247 #~ "Display your MediaTagger tag cloud in the sidebar. Before that, you need "
    2248 #~ "to have properly tagged your medias in the MediaTagger plugin Admin Panel "
    2249 #~ "and have as well setup a result page that you will use as your tag cloud "
    2250 #~ "target page"
    2251 #~ msgstr ""
    2252 #~ "Affichez le nuage de tags MediaTagger dans la colonne latérale. Avant "
    2253 #~ "tout, vous devez avoir taggé vos médias dans le panneau d'administration "
    2254 #~ "du plugin MediaTagger, et avoir également défini une page résultat qui "
    2255 #~ "sera utilisée comme page cible pour le nuage de tags."
    2256 
    2257 #, fuzzy
    2258 #~ msgid ""
    22592259#~ "The direct PHP call to the MediaTagger plugin core function "
    22602260#~ "wpit_multisort_insert() is deprecated starting version 2.5.2 of this "
  • wp-mediatagger/trunk/mediatagger-def.php

    r854879 r855344  
    121121    $t-> plugin_description = 'Display your MediaTagger tag cloud in the sidebar. Before that, you need to have properly tagged your medias in the MediaTagger plugin Admin Panel and have as well setup a result page that you will use as your tag cloud target page';
    122122   
    123    
    124123?>
  • wp-mediatagger/trunk/mediatagger.php

    r854856 r855344  
    77Author URI: http://www.photos-dauphine.com/
    88Version: 4.0.2
    9 Stable Tag: 4.0.1
     9Stable Tag: 4.0.2
    1010*/
    1111
     
    149149    //
    150150    function plugin_activation(){
    151         global $wpdb;
    152151       
    153152        self::admin_message_log(self::$t->activation . " :<br/>", true);
    154153       
    155         // Create DB if not existing
     154        // Create table if not existing
    156155        //
    157         $db_table_legacy =  $wpdb->term_relationships . '_img'; // up to release 3.2.1
    158         $db_table = self::$SQL_MDTG_TABLE;
    159         // For testing, uncomment line below
    160         // $db_table = self::$SQL_MDTG_TABLE . '_test';
    161        
    162         // If table already there, return with no action
    163         if ($wpdb->get_var('SHOW TABLES LIKE "' . $db_table . '"') == $db_table){
    164             self::admin_message_log(self::$t->table_detected_not_created . ".<br/>");
    165         } else {    // create or create AND import
    166             $sql = 'CREATE TABLE ' . $db_table . '(object_id BIGINT(20) NOT NULL DEFAULT 0,term_taxonomy_id BIGINT(20) NOT NULL DEFAULT 0,PRIMARY KEY (object_id,term_taxonomy_id),KEY term_taxonomy_id (term_taxonomy_id)) ENGINE=MyISAM DEFAULT CHARSET=utf8;';
    167             $wpdb->query($sql);
    168            
    169             if ($wpdb->get_var('SHOW TABLES LIKE "' . $db_table_legacy . '"') == $db_table_legacy){ // copy legacy to new
    170                 self::admin_message_log(self::$t->table_detected_converted . ".<br/>");         
    171                 $sql = 'INSERT INTO ' . $db_table . ' SELECT * FROM ' . $db_table_legacy . ';';
    172                 $wpdb->query($sql);     
    173             } else {
    174                 self::admin_message_log(self::$t->table_not_detected_created . ".<br/>");           
    175             }
    176         }
    177 
     156        self::check_table_exists(1);
     157       
    178158        self::load_options($admin_msg);
    179159        self::admin_message_log($admin_msg);           
     
    27182698        }
    27192699       
     2700        self::check_table_exists();
     2701       
    27202702        $sql_result = $wpdb->get_results($sql_query);
    27212703        if (mysql_error()) {
     
    27262708        return $sql_result;
    27272709    }
    2728    
     2710
     2711    ////////////////////////////////////////////////////////////////
     2712    // Check table exists - initialize of copy according to case
     2713    //
     2714    private function check_table_exists($verbose=0){
     2715       
     2716        global $wpdb;
     2717        $db_table_legacy =  $wpdb->term_relationships . '_img'; // up to release 3.2.1
     2718        $db_table = self::$SQL_MDTG_TABLE;
     2719        // For testing, uncomment line below
     2720        // $db_table = self::$SQL_MDTG_TABLE . '_test';
     2721       
     2722        // If table already there, return with no action
     2723        if ($wpdb->get_var('SHOW TABLES LIKE "' . $db_table . '"') == $db_table){
     2724            if ($verbose)
     2725                self::admin_message_log(self::$t->table_detected_not_created . ".<br/>");
     2726            return;
     2727        } else {    // create or create AND import
     2728            $sql = 'CREATE TABLE ' . $db_table . '(object_id BIGINT(20) NOT NULL DEFAULT 0,term_taxonomy_id BIGINT(20) NOT NULL DEFAULT 0,PRIMARY KEY (object_id,term_taxonomy_id),KEY term_taxonomy_id (term_taxonomy_id)) ENGINE=MyISAM DEFAULT CHARSET=utf8;';
     2729            $wpdb->query($sql);
     2730           
     2731            if ($wpdb->get_var('SHOW TABLES LIKE "' . $db_table_legacy . '"') == $db_table_legacy){ // copy legacy to new
     2732                self::admin_message_log(self::$t->table_detected_converted . ".<br/>");         
     2733                $sql = 'INSERT INTO ' . $db_table . ' SELECT * FROM ' . $db_table_legacy . ';';
     2734                $wpdb->query($sql);     
     2735            } else {
     2736                self::admin_message_log(self::$t->table_not_detected_created . ".<br/>");           
     2737            }
     2738        }
     2739    }
    27292740   
    27302741    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     
    27782789                file_put_contents($i18n_filename, file_get_contents($form_file), FILE_APPEND);
    27792790                file_put_contents($md5_filename, $md5);
    2780                
    2781                 // Get i18 file by FTP
    2782                 //self::get_ftp_file('www/wp-content/plugins/wp-mediatagger/languages/mediatagger-def-i18n.php',
    2783                 //  'C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages\1234.txt');
    2784                 /*if (unlink('/homez.424/photosdab/www/C:\\Users\\bruno.bourgeois\\Documents\\HOME\\phd\\phd\\wp-content\\plugins\\wp-mediatagger\\languages\\1234.txt'))
    2785                     echo 'SUCCESS <br/>';
    2786                 else
    2787                     echo 'fail <br/>';*/
    27882791            }
    27892792        }
     
    29973000    function mdtg_widget_init(){
    29983001        $id = self::$PLUGIN_NAME;
    2999         wp_register_sidebar_widget($id, $id, array($this, 'mdtg_widget'), array('description'=>__('Display your MediaTagger tag cloud in the sidebar. Before that, you need to have properly tagged your medias in the MediaTagger plugin Admin Panel and have as well setup a result page that you will use as your tag cloud target page', 'mediatagger')));     
     3002        wp_register_sidebar_widget($id, $id, array($this, 'mdtg_widget'), array('description'=>self::$t->plugin_description));     
    30003003        wp_register_widget_control($id, $id, array($this, 'mdtg_widget_control'));
    30013004    }
  • wp-mediatagger/trunk/readme.txt

    r854856 r855344  
    44Tags: widget, plugin, media, library, images, audio, video, mpeg, mp3, pdf, rtf, txt, taxonomy, photos, tags, tagging, bulk tagging, group tagging, gallery, photoblog, search, engine, classification, database, cleanup
    55Requires at least: 3.0
    6 Tested up to: 4.0.1
    7 Stable tag: 4.0.1
     6Tested up to: 4.0.2
     7Stable tag: 4.0.2
    88
    99
     
    2121
    2222
     23= 4.0.2 =
     24- Read & write to new table secured with systematic table detection checking.
     25
    2326
    2427= 4.0.1 =
    2528- Fix widget parameter loading moving from before 4.0 to 4.x
    26 
    2729
    2830
     
    4648
    4749
    48 
    4950= 3.2.1 =
    5051
Note: See TracChangeset for help on using the changeset viewer.