Plugin Directory

Changeset 204588


Ignore:
Timestamp:
02/12/2010 04:14:02 PM (16 years ago)
Author:
hanok
Message:

Logo bar option

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

Legend:

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

    r198984 r204588  
    44Plugin URI: http://www.dolcebita.com/wordpress/facebook-fan-box-wordpress-plugin/
    55Description: Displays a Facebook Fan Box
    6 Version: 1.3.3
     6Version: 1.4
    77Author: Marcos Esperon
    88Author URI: http://www.dolcebita.com/
     
    3333$ffb_options['widget_fields']['css'] = array('label'=>'CSS:', 'type'=>'text', 'default'=>'', 'class'=>'widefat', 'size'=>'', 'help'=>'(External URL file)');
    3434$ffb_options['widget_fields']['iframe'] = array('label'=>'iFrame:', 'type'=>'checkbox', 'default'=>false, 'class'=>'', 'size'=>'', 'help'=>'');
     35$ffb_options['widget_fields']['logo'] = array('label'=>'Logo:', 'type'=>'checkbox', 'default'=>false, 'class'=>'', 'size'=>'', 'help'=>'');
    3536
    36 function facebook_fan_box($api_key, $profile_id, $stream = 1, $connections = 10, $width = 300, $css = '', $iframe = 0, $height) {
     37function facebook_fan_box($api_key, $profile_id, $stream = 1, $connections = 10, $width = 300, $css = '', $iframe = 0, $height, $logo = 0) {
    3738    $output = '';
    3839  if ($profile_id != '') {
     
    4041      $output = '<script src="http://www.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>'
    4142               .'<script type="text/javascript">FB.init("'.$api_key.'", "");</script>'
    42                .'<fb:fan profile_id="'.$profile_id.'" stream="'.$stream.'" connections="'.$connections.'" width="'.$width.'" css="'.$css.'?'.mktime().'"></fb:fan>';
     43               .'<fb:fan profile_id="'.$profile_id.'" stream="'.$stream.'" connections="'.$connections.'" logobar="'.$logo.'" width="'.$width.'" css="'.$css.'?'.mktime().'"></fb:fan>';
    4344    } else {
    4445      if($height != '') $height = ' height: '.$height.'px;';
    45       $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.'">&nbsp;</iframe>';
     46      $output = '<iframe scrolling="no" frameborder="0" src="http://www.facebook.com/connect/connect.php?id='.$profile_id.'&amp;stream='.$stream.'&amp;connections='.$connections.'&amp;logobar='.$logo.'&amp;css='.$css.'?'.mktime().'" style="border: none; width: '.$width.'px; '.$height.'">&nbsp;</iframe>';
    4647    }
    4748  }
     
    8384    $css = $item['css'];
    8485    $iframe = ($item['iframe']) ? 1 : 0;
     86    $logo = ($item['logo']) ? 1 : 0;
    8587   
    8688        // These lines generate our output.
    8789    echo $before_widget;
    88     facebook_fan_box($api_key, $profile_id, $stream, $connections, $width, $css, $iframe, $height);
     90    facebook_fan_box($api_key, $profile_id, $stream, $connections, $width, $css, $iframe, $height, $logo);
    8991        echo $after_widget;
    9092               
  • facebook-fan-box/trunk/readme.txt

    r198985 r204588  
    44Requires at least: 2.0.0
    55Tested up to: 2.8
    6 Stable tag: 1.3.3
     6Stable tag: 1.4
    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.
     
    1616If you want to change updates visibility, max. number of fans, width or css properties, just do this:
    1717
    18 `<?php facebook_fan_box('API_KEY', 'PROFILE_ID', 'STREAM', 'CONNECTIONS', 'WIDTH', 'CSS', 'IFRAME', 'HEIGHT'); ?>`
     18`<?php facebook_fan_box('API_KEY', 'PROFILE_ID', 'STREAM', 'CONNECTIONS', 'WIDTH', 'CSS', 'IFRAME', 'HEIGHT', 'LOGO'); ?>`
    1919
    2020Where:
     
    3131
    3232- HEIGHT: Limits the height used by the widget.
     33
     34- LOGO: Show/Hide Facebook logo bar.
    3335
    3436== Installation ==
     
    5456== Changelog == 
    5557
     58= 1.4 =
     59* Facebook logo bar option.
     60
    5661= 1.3.2 =
    57 * Height option
     62* Height option.
    5863* Solved validation errors.
    5964
Note: See TracChangeset for help on using the changeset viewer.