开发者

Unobtrusive, self-hosted comments function to put onto existing web pages [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

开发者_如何学编程 Improve this question

I am building a new site which will consist of a mix of dynamic and static pages.

I would like to add commenting functionality to those pages with as little work as possible. I'm curious as to whether such a solution exists in PHP.

The ideal set of features would be:

  • Completely independent from the surrounding page / site: PHP code gets dropped into page, a page ID is added, done.
  • Simple "write a comment" form
  • Comments for each page are displayed using a PHP function
  • Nice, clean output of <ul><li>.... that can be styled by the surrounding site
  • Optional Captcha
  • Optional Gravatar sensitivity
  • Minimalistic administration area to moderate/delete comments, no ACL, can protect it using .htaccess

The ideal integreation would be like this:

<?php show_comments("my_page_name"); ?>

this would 1. display a form to add a new comment that gets automatically associtated with my_page_name; and 2. display all comments that were made through this form using this ID.

Does anybody know a solution like this?

Bounty

I am setting up a bounty because while there were some good suggestions, they all point to external services. I'm really curious to see whether there isn't anything self-hosted around. If this doesn't exist yet, it sure would be great to see as an Open Source project.


If you really want an easy to use solution, then just download the intensedebate or Disqus comment HTML and you can leave spam checking, OpenID support, Comment sharing, and every other cool feature to them. You get the comments with no work!

It's a win-win. Then later on you can use their API's to pull the comments and put them in your database if you want to switch to a home-made solution.

This also means that you can still get SEO from the comments because when you pull them from the API you can display them in an <noscript> tag or hidden div for the search engines.


This?:

http://www.gentlesource.com/comment-script/ - paid if used commercial, but...

http://cellbiol.com/scripts/free_php_guestbook/free_php_guestbook.html - flat-based, weird design of page (... :]), but has free and simple version

http://www.playaparaiso.org/talkback/doc/ - free, they "require" small donation if you want to remove their logo


HashOver is an up-and-coming free and open source (AGPL) PHP comment system that has both a simple JavaScript and PHP implementations. It is self-hosted with a flat file (XML) database.

Further reading: http://tildehash.com/?article=why-im-reinventing-disqus

Test it out: http://tildehash.com/comments.html (JavaScript, change '.html' to '.php' for PHP-mode)

It will be getting its official version 1.0 release this March (the 25th). With features like spam filtering, language localizations, comment sorting, IP address blocking, and better administration control.


IntenseDebate or Disqus are good enough, but they are not open-source and you are dependent. The open-source solution I suggest you to look at is these Projects:

  • Discourse(Ruby)
  • Isso(Python)
  • Schnack(JS)
  • Talkyard(Scala)
  • Juvia(Ruby: CURRENTLY UNMAINTAINED)


Comment systems can be very database heavy and bog things down. I would checkout:

http://intensedebate.com/

You could call it the Wufoo of comments (only better). I've not used it on my own site, but know some people who do and they love it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