Results 1 to 5 of 5

Thread: How to Replace Pligg Comment Box to Facebook Comment Box ?

  1. #1
    New Pligger 12kerala's Avatar
    Joined
    May 2008
    Posts
    7

    Post How to Replace Pligg Comment Box to Facebook Comment Box ?

    I Want Remove or hide Pligg comment Box, and want Enable Facebook Comments, what they serve in Social Plugins

    Nowdays Most Internet Users using facebook. so facebook is bigg market for content promoting.

    How to Replace Pligg Comment Box to Facebook Comments ?

    Anyone will help me ?
    Attached Images Attached Images

  2. #2
    Senior Member foofoo's Avatar
    Joined
    Aug 2010
    Posts
    130
    http://www.pliggs.com/use-facebook-comments-plugin-in-pligg/

  3. #3
    Junior Member ziyush's Avatar
    Joined
    Apr 2012
    Posts
    9

    Replying Pligg commnet box with facebook coment box

    Quote Originally Posted by foofoo View Post
    http://www.pliggs.com/use-facebook-comments-plugin-in-pligg/
    Link not working kindly Guide Us

  4. #4
    Senior Member/Coder/Designer cmstheme's Avatar
    Joined
    Jan 2007
    Location
    Philippines
    Posts
    732
    Try this:
    • open pligg.tpl and find:
      PHP Code:
      {checkActionsTpl location="tpl_pligg_body_start"
      below that add the Facebook JavaScrip SDK:
      PHP Code:
      <div id="fb-root"></div>
      {
      literal}
      <
      script>(function(dsid) {
        var 
      jsfjs 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";
        
      fjs.parentNode.insertBefore(jsfjs);
      }(
      document'script''facebook-jssdk'));</script>
      {/literal} 


    • open story_center.tpl and find:
      PHP Code:
      <div id="comments"> <form action="" method="post" id="thisform"> <h3><a name="comments" class="comments_title">{#PLIGG_Visual_Story_Comments#}</a></h3>
              
      {checkActionsTpl location="tpl_pligg_story_comments_individual_start"}
                  {
      $the_comments}
              {
      checkActionsTpl location="tpl_pligg_story_comments_individual_end"}
              {if 
      $user_authenticated neq ""}
                  {include 
      file=$the_template."/comment_form.tpl"}
              {else}
                  <
      br/>
                  {
      checkActionsTpl location="anonymous_comment_form"}
                  <
      div align="center" class="login_to_comment"> <a href="{$login_url}">{#PLIGG_Visual_Story_LoginToComment#}</a> {#PLIGG_Visual_Story_Register#} <a href="{$register_url}">{#PLIGG_Visual_Story_RegisterHere#}</a>.
                  
      </div>
              {/if}
          </
      form> </div
      replace it with the Facebook comment form:
      PHP Code:
      <div class="fb-comments" data-href="{$my_base_url}{$navbar_where.link2}data-num-posts="10" data-width="500"></div


    I'm assuming you use wistie. If you're using different template, just make sure that it's the code for the comment form you have replaced.

  5. #5
    Junior Member malcom1972's Avatar
    Joined
    Feb 2012
    Posts
    9
    Tested in Genesis template, Pligg 1.2.0 and it works! Thanks!

Similar Threads

  1. Pligg comment
    By shredax in forum Questions & Comments
    Replies: 1
    Last Post: 08-22-2009, 08:17 AM
  2. Comment Rating In Pligg and Other Issues...
    By ReddyEye in forum Questions & Comments
    Replies: 1
    Last Post: 03-19-2009, 09:19 PM
  3. Comment Pop-Up
    By abraxas in forum Questions & Comments
    Replies: 0
    Last Post: 04-16-2008, 06:56 AM
  4. Does Pligg offer IP banning, and 'report comment'?
    By HealthGurl in forum Questions & Comments
    Replies: 1
    Last Post: 08-14-2007, 07:34 PM
  5. How 2 link the #votes to the comment/story pligg page
    By noyp in forum Questions & Comments
    Replies: 1
    Last Post: 08-06-2006, 07:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •