Plugin Directory

Changeset 1460932


Ignore:
Timestamp:
07/26/2016 04:12:55 PM (10 years ago)
Author:
philbaylog
Message:

v1.8.2

Location:
quickiebar
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • quickiebar/tags/1.8.2/admin/controllers/setup.php

    r1085695 r1460932  
    99
    1010class qb_setup{
    11    
     11
    1212    var $action;
    13    
     13
    1414    function __construct(){
    1515        //If setup is not complete, show the setup page in addition to the other pages
    1616        add_action('admin_menu', array($this, 'admin_menu'));
    1717    }
    18    
     18
    1919    function admin_menu(){
    2020        $page = add_submenu_page('quickiebar', 'Setup', 'Setup', 'manage_options', 'quickiebar', array($this, 'html') );
    2121    }
    22    
     22
    2323    static function complete_setup($email_address, $subscribed = false, $format = 'php'){
    24        
     24
    2525        update_option('qb_setup_complete', true);
    2626        update_option('qb_email', $email_address);
    2727        update_option('qb_subscribed', ($subscribed == "true" ? true : false));
    28        
     28
    2929        $result = true;
    30        
     30
    3131        if($format == 'json'){
    3232            return json_encode($result);
     
    3636        }
    3737    }
    38    
     38
    3939    //echo out the settings view (html file) file when loading the bars admin page
    4040    function html(){
    4141        readfile(QB_PLUGIN_PATH . 'admin/views/setup.html');
    42        
     42
    4343        //enqueue scripts for this view
    4444        $this->enqueue_scripts_for_view();
    4545    }
    46    
     46
    4747    function enqueue_scripts_for_view(){
    48        
     48
    4949        //get the current user's email address for populating the setup form
    50         global $current_user;
    51         get_currentuserinfo();
     50        $current_user = wp_get_current_user();
    5251        $user_email = $current_user->user_email;
    53        
     52
    5453        wp_enqueue_script('qb-setup', QB_PLUGIN_URL . 'admin/js/setup.js', array('jquery', 'knockout', 'underscore'), microtime(), true);
    5554        wp_localize_script('qb-setup', 'QB_GLOBALS', array( 'QB_ADMIN_NONCE' => wp_create_nonce('qb_admin_nonce') ) );
    56        
     55
    5756        wp_localize_script('qb-setup', 'qb_setup', array(
    5857            'email' => wp_get_current_user()->user_email,
     
    6059            'website' => get_site_url()
    6160        ) );
    62        
     61
    6362    }
    6463}
  • quickiebar/tags/1.8.2/quickiebar.php

    r1329319 r1460932  
    44Plugin URI: https://quickiebar.com
    55Description: QuickieBar makes it easy for you to convert visitors by adding an attractive and easily customizable conversion bar to the top or bottom of your site.
    6 Version: 1.8.1
     6Version: 1.8.2
    77Author: Phil Baylog
    88Author URI: https://quickiebar.com
     
    1717
    1818global $QB_VERSION;
    19 $QB_VERSION = '1.8.1';
     19$QB_VERSION = '1.8.2';
    2020
    2121class QuickieBar{
     
    194194            update_option('qb_bar_zindex', '100');
    195195        }
    196        
     196
    197197        //New options with 1.8.0
    198198        if(!get_option('qb_custom_post_type_visibility')){
     
    230230            button_style varchar(55) DEFAULT 'rounded' NOT NULL,
    231231            close_button_visibility varchar(55) DEFAULT 'onhover' NOT NULL,
    232             bar_uuid varchar(13) NOT NULL UNIQUE,
    233             PRIMARY KEY  (id),
    234             UNIQUE KEY (bar_uuid)
     232            bar_uuid varchar(13) NOT NULL,
     233            PRIMARY KEY  (id)
     234            UNIQUE KEY bar_uuid_index (bar_uuid)
    235235            ) " . $charset_collate . " AUTO_INCREMENT=1;";
    236236
     
    241241            bar_uuid varchar(13) NOT NULL,
    242242            PRIMARY KEY  (id),
    243             KEY (user_uuid, bar_uuid)
     243            KEY user_uuid_index (user_uuid),
     244            KEY bar_uuid_index (bar_uuid)
    244245            ) " . $charset_collate . " AUTO_INCREMENT=1;";
    245246
     
    250251            bar_uuid varchar(13) NOT NULL,
    251252            PRIMARY KEY  (id),
    252             KEY (user_uuid, bar_uuid)
     253            KEY user_uuid_index (user_uuid),
     254            KEY bar_uuid_index (bar_uuid)
    253255            ) " . $charset_collate . " AUTO_INCREMENT=1;";
    254256
     
    260262            //1.7.1 updated lengths of varchar column types for bar_text, button_text, and destination
    261263            //to increase support for html + foreign characters
    262             add_option('qb_db_version', '1.7.1');
     264            //1.8.2 added names for primary, unique, and key columns to fix bug w/ duplicated entries being created on dbDelta db updating
     265            add_option('qb_db_version', '1.8.2');
    263266    }
    264267
     
    512515            else if(is_singular() && !is_singular('post') && !is_page() && !is_attachment()){
    513516                //custom post type
    514                
     517
    515518                $custom_post_type_visibility = get_option('qb_custom_post_type_visibility');
    516                
     519
    517520                if($custom_post_type_visibility == 'show'){
    518521                    return true;
  • quickiebar/tags/1.8.2/readme.txt

    r1329319 r1460932  
    44Requires at least: 3.8
    55Donate Link: https://quickiebar.com/pricing
    6 Tested up to: 4.4.1
    7 Stable tag: 1.8.1
     6Tested up to: 4.5.3
     7Stable tag: 1.8.2
    88License: GPLv2
    99
     
    134134== Changelog ==
    135135
     136= 1.8.2 | Jul 26, 2016 =
     137* Fix: Fixed issue w/ duplicated db records being created in some WP instances on db update
     138* Fix: Removed deprecated get_currentuserinfo call
     139
    136140= 1.8.1 | Jan 15, 2016 =
    137141* Fix: Links to "call", "sms", and "skype" prefixes can now be added as QuickieBar actions
  • quickiebar/trunk/admin/controllers/setup.php

    r1085695 r1460932  
    99
    1010class qb_setup{
    11    
     11
    1212    var $action;
    13    
     13
    1414    function __construct(){
    1515        //If setup is not complete, show the setup page in addition to the other pages
    1616        add_action('admin_menu', array($this, 'admin_menu'));
    1717    }
    18    
     18
    1919    function admin_menu(){
    2020        $page = add_submenu_page('quickiebar', 'Setup', 'Setup', 'manage_options', 'quickiebar', array($this, 'html') );
    2121    }
    22    
     22
    2323    static function complete_setup($email_address, $subscribed = false, $format = 'php'){
    24        
     24
    2525        update_option('qb_setup_complete', true);
    2626        update_option('qb_email', $email_address);
    2727        update_option('qb_subscribed', ($subscribed == "true" ? true : false));
    28        
     28
    2929        $result = true;
    30        
     30
    3131        if($format == 'json'){
    3232            return json_encode($result);
     
    3636        }
    3737    }
    38    
     38
    3939    //echo out the settings view (html file) file when loading the bars admin page
    4040    function html(){
    4141        readfile(QB_PLUGIN_PATH . 'admin/views/setup.html');
    42        
     42
    4343        //enqueue scripts for this view
    4444        $this->enqueue_scripts_for_view();
    4545    }
    46    
     46
    4747    function enqueue_scripts_for_view(){
    48        
     48
    4949        //get the current user's email address for populating the setup form
    50         global $current_user;
    51         get_currentuserinfo();
     50        $current_user = wp_get_current_user();
    5251        $user_email = $current_user->user_email;
    53        
     52
    5453        wp_enqueue_script('qb-setup', QB_PLUGIN_URL . 'admin/js/setup.js', array('jquery', 'knockout', 'underscore'), microtime(), true);
    5554        wp_localize_script('qb-setup', 'QB_GLOBALS', array( 'QB_ADMIN_NONCE' => wp_create_nonce('qb_admin_nonce') ) );
    56        
     55
    5756        wp_localize_script('qb-setup', 'qb_setup', array(
    5857            'email' => wp_get_current_user()->user_email,
     
    6059            'website' => get_site_url()
    6160        ) );
    62        
     61
    6362    }
    6463}
  • quickiebar/trunk/quickiebar.php

    r1329319 r1460932  
    44Plugin URI: https://quickiebar.com
    55Description: QuickieBar makes it easy for you to convert visitors by adding an attractive and easily customizable conversion bar to the top or bottom of your site.
    6 Version: 1.8.1
     6Version: 1.8.2
    77Author: Phil Baylog
    88Author URI: https://quickiebar.com
     
    1717
    1818global $QB_VERSION;
    19 $QB_VERSION = '1.8.1';
     19$QB_VERSION = '1.8.2';
    2020
    2121class QuickieBar{
     
    194194            update_option('qb_bar_zindex', '100');
    195195        }
    196        
     196
    197197        //New options with 1.8.0
    198198        if(!get_option('qb_custom_post_type_visibility')){
     
    230230            button_style varchar(55) DEFAULT 'rounded' NOT NULL,
    231231            close_button_visibility varchar(55) DEFAULT 'onhover' NOT NULL,
    232             bar_uuid varchar(13) NOT NULL UNIQUE,
    233             PRIMARY KEY  (id),
    234             UNIQUE KEY (bar_uuid)
     232            bar_uuid varchar(13) NOT NULL,
     233            PRIMARY KEY  (id)
     234            UNIQUE KEY bar_uuid_index (bar_uuid)
    235235            ) " . $charset_collate . " AUTO_INCREMENT=1;";
    236236
     
    241241            bar_uuid varchar(13) NOT NULL,
    242242            PRIMARY KEY  (id),
    243             KEY (user_uuid, bar_uuid)
     243            KEY user_uuid_index (user_uuid),
     244            KEY bar_uuid_index (bar_uuid)
    244245            ) " . $charset_collate . " AUTO_INCREMENT=1;";
    245246
     
    250251            bar_uuid varchar(13) NOT NULL,
    251252            PRIMARY KEY  (id),
    252             KEY (user_uuid, bar_uuid)
     253            KEY user_uuid_index (user_uuid),
     254            KEY bar_uuid_index (bar_uuid)
    253255            ) " . $charset_collate . " AUTO_INCREMENT=1;";
    254256
     
    260262            //1.7.1 updated lengths of varchar column types for bar_text, button_text, and destination
    261263            //to increase support for html + foreign characters
    262             add_option('qb_db_version', '1.7.1');
     264            //1.8.2 added names for primary, unique, and key columns to fix bug w/ duplicated entries being created on dbDelta db updating
     265            add_option('qb_db_version', '1.8.2');
    263266    }
    264267
     
    512515            else if(is_singular() && !is_singular('post') && !is_page() && !is_attachment()){
    513516                //custom post type
    514                
     517
    515518                $custom_post_type_visibility = get_option('qb_custom_post_type_visibility');
    516                
     519
    517520                if($custom_post_type_visibility == 'show'){
    518521                    return true;
  • quickiebar/trunk/readme.txt

    r1329319 r1460932  
    44Requires at least: 3.8
    55Donate Link: https://quickiebar.com/pricing
    6 Tested up to: 4.4.1
    7 Stable tag: 1.8.1
     6Tested up to: 4.5.3
     7Stable tag: 1.8.2
    88License: GPLv2
    99
     
    134134== Changelog ==
    135135
     136= 1.8.2 | Jul 26, 2016 =
     137* Fix: Fixed issue w/ duplicated db records being created in some WP instances on db update
     138* Fix: Removed deprecated get_currentuserinfo call
     139
    136140= 1.8.1 | Jan 15, 2016 =
    137141* Fix: Links to "call", "sms", and "skype" prefixes can now be added as QuickieBar actions
Note: See TracChangeset for help on using the changeset viewer.