Highlight user's comments in blogs, so that it would be easier to distinguish between comments. However, the comments on an article ( if at all it is enabled) should not be highlighted.
Description
Details
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Add highlighting for blog author comments | mediawiki/extensions/Comments | master | +198 -6 |
Event Timeline
This would be a good starting task for Pre-university students to start with. I'd love to mentor the students who wish to take this project up.
@MaroonPixel: Thanks! Please see https://www.mediawiki.org/wiki/Google_Code-in/Mentors for how to mentor and requirements.
Hi everyone I just set up the initial environment for MediaWiki and installed the Comments extension in C:/xampp/htdocs/mediawiki/extensions. I updated the LocalSettings.php file, but when I use the <comments/> tag, it only shows "Loading comments" with a stuck loading symbol. How can I troubleshoot this? I'd really like to work on this
Instead of Phabricator, which is the place for bug reports and feature requests, these kind of tech support/"how do I...?" questions are better asked on:
- the extension's talk page on MediaWiki.org (mw:Extension talk:Comments in this case)
- my user talk page on MediaWiki.org (for general questions about Social-Tools)
- support desk page on MediaWiki.org for other/general MediaWiki installation/usage related questions
But to answer your precise question: the behavior you're seeing is presumably happening due to the API call to the commentlist API module failing in the initialize method in /extensions/Comments/resources/js/Comment.js. The parser hook handler (which takes care of rending the <comments /> tag) in /extensions/Comments/includes/parser/DisplayComments.php adds a div which has both the class and id set to comments-body. The JS code looks for that ID, and if and when it finds it, it calls the initialize function, which fetches relevant data from the API (for which the PHP backend is in /extensions/Comments/includes/api/CommentListAPI.php).
You may wish to see what happens when you ping that API end point manually, e.g. from your browser's developer tools console (press F12 on Firefox to launch it; its "Network" view is pretty handy for viewing requests and seeing if some requests are failing and with what error code, etc.).
Change #1200406 had a related patch set uploaded (by AROHI_SINGH; author: AROHI_SINGH):
[mediawiki/extensions/Comments@master] Add highlighting for blog author comments