Wednesday, July 28, 2010

Joomla Facebook like button module

<?php
defined('_JEXEC') or die('Restricted access');
?>
<?php
$uri = & JURI::getInstance();
$current = $uri->toString( array('scheme', 'host', 'port', 'path'));
?>
<iframe src="http://www.facebook.com/plugins/like.php?href=&lt;?php echo $current; ?>&layout=standard&show_faces=true&width=250&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:80px;" allowTransparency="true"></iframe>