Facebook comment

Support help forum dedicated to free and commerical templates for Joomla 3 and 2.5 version.
GK User
Wed Sep 11, 2013 5:43 pm
I installed facebook comment in k2 items, but when someone comment an article, it goes in every page, can you tell me how to attribute comment only for the article concerned ?
User avatar
Junior Boarder

GK User
Thu Sep 12, 2013 7:20 am
Is this 3rd party plugin You have installed?
User avatar
Moderator

GK User
Sun Sep 15, 2013 1:56 am
no i added a code at the end of item layout file:

Code:
<script type="text/javascript">
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>

<div class="fb-comments" data-href="<?php echo JURI::getInstance()->toString(array('scheme', 'host', 'port')) . $this->item->readmore_link; ?>" data-num-posts="2" data-width="576"></div>
User avatar
Junior Boarder

GK User
Sun Sep 15, 2013 8:43 am
Could You please post an url to your site?
User avatar
Moderator

GK User
Sun Sep 15, 2013 3:01 pm
User avatar
Junior Boarder

GK User
Mon Sep 16, 2013 8:05 pm
try replacing:
Code: Select all
$this->item->readmore_link

with:
Code: Select all
$this->item->link
User avatar
Moderator


cron