Extension talk:Comments

Cannot add comments
Hi, I just installed the extension but I cannot add the comments. I am using the version 1.8 If I click on add the comment nothing happens. I have the tables and everything looks good on the installation.

Any help will be greatful —The preceding unsigned comment was added by 189.203.24.27 (talk • contribs)

Not Working.
I've just installed this in my PC at the localhost, e looks like that it works, but I can't send any comments.

Any ideas? —The preceding unsigned comment was added by 189.38.206.71 (talk • contribs) 03:42, 31 October 2011 (UTC)
 * This might sound ridiculous, but it vaguely sounds like the same silly problem I just had. I'm assuming you mean the button and forms are there but won't do anything. If you happened to have manually downloaded each file, make sure that Comment.js wasn't saved as Comment.js.txt!! -81.147.29.227 02:09, 5 March 2012 (UTC)

not working in 1.170
not working in 1.170


 * I found a fix for it in 1.17 by changing a line in the extension's Comment.js:

to You might want to push that into the public release. ~Fern --67.121.127.113 17:25, 6 November 2011 (UTC)


 * The reason why it probably didn't work was because ResourceLoader messed things up. I've updated the code and now it should be RL-compatible (and it requires MediaWiki 1.18). --Jack Phoenix (Contact) 16:40, 7 January 2012 (UTC)

Spam Prevention
Hello before I attempt to install this extension I would like to know if there's any protection against spammers besides administrators going through and deleting each comment. As an example like akismet on wordpress? —The preceding unsigned comment was added by 175.239.223.175 (talk • contribs) 21:48, 22 November 2011‎ (UTC)


 * While there are various anti-spam extensions out there, some of which (like ConfirmEdit and SimpleAntiSpam, for example) are used on Wikimedia wikis, Comments currently doesn't support these. However, seeing that ContactPage extension supports ConfirmEdit CAPTCHAs, I believe that it might be relatively easy to add ConfirmEdit support to Comments. --Jack Phoenix (Contact) 16:40, 7 January 2012 (UTC)


 * thanks for the reply. Thing about captha is that its not very effective these days. I know this a long shot but possible to implement akismet - http://akismet.com/development/  ? Thing works beautifully at least on wordpress! --175.239.243.165 21:12, 7 January 2012 (UTC)


 * I've just tried out QuestyCaptcha and really impressed with it. That works well. Can that possibly implemented for spam prevention? If so definitely will install the extension. --175.239.131.38 23:46, 27 April 2012 (UTC)

MediaWiki Version 1.18.1 - Delete Comment did not work / Comments of the day
I just test "Comments" - was easy to install but i found 2 "bugs" in my enviroment:

1. The "Delete Comment" Link did not work. i set the rights in LocalSettings.php and have the link at the comments (if i logged in) - but the link ist "red". If i click the link, the page is reloading - but the comment isn't delete. I take a look in the scripts - but i did not find why. I try 3 different Webbrowser (IE / Firefox / Chrome) but is all the same

