Plugin Directory

Changeset 189135


Ignore:
Timestamp:
01/03/2010 12:37:54 AM (16 years ago)
Author:
hanok
Message:

Alto modificable y problemas de validacion

Location:
facebook-fan-box/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • facebook-fan-box/trunk/facebook-fan-box.php

    r151322 r189135  
    44Plugin URI: http://www.hnkweb.com/2009/08/03/facebook-fan-box-wordpress-plugin/
    55Description: Displays a Facebook Fan Box
    6 Version: 1.3.1
     6Version: 1.3.2
    77Author: Marcos Esperon
    88Author URI: http://www.hnkweb.com/
     
    3030$ffb_options['widget_fields']['connections'] = array('label'=>'Connections:', 'type'=>'text', 'default'=>'10', 'class'=>'', 'size'=>'3', 'help'=>'(Limit 100)');
    3131$ffb_options['widget_fields']['width'] = array('label'=>'Width:', 'type'=>'text', 'default'=>'300', 'class'=>'', 'size'=>'3', 'help'=>'(Value in px)');
     32$ffb_options['widget_fields']['height'] = array('label'=>'Height:', 'type'=>'text', 'default'=>'550', 'class'=>'', 'size'=>'3', 'help'=>'(Value in px)');
    3233$ffb_options['widget_fields']['css'] = array('label'=>'CSS:', 'type'=>'text', 'default'=>'', 'class'=>'widefat', 'size'=>'', 'help'=>'(External URL file)');
    3334$ffb_options['widget_fields']['iframe'] = array('label'=>'iFrame:', 'type'=>'checkbox', 'default'=>false, 'class'=>'', 'size'=>'', 'help'=>'');
    3435
    35 function facebook_fan_box($api_key, $profile_id, $stream = 1, $connections = 10, $width = 300, $css = '', $iframe = 0) {
     36function facebook_fan_box($api_key, $profile_id, $stream = 1, $connections = 10, $width = 300, $css = '', $iframe = 0, $height = 550) {
    3637    $output = '';
    3738  if ($profile_id != '') {
     
    4142               .'<fb:fan profile_id="'.$profile_id.'" stream="'.$stream.'" connections="'.$connections.'" width="'.$width.'" css="'.$css.'?'.mktime().'"></fb:fan>';
    4243    } else {
    43       $output = '<iframe scrolling="no" frameborder="0" src="http://www.facebook.com/connect/connect.php?id='.$profile_id.'&stream='.$stream.'&connections='.$connections.'&css='.$css.'?'.mktime().'" allowtransparency="true" style="border: none; width: '.$width.'px; height: 550px;"></iframe>';
     44      $output = '<iframe scrolling="no" frameborder="0" src="http://www.facebook.com/connect/connect.php?id='.$profile_id.'&amp;stream='.$stream.'&amp;connections='.$connections.'&amp;css='.$css.'?'.mktime().'" style="border: none; width: '.$width.'px; height: '.$height.'px;">&nbsp;</iframe>';
    4445    }
    4546  }
     
    7879    $connections = $item['connections'];
    7980    $width = $item['width'];
     81    $height = $item['height'];
    8082    $css = $item['css'];
    8183    $iframe = ($item['iframe']) ? 1 : 0;
     
    8385        // These lines generate our output.
    8486    echo $before_widget;
    85     facebook_fan_box($api_key, $profile_id, $stream, $connections, $width, $css, $iframe);
     87    facebook_fan_box($api_key, $profile_id, $stream, $connections, $width, $css, $iframe, $height);
    8688        echo $after_widget;
    8789               
  • facebook-fan-box/trunk/readme.txt

    r151323 r189135  
    44Requires at least: 2.0.0
    55Tested up to: 2.8
    6 Stable tag: 1.3.1
     6Stable tag: 1.3.2
    77
    88Display a Facebook Fan Box on your blog. Put the Facebook Fan Box in your sidebar using the widget mode or call the function inside your template.
     
    5252== Changelog == 
    5353
     54= 1.3.2 =
     55* Height option
     56* Solved validation errors.
     57
    5458= 1.3.1 = 
    5559* Solved problem with CSS cache.
Note: See TracChangeset for help on using the changeset viewer.