<fb:comments-count href=<?php echo $link;?>></fb:comments-count> Comments<div class="fb-comments" data-href='<?php echo $link;?>' data-width="640" data-num-posts="10"></div>
global $Itemid, $eblog;$stdlink = 'index.php?option=com_eblog&task=show&blogid='.$eblog->getCV('blogid').'&id='.$row->id.'&Itemid='.$Itemid;$seolink = 'eblog/'.$eblog->getCV('seotitle').'/'.$row->seotitle.'.html';$link = sefRelToAbs($stdlink, $seolink);
/*********************/ /* SHOW ARTICLE HTML */ /*********************/ static public function showArticle($row, $comments, $previous, $next) { self::blogStart(); self::blogHeader(); if ($row) { self::processArticle($row, 1); self::prevnextArticles($previous, $next); self::processComments([color=red][b]$row[/b][/color], $comments, $row->id); } self::blogFooter(); self::blogEnd(); }
static private function processComments([color=red][b]$row=null[/b][/color], $comments=null, $articleid=0) { global $eblog, $mainframe, $my, $Itemid; [color=red][b]$stdlink = 'index.php?option=com_eblog&task=show&blogid='.$eblog->getCV('blogid').'&id='.$row->id.'&Itemid='.$Itemid; $seolink = 'eblog/'.$eblog->getCV('seotitle').'/'.$row->seotitle.'.html'; $link = sefRelToAbs($stdlink, $seolink); if (!preg_match('/^(http)/i', $link)) { $link = $mainframe->getCfg('live_site').'/'.$link; }[/b][/color]
<div id="fb-root"></div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=350508628401343"; fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));FB.Event.subscribe('comment.create', function(response) { alert('Thanks for Your comment!');});FB.Event.subscribe('comment.remove', function(response) { alert('You deleted comment!'); });</script><h3 class="eblog-commentstitle"><a name="comments" id="comments">Comments via facebook</a><span class="eblog-commentstitle"> ( <fb:comments-count href=<?php echo $link;?>></fb:comments-count> Comments )</span> </h3><div class="fb-comments" data-href="<?php echo $link;?>" data-width="640" data-num-posts="10" data-notify="true"></div>