How to add Facebook comments to a custom/static XOOPS Module

Date 2015/2/12 14:27:51 | Topic: XOOPS Tips

A very simple process really. Just add a new center block bottom to your module and insert this little code:


<div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <fb:comments href="(NAME OF YOUR MODULE)>" num_posts="5" width="650"></fb:comments>


A working example at this site, for the Viking Name Generator:


<div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <fb:comments href="http://www.danordesign.com/modules/Viking-Name-Generator/>" num_posts="5" width="650"></fb:comments>


Change the width to fit your theme, and select how many posts you want visible.

Give the block a high number eg 9000 so that it will appear last on the page.

To add moderators, look at this post.




This article comes from DanorDesign
http://www.danordesign.com

The URL for this article is:
http://www.danordesign.com/modules/AMS/article.php?storyid=5