1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-15 20:15:24 +01:00
php-e107/e107_plugins/facebook/fb_fan_menu.php
2009-11-11 16:00:44 +00:00

41 lines
862 B
PHP

<?php
/**
* Fan Box - Become a Fan Of...
*
* http://wiki.developers.facebook.com/index.php/Fan_Box
* this must be later inserted in the Control Panel where User can chose below Parameters :
* stream = Set to 1 to display stream stories in the Fan Box or 0 to hide stream stories. (Default value is 1.)
* connections = The number of fans to display in the Fan Box. Specifying 0 hides the list of fans in the Fan Box. You cannot display more than 100 fans. (Default value is 10 connections.)
*
* see the render_fun_box() function
*
*/
if (!defined('e107_INIT'))
{
exit;
}
include_once(e_PLUGIN.'facebook/facebook_function.php');
global $fb;
if (isset($_POST['fb_sig_in_canvas']))
{
return;
}
if ($this->fb_uid)
{
$html = '';
$html .= Render_Fun_Box('0', '10', '200px');
$caption = 'Fan Box';
$ns->tablerender($caption, $html);
}
?>