Plugin Directory

Changeset 717846


Ignore:
Timestamp:
05/24/2013 03:07:18 PM (13 years ago)
Author:
conductrics
Message:

improvements in plugin setup instructions and provision of conductrics account details.

Location:
conductrics-webactions/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • conductrics-webactions/trunk/conductrics-webactions.php

    r712473 r717846  
    33    Plugin Name: Conductrics Web Actions
    44    Description: Includes Conductrics Web Actions scripts in your pages, which makes it easy to test changes to your pages, track their success, and do dynamic targeting.
    5     Version: 0.2.5
     5    Version: 0.2.6
    66    Author: Conductrics
    77    Author URI: http://conductrics.com
  • conductrics-webactions/trunk/js/agent-list-input.jquery.js

    r712473 r717846  
    88                selector: '.agent-code-list'
    99            }, optionz);
    10             refreshAgentList();
     10            if ( hasAdminAccountInfo() ) {
     11                refreshAgentList();
     12            } else {
     13                showMessage('<strong>Plugin not set up.</strong> Please go to the Conductrics Account tab under Settings > Conductrics Actions and provide your account details.');
     14            }
    1115        }
    1216    };
     17
     18    showMessage = function(msg) {
     19        console.log(msg);
     20        $(options.selector).parent().html('<font color="#AA3333">' + msg + '</font>');
     21    };
     22
     23    hasAdminAccountInfo = function() {
     24        return options.account
     25            && options.account.owner && options.account.owner.length > 5
     26            && options.account.adminkey && options.account.adminkey.length > 5
     27            && options.account.adminurl && options.account.adminurl.length > 5 && options.account.adminurl.indexOf('http') == 0
     28    }
    1329
    1430    // Simple wrapper around $.ajax
     
    5268
    5369                if (callback) callback();
     70            } else {
     71                showMessage('<strong>Could not retrieve your Conductrics agents.</strong> Please check the Conductrics Account info you provided when setting up this plugin, and check your Internet connection.');
    5472            }
    5573        });
  • conductrics-webactions/trunk/readme.txt

    r712473 r717846  
    6161== Changelog ==
    6262
     63= 0.2.6 =
     64* Display a hint in wp-admin when Conductrics Account info has not been provided.
     65* Fixed a spelling error in the setup instructions.
     66
    6367= 0.2.5 =
    6468* First publicly-available version.
     
    6670== Upgrade Notice ==
    6771
     72= 0.2.6 =
     73* This version simplifies the intial setup process.
     74
    6875= 0.2.5 =
    6976First publicly-available version.
Note: See TracChangeset for help on using the changeset viewer.