WordPress.org

Plugin Directory

Changeset 530715


Ignore:
Timestamp:
04/13/12 18:54:56 (2 years ago)
Author:
Viper007Bond
Message:

v6.4.1

  • FLV: Don't disable the checkbox so that it can be unchecked to hide the message.
  • FLV: Only show the admin notice to administrators. It's unlikely anyone else can do anything about it.
Location:
vipers-video-quicktags/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vipers-video-quicktags/trunk/readme.txt

    r530529 r530715  
    9999 
    100100== Changelog == 
     101 
     102= v6.4.1 = 
     103 
     104* **FLV:** Don't disable the checkbox so that it can be unchecked to hide the message. 
     105* **FLV:** Only show the admin notice to administrators. It's unlikely anyone else can do anything about it. 
    101106 
    102107= v6.4.0 = 
  • vipers-video-quicktags/trunk/vipers-video-quicktags.php

    r530527 r530715  
    66Plugin URI:   http://www.viper007bond.com/wordpress-plugins/vipers-video-quicktags/ 
    77Description:  Easily embed videos from various video websites such as YouTube, DailyMotion, and Vimeo into your posts. 
    8 Version:      6.4.0 
     8Version:      6.4.1 
    99Author:       Viper007Bond 
    1010Author URI:   http://www.viper007bond.com/ 
     
    5656 
    5757class VipersVideoQuicktags { 
    58     var $version = '6.4.0'; 
     58    var $version = '6.4.1'; 
    5959    var $settings = array(); 
    6060    var $defaultsettings = array(); 
     
    386386 
    387387            // Display a warning if FLV button is showing but player isn't installed 
    388             if ( 1 == $this->settings['flv']['button'] && ! $this->is_jw_flv_player_installed() ) { 
     388            if ( 1 == $this->settings['flv']['button'] && current_user_can( 'manage_options' ) && ! $this->is_jw_flv_player_installed() ) { 
    389389                add_action( 'admin_notices', array( &$this, 'admin_notices_install_jw_player_warning' ) ); 
    390390            } 
     
    485485        global $parent_file; 
    486486 
    487         add_settings_error( 'vvq_options', 'vvq_jw_flv_player_not_installed', sprintf( __( 'IMPORTANT MESSAGE FROM THE VIPER\'S VIDEO QUICKTAGS PLUGIN: In order for your <code>[flv]</code> video embeds to continue to work, you must manually reinstall the JW FLV Player! Please download <a href="%1$s">this ZIP file</a> and then upload the <code>jw-flv-player</code> folder inside of the ZIP to your <code>wp-content</code> folder (%2$s). For details about this change, please see <a href="%3$s">this blog post</a> on the plugin author\'s website.', 'a8c-developer' ), 'http://v007.me/jwflvplayer', '<code>' . WP_CONTENT_DIR . '/</code>', 'http://v007.me/9a4' ) ); 
     487        add_settings_error( 'vvq_options', 'vvq_jw_flv_player_not_installed', sprintf( __( 'IMPORTANT MESSAGE FROM THE VIPER\'S VIDEO QUICKTAGS PLUGIN: In order for your <code>[flv]</code> video embeds to continue to work, you must manually reinstall the JW FLV Player! Please download <a href="%1$s">this ZIP file</a> and then upload the <code>jw-flv-player</code> folder inside of the ZIP to your <code>wp-content</code> folder (%2$s). For details about this change, please see <a href="%3$s">this blog post</a> on the plugin author\'s website. Or if you just had the button enabled but never actually embeded anything using it, you can uncheck the button checkbox on the <a href="%4$s">settings page</a> to hide this message.', 'a8c-developer' ), 'http://v007.me/jwflvplayer', '<code>' . WP_CONTENT_DIR . '/</code>', 'http://v007.me/9a4', admin_url( 'options-general.php?page=vipers-video-quicktags' ) ) ); 
    488488 
    489489        // Avoid a double message 
     
    26792679                        echo '<br /><small>' . sprintf( __('<a href="%1$s">JW\'s FLV Media Player</a> is covered by the <a href="%2$s">Creative Commons Noncommercial<br />license</a> which means you cannot use it on a <a href="%3$s">commercial website</a>.', 'vipers-video-quicktags'), 'http://www.jeroenwijering.com/?item=JW_FLV_Media_Player', 'http://creativecommons.org/licenses/by-nc-sa/3.0/', 'http://www.jeroenwijering.com/?page=order' ); 
    26802680                ?></small></td> 
    2681                 <td><input name="vvq[flv][button]" id="vvq-flvbutton" type="checkbox" value="1" <?php checked($this->settings['flv']['button'], 1); disabled( $this->is_jw_flv_player_installed(), false ); ?> /></td> 
     2681                <td><input name="vvq[flv][button]" id="vvq-flvbutton" type="checkbox" value="1" <?php checked($this->settings['flv']['button'], 1); ?> /></td> 
    26822682                <td><input name="vvq[flv][width]" type="text" size="5" value="<?php echo $this->settings['flv']['width']; ?>" /></td> 
    26832683                <td><input name="vvq[flv][height]" type="text" size="5" value="<?php echo $this->settings['flv']['height']; ?>" /></td> 
Note: See TracChangeset for help on using the changeset viewer.