Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    New Pligger lochoe's Avatar
    Joined
    Aug 2008
    Posts
    24

    Use "disqus" in comment

    This is small modification to use "disqus" box instead of pligg comment box..

    a lot of thing must improve, but this is basic for you if you want this "great tools in your site"

    Go to your yoursite.com/templates/YOURTEMPLATE/comment_form.tpl

    rename the file to comment_form01.tpl

    create new files and rename to comment_form.tpl and paste this code into the file

    HTML Code:
    <div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/YOUR_SHORT_NAME/embed.js"></script><noscript><a href="http://YOUR_SHORT_NAME.disqus.com/?url=ref">View the discussion thread.</a></noscript>
    remember to change YOUR_SHORT_NAME into your own discuss short name, you'll get one when register into disqus.com

    btw, its not complete... your comment status (1 comment, 2 comments) will not change.. i think its not hard to hack this..but i've no time to look on that..

    live : arkib.com.my

  2. #2
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    Hi lochoe I am glad you brought this up. I've been looking into disqus lately. I like the idea behind it and have been toying with their API.

    For those that don't know about disqus, They were one of the y-combinator groups. At one time Yankidank and I thought of applying "Pligg" in that.

  3. #3
    New Pligger lochoe's Avatar
    Joined
    Aug 2008
    Posts
    24
    Quote Originally Posted by chuckroast View Post
    Hi lochoe I am glad you brought this up. I've been looking into disqus lately. I like the idea behind it and have been toying with their API.

    For those that don't know about disqus, They were one of the y-combinator groups. At one time Yankidank and I thought of applying "Pligg" in that.
    I'm glad you already play with diqus.. this is superb tools to generate active visitor to pligg site..i believe it will become great module to pligg owner..

    plus its already apply into other opensource like joomla, drupal, wp.. i think pligg also must have one.. :-)

  4. #4
    New Pligger kiwiscanfly's Avatar
    Joined
    Jun 2008
    Posts
    1

    Thanks

    Thanks that's awesome!

  5. #5
    New Pligger jasxon's Avatar
    Joined
    Jan 2008
    Posts
    22
    Just a quick note. I would love to see a Disqus pligg module. I played with it today in 9.9.5 and it is easy enough to add in - though all I did was enable the comments I did not fully integrate into sidebar, profile, existing comments, or stats.

    I didn't go live with it only because I am already asking people to sign in to submit posts and asking them to have a second sign in for comments may be a downer. If I can get it linked into profiles and sidebars I may pull the trigger on it though. I use disqus on my personal tumblr etc and love it.

  6. #6
    New Pligger megaplatinum's Avatar
    Joined
    Apr 2009
    Posts
    10
    This works great. No need for an official plugin - it does what it's supposed to do. One more mod to add the one listed above..

    If you want your users who are not logged in to still be able to leave disqus comments, add this code to story_center.tpl in your template file.. the last few lines of code including the addition are here. this works on 1.0 RC4. replace the code i provided with your own disqus code.

    {checkActionsTpl location="anonymous_comment_form"}
    <div align="center" style="clear:both;margin-left:auto;font-weight:bold;margin-right:auto;border:#ccc solid 2px;padding-top:8px; margin-bottom:20px;border-width:1px;width:600px;text-align:center; padding-bottom: 8px;">
    <a href="{$login_url}">{#PLIGG_Visual_Story_LoginToCo mment#}</a> {#PLIGG_Visual_Story_Register#} <a href="{$register_url}">{#PLIGG_Visual_Story_Regist erHere#}</a>.
    </div><br />
    <div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/yoururl/embed.js"></script><noscript><a href="http://yoururl.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
    <br />
    {/if}

  7. #7
    Pligg Donor keg01's Avatar
    Joined
    Oct 2007
    Posts
    74
    I am a bit confused by the potential use of disqus. I love the possibility of offering threaded discussions on my pligg site but I don't understand the implications. For example, does this mean I would no longer be able to use the default "recent comments" side box??? I am assuming that to support a "recent comments" side box I would have to customize it to call the disqus api ??? What happens if I use disqus for a while and then wish to revert back to some pligg offered comment solution/system? Do I loose the comment history in these types of cases?

  8. #8
    New Pligger peosteve's Avatar
    Joined
    Nov 2007
    Posts
    25
    Quote Originally Posted by megaplatinum View Post
    This works great. No need for an official plugin - it does what it's supposed to do. One more mod to add the one listed above..

    If you want your users who are not logged in to still be able to leave disqus comments, add this code to story_center.tpl in your template file.. the last few lines of code including the addition are here. this works on 1.0 RC4. replace the code i provided with your own disqus code.

    {checkActionsTpl location="anonymous_comment_form"}
    <div align="center" style="clear:both;margin-left:auto;font-weight:bold;margin-right:auto;border:#ccc solid 2px;padding-top:8px; margin-bottom:20px;border-width:1px;width:600px;text-align:center; padding-bottom: 8px;">
    <a href="{$login_url}">{#PLIGG_Visual_Story_LoginToCo mment#}</a> {#PLIGG_Visual_Story_Register#} <a href="{$register_url}">{#PLIGG_Visual_Story_Regist erHere#}</a>.
    </div><br />
    <div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/yoururl/embed.js"></script><noscript><a href="http://yoururl.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
    <br />
    {/if}
    Thanks megaplatinum - just a warning to others trying this - for some reason when I copied the above, some of the template constants had spaces in them, so if something's not working, check to see that stuff like #PLIGG_Visual_Story_LoginToComment# and #PLIGG_Visual_Story_RegisterHere# don't have any spaces like mine had. After that, it worked very well. I might even consider disabling the regular comments.

  9. #9
    New Pligger newbieone's Avatar
    Joined
    Jun 2009
    Posts
    25
    Quote Originally Posted by peosteve View Post
    Thanks megaplatinum - just a warning to others trying this - for some reason when I copied the above, some of the template constants had spaces in them, so if something's not working, check to see that stuff like #PLIGG_Visual_Story_LoginToComment# and #PLIGG_Visual_Story_RegisterHere# don't have any spaces like mine had. After that, it worked very well. I might even consider disabling the regular comments.
    Works great not using the normal comment system using disqus instead!!!

  10. #10
    New Pligger djevrek's Avatar
    Joined
    Aug 2009
    Posts
    1
    How can i get number of comments on disqus ? What is the code ?

Page 1 of 3 123 LastLast

Similar Threads

  1. The data.type "problem", "new" and "published" not shown
    By Valver in forum Questions & Comments
    Replies: 2
    Last Post: 09-29-2011, 04:36 AM
  2. Changing Font Color for "Submit A Comment"
    By offrav12 in forum Questions & Comments
    Replies: 2
    Last Post: 03-17-2009, 08:48 AM
  3. Displaying "Last Comment" date/by for stories?
    By jkjunkfilter in forum Questions & Comments
    Replies: 3
    Last Post: 08-20-2008, 08:22 PM
  4. Replies: 1
    Last Post: 07-02-2008, 10:53 AM
  5. Comment rating "Upcoming News"
    By tbones in forum Questions & Comments
    Replies: 6
    Last Post: 04-29-2007, 08:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting