Home Home




To add Facebook comments to Publisher, just add a few lines of code in Publisher/templates/Publisher_item.html, just above the XOOPS comment system:


<div id="fb-root"></div>
<
script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:comments href="<{$item.itemurl}>" num_posts="5" width="650"></fb:comments>


The advantage of having Facebook comments in Publisher, is that comments will also be posted on the users Facebook wall if he decides to do so. Default is ON. That means more traffic to your site, as friends will see the article he/she commented on.

To moderate Facebook comments on your site, you need to add a meta tag in your theme, between


<meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}"/>


To add multiple moderators, add more than one element, each with one Facebook ID.

YOUR_FACEBOOK_USER_ID is typical something like this: 100007810858108

which will make the code to add:


<meta property="fb:admins" content="100007810858108" />


The disadvantage with Facebook comments, is that comments will vanish if the user disable his account or is deleted. But for traffic it is great!

|  Links 
Printer Friendly Page Send this Article to a Friend



 


 
Module Demos
Top Downloads




© 2009 - 2014 all right reserved | Danordesign - Free XOOPS Modules and PHP Scripts | Powered by XOOPS