2. The "Comments of the day" did not work - i think the reason is that i have so social network plugin. i removed the line 94 and 95 and it will work (at this line the script ry to get the avatar and the image of the avatar
 * i have same problem too. i delete this from my database--Hamed.n (talk) 10:01, 21 February 2012 (UTC)

JJ-4APR2012: Same issue here... —The preceding unsigned comment was added by 68.14.221.168 (talk • contribs) 20:30, 4 April 2012

MediaWiki 1.18.1
I can not delete the comments once inserted. All other functionality seems to be working just fine.

No Delete
Comments will not delete —The preceding unsigned comment was added by 68.14.221.168 (talk • contribs) 20:31, 4 April 2012

Trouble with Comments on 1.18
I ran into a problem first where Comment.js was saved as Comment.js.txt, but I fixed it. I can not get this to work on MediaWiki 1.18 using WampServer. I tried removing sajax_do_call because I saw it was deprecated and updating the code to use $.get, but I really don't know what I'm doing.

But basically, I got the latest manually, and it isn't working for me on 1.18. If I figure out what's wrong I'll update this topic.

So now I found a problem that I'm still getting a file not found error from ResourceLoaderFileModule: script file not found: "C:\wamp\www\wiki\extensions\Comments/Comment.js"'

Note the non-WINDOWS separator in front of Comment.js

I'll see if hard coding the lines in ResourceLoaderFileModule make a difference.

I fixed it by hard-coding the lines in ResourceLoaderFileModule to use "\\" instead of "/".

COMMENT DELETED
COMMENT DELETED TO PREVENT CONFUSION Khpark87 (talk) 12:48, 6 May 2012 (UTC)


 * Hi Khpark87, I'm glad to see that you're interested in the Comments extension and improving its codebase. What I found strange, however, is that instead of contacting me or anyone else with commit access to svn.wikimedia.org, you decided to fork the code, pack it up as a .rar file and encourage people on this talk page to download your fork instead of the "official" version, so to say.


 * I don't believe in forks most of the time. Sure, sometimes they're necessary, if a project is no longer being maintained, for example. This is not the case with the Comments extension and svn.wikimedia.org in general (although, yes, svn.wikimedia.org will made completely read-only in 2013, by which I need to find a new place for hosting all the social tools and other extensions I've written).


 * It would've been more than preferrable had you tried to contact a developer in the first place to get your changes approved. I, for one, despite by busy schedule, am always interested in patches and making the extension's codebase better.


 * For what it's worth, I've fixed the issue with comment deletion in r115137 &mdash; by using a patch submitted by a user of this extension.


 * I sincerely wish that we can collaborate on this extension in the future instead of causing unnecessary confusion and code duplication. --Jack Phoenix (Contact) 15:10, 10 May 2012 (UTC)


 * Thank you for reply. To tell the truth, I was not familiar with Wiki and open source revision system such as SVN, GIT(now I am wating for approving SVN account). After read your comment, I realize that 'fork' is inefficient and Social Profile is maintained by same person, you. Sorry to make it complicated and if you allow, I want to collaborate improving Comments and Social Profile. Khpark87 (talk) 19:12, 10 May 2012 (UTC)

Chinese translation for this extension
/* Chinese translate by zoglun@gmail.com */ $messages['zh'] = array(	'comment-comment' => '评论',	'comments-db-locked' => ' 添加评论 数据库被锁死，正在进行维护，请过一段时间后再来~！',	'comment-voted-label' => '投票',	'comment-loading' => '读取中...',	'comment-auto-refresher-enable' => '开启评论自动刷新',	'comment-auto-refresher-pause' => '关闭评论自动刷新',	'comment-reply-to' => '回复给',	'comment-cancel-reply' => '取消',	'comment-block-warning' => '你确信你要永久的忽视全部来自这里的评论吗？',	'comment-delete-warning' => '你确信你想删除这段评论？',	'comment-block-anon' => '匿名用户（显示IP地址）',	'comment-block-user' => '用户',	'comment-sort-by-date' => '按时间顺序排列',	'comment-sort-by-score' => '按分数高低排列',	'comment-show-comment-link' => '显示评论',	'comment-manage-blocklist-link' => '管理忽略评论列表',	'comment-ignore-message' => '你忽略了来自这个人的评论',	'comment-you' => ' 你',	'comment-reply' => '回复',	'comment-login-required' => '登陆后才能留言',	'comment-not-allowed' => '你没有足够的权限来留言',	'comment-post' => '发表评论',	'comment-submit' => '添加你的评论',	'comment-score-text' => '分数', 'comment-permalink' => '永久链接', 'comment-delete-link' => '删除评论', 'comment-anon-name' => '匿名用户', 'comment-anon-message' => ' 欢迎 评论~！ 如果你不想匿名, 免费注册 或者 登陆. ',	'comment-ignore-item' => '$2 在 $3 (解除黑名单)', 'comment-ignore-no-users' => '目前没有用户被加入黑名单. ',	'comment-ignore-remove-message' => '你确信你要把$1的评论移出黑名单？', 'comment-ignore-unblock' => '解除封锁', 'comment-ignore-cancel' => '取消', 'comment-ignore-title' => '忽略的评论列表', 'commentignorelist' => '忽略的评论列表', 'comments-no-comments-of-day' => '目前没有今日评论', // for the parser hook 'commentslogpage' => '评论日志', 'commentslogpagetext' => '这是评论的日志', 'commentslogentry' => '', # For compatibility, don't translate this 'commentslog-create-entry' => '新评论', 'comments-create-text' => '$1 - $2', # Don't translate this 'comments-time-ago' => '$1 之前', 'comments-time-days' => 'NaN $1 天s', 'comments-time-hours' => 'NaN $1 小时s', 'comments-time-minutes' => 'NaN $1 分钟s', 'comments-time-seconds' => 'NaN $1 秒s', 'log-show-hide-comments' => '$1 评论日志', // For Special:Log // For Special:ListUsers - new commentadmin group 'group-commentadmin' => '评论管理', 'group-commentadmin-member' => '评论管理员', // For Special:ListGroupRights 'right-comment' => '提交评论', 'right-commentadmin' => '管理用户提交的评论',

--Zoglun (talk) 05:15, 13 June 2012 (UTC)


 * Thank you for your contribution, Zoglun! I've committed your Chinese translation to SVN in r115505. --Jack Phoenix (Contact) 11:46, 13 June 2012 (UTC)

Automatically add to pages
Is there a way to add the comments to every page in the main namespace automatically instead of manually inserting the tag at the end of the article? I'm very new to the backend of MediaWiki, so perhaps there's something I'm missing. &mdash;Topher208 (talk) 21:05, 3 July 2012 (UTC)


 * If you have a basic knowledge about coding, you can use ArticleViewHeader hook. Worked for me in HelpCommons extension. Cheers, Tim (SVG)  22:11, 3 July 2012 (UTC)

Download not available
I tried to download this extension using http://www.mediawiki.org/wiki/Special:ExtensionDistributor/Comments. Got 404 error. How can I download it? —The preceding unsigned comment was added by 1.23.201.162 (talk • contribs)


 * Ext dist is broken for non git extensions at the moment. You can download directly from http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Comments/ Bawolff (talk) 12:38, 16 July 2012 (UTC)

Comment moderation
Will there be a possibility of some kind of moderation in later releases? So anonymous users can post comments without having an account but giving the admin the possibility to accept or refuse comments before publishing them?

87.139.121.244 06:24, 25 July 2012 (UTC)


 * Maybe in future releases, yes. It sounds like a feature that would be nice to have (but I'm not actively working on building such a thing at the moment). --Jack Phoenix (Contact) 19:04, 7 September 2012 (UTC)

Only works once.
Hi, I installed this extension on the 1.19 version of Mediawiki. At first, everything works just fine. But when I post a comment, everything stops working entirely -- and by everything, I'm assuming it's just the Javascript. Basically, once a comment is posted and until I manually refresh the page, neither the delete nor reply functions work. When I hit delete, nothing happens at all. When I hit reply, it simply takes me to the bottom of the page and doesn't activate the reply script. Now, I'm good with PHP, but Js is an absolute foreign land for me, so any help is appreciated.

EDIT: OK, I applied a quick and dirty fix by having the thing reload the page whenever a comment is posted. Now, everything works fine, since the delete and reply functions don't break the script.

EDIT: So, since the refresh thing works, I've tracked everything down to that "ugly" viewComments function. Something it does seems to break everything. —The preceding unsigned comment was added by 75.58.116.24 (talk • contribs)

Do comments cause a watchlist notification?
When someone adds a comment to an article, and users are watching the article, does the added comment produce a watchlist notification? Thanks. Maiden taiwan (talk) 15:00, 7 September 2012 (UTC)


 * I believe it doesn't cause a watchlist notification, but do tell me if I'm mistaken (I haven't ever tested that out to be honest). --Jack Phoenix (Contact) 19:04, 7 September 2012 (UTC)

Our version
With email notification, recaptcha, threaded comments, preview and blah blah blah.