Plugin Directory

Changeset 448145


Ignore:
Timestamp:
10/06/2011 04:13:37 PM (14 years ago)
Author:
kcfried
Message:
  • Fixed occasional https/http/multi-site confusion when activating the plugin.
  • Fixed like/unlike in reload to ensure that a fan page url is defined for edge.create/remove events
  • Now enqueueing jQuery!
  • Added plugin version number to the global settings page
  • Converted the soon to be deprecated setAutoResize function to setAutoGrow for FB iFrame resizing
  • Fixed menu width - now 520 pixels!
Location:
fanpage-connect/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • fanpage-connect/trunk/css/fanpage-connect.css

    r410279 r448145  
    120120    border: 1px solid #aaa !important;
    121121}
     122
     123.fpc-version {
     124    float: right;
     125    font-style: italic;
     126}
  • fanpage-connect/trunk/css/wp.css

    r410279 r448145  
    6363    float: left;
    6464    margin: 0 auto;
    65     width: 500px;
     65    width: 520px;
    6666    border-bottom: 1px solid #1D4088;
    6767}
     
    7070    font-size: 12px;
    7171    margin-left: 8px;
    72     width: 492px;
     72    width: 512px;
    7373}
    7474#fpc-menu .menu-header ul,
  • fanpage-connect/trunk/fanpage-connect-options.php

    r427200 r448145  
    104104                <?php wp_nonce_field('fpc-options-nonce'); ?>
    105105
     106                <span class="fpc-version">You're Rocking Fanpage Connect Free <strong>v<?php echo FPC_PLUGIN_VERSION; ?></strong></span>
    106107                <h3>Global Fan Page Connect Settings</h3>
    107108
  • fanpage-connect/trunk/fanpage-connect.php

    r437541 r448145  
    33Plugin Name: Fanpage Connect FREE
    44Plugin URI: http://www.fanpageconnect.com
    5 Version: v1.4.3
     5Version: v1.4.4
    66Author: Pat Friedl, Chris Friedl, Bryan Batson
    77Description: Fanpage Connect is the WordPress plugin that allows you to create an administer your Facebook fan pages directly from WordPress.
     
    7979
    8080            if (!defined('FPC_PLUGIN_VERSION'))
    81                 define('FPC_PLUGIN_VERSION','1.4.3');
     81                define('FPC_PLUGIN_VERSION','1.4.4');
    8282
    8383            global $post;
     
    9292            add_action('admin_init', array(&$this, 'fpc_admin_init'));
    9393            add_action('admin_footer',array(&$this, 'fpc_admin_footer'));
     94
     95            // add jquery to the page
     96            add_action('wp_enqueue_scripts',array(&$this, 'fpc_add_jquery'));
    9497
    9598            // add to tinyMCE
     
    259262</style>
    260263<script type="text/javascript">
    261 window.fbAsyncInit = function() { FB.Canvas.setAutoResize(100); }
    262 function sizeChangeCallback() { FB.Canvas.setAutoResize(100); }
     264window.fbAsyncInit = function() { FB.Canvas.setAutoGrow(100); }
     265function sizeChangeCallback() { FB.Canvas.setAutoGrow(100); }
    263266</script>
    264267<?php } ?>
     
    355358<script type="text/javascript">
    356359FB.init({   appId : '<?php echo $this->fbappid; ?>', status : true, cookie : true, xfbml : true, oauth: true    });
    357 <?php if(!empty($this->fbappid)):?>
     360<?php if(!empty($this->fbappid) && !empty($this->g_fp_url)):?>
    358361FB.Event.subscribe('edge.create', function(response) { top.location.href = "<?php echo $this->g_fp_url.'?sk=app_'.$this->fbappid; ?>"; });
    359 FB.Event.subscribe('edge.create', function(response) { top.location.href = "<?php echo $this->g_fp_url.'?sk=app_'.$this->fbappid; ?>"; });
     362FB.Event.subscribe('edge.remove', function(response) { top.location.href = "<?php echo $this->g_fp_url.'?sk=app_'.$this->fbappid; ?>"; });
    360363<?php endif; ?>
    361364</script>
     
    442445        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    443446        */
     447
     448        /*
     449        enqueue jQuery
     450        */
     451        function fpc_add_jquery() {
     452            if (!is_admin()) {
     453                wp_enqueue_script('jquery');
     454        }
     455        } // end enqueue jquery
    444456
    445457        /*
     
    856868        */
    857869        function reg_form($step,$name,$email,$frm,$hide,$btn){
    858             $doc_protocol = (empty($_SERVER['HTTPS']))? 'http://' : 'https://';
    859             $options_url = $doc_protocol . $_SERVER['HTTP_HOST']  . $_SERVER['SCRIPT_NAME'];
    860             $option_page = ($_GET['page'] != '') ? $_GET['page'] : 'fanpage-connect.php';
    861             $admin_url = $options_url.'?page='.$option_page;
    862870        ?>
    863871            <script language="javascript">
     
    903911            <input type="hidden" name="custom Website" value='<?php bloginfo('url'); ?>' />
    904912            <input type="hidden" name="reg_step" value="<?php echo $step;?>" />
    905             <input type="hidden" name="admin_url" value="<?php echo $admin_url; ?>">
    906             <img src="http://forms.aweber.com/form/displays.htm?id=jMyc7JxsjAzMrA==" alt="" />
     913            <script language="javascript">
     914            document.write('<input type="hidden" name="admin_url" value="'+document.location+'">');
     915            </script>
     916            <img src="https://forms.aweber.com/form/displays.htm?id=jMyc7JxsjAzMrA==" alt="" />
    907917            </div>
    908918            <table cellpadding="5" cellspacing="3" border="0" class="reg_form_center"<?php if($hide){echo ' style="display:none;"';} ?>>
  • fanpage-connect/trunk/readme.txt

    r437565 r448145  
    66Requires at least: 3.0
    77Tested up to: 3.2.1
    8 Stable tag: 1.4.3
     8Stable tag: 1.4.4
    99
    1010Fanpage Connect is the WordPress plugin that allows you to create an administer your Facebook fan pages directly from WordPress.
     
    115115== Upgrade Notice ==
    116116
    117 * Emergency patch - please update immediately!
     117* Minor updates, please upgrade!
    118118
    119119== Changelog ==
     120= 1.4.4 =
     121* Fixed occasional https/http/multi-site confusion when activating the plugin.
     122* Fixed like/unlike in reload to ensure that a fan page url is defined for edge.create/remove events
     123* Now enqueueing jQuery!
     124* Added plugin version number to the global settings page
     125* Converted the soon to be deprecated setAutoResize function to setAutoGrow for FB iFrame resizing
     126* Fixed menu width - now 520 pixels!
     127
    120128= 1.4.3 =
    121129* Emergency patch for broken version 1.4.2!
Note: See TracChangeset for help on using the changeset viewer.