Drupal 7.x sandbox project: http://drupal.org/sandbox/baisong/1968806
Comment sources makes it possible to manage multiple sources (i.e. 3rd party services) of comments on nodes and node types. No other existing module addresses this task.
Comment Sources module integrates node comment settings with 2 3rd party comment projects:
Once Comment sources is enabled, users can select a different comment source (Facebook, Disqus, or Drupal) for every node type. Currently adding the ability to override on a per-node basis as well.
The module provides a number of namespaced hooks to allow more comment sources to be easily provided in other modules. It is already in active use in the OpenScholar project. Please see GitHub for commit & issue history:
| Comment | File | Size | Author |
|---|---|---|---|
| Example 3rd party comment integration w/ Facebook social module | 41.9 KB | baisong |
Comments
Comment #1
jamesoakleyI really like the sound of this module - it would be very useful to be able to integrate multiple comment sources, rather than having to choose which one to use.
Automated check:
See http://ventral.org/pareview/httpgitdrupalorgsandboxbaisong1968806git
There are quite a few things here that are simply code styling, but tidying them up is necessary and also makes a manual code review much easier.
Manual review:
The git source has two branches at the moment: named master, and 7.x-1.0-beta.
The master branch should be removed (to do this, "Edit" the project, and change the default branch to be the 7.x 1; you can then use branch -d to delete the branch, followed by push origin :master). The 7.x branch should be named 7.x-1.x; the 7.x-1.0 comes in when you name it that for a full release, or 7.x-1.0-beta1 if you want it to be a beta release. Branches are not named in this way, but are simply named after the Drupal version they work with (7.x-) and the major version number this is (-1.x).
I notice that the function comment_sources_should_display_comments contains quite a bit of code that is a previous implementation, now commented out.
The readme file should be named README.txt not README.md, and should be more of a free-text explanation of the module.
That should give you a few things to work on for now. I'll end by reiterating what I said at the start, however: It'll be good to see this module when it's ready for the contrib repository.
Comment #2
baisongJamesOakley thanks for all the help!
Done:
I just set the status of this issue to "Needs review".
Comment #3
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
erez111 commented1. comments_sources.js:
Put code as following:
(function ($) {
// All your code here with $ instead of jQuery
})(jQuery);
http://drupal.org/node/756722
2. comments_sources.info
Consider to load file only when necessary.
Generally, nice coding.
Comment #5
baisongerez111, thanks!
Done:
Please see the 7.x-2.x branch on github or drupalcode.org and let me know what else I can do to get this sandbox project approved.
Thanks again!
Oren
Comment #6
kscheirerWe already have some modules for Disqus and Facebook Comments Social Plugin. Is there a way you could work with these modules instead of duplicating a lot of similar code?
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #7
ferdi commented@kscheirer, this modules *integrates* with Disqus and FB social plugins. There is no code duplication.
Comment #8
rbrandon commentedConcur with @ferdi should be reviewed & tested. Module allows choice between multiple comment "modules" within the same Drupal install.
Comment #9
kscheirerSorry! Somehow I missed that. RTBC from me then as well.
Comment #10
kscheirerThere are still a fair amount of style errors reported here: http://ventral.org/pareview/httpgitdrupalorgsandboxbaisong1968806git. You should also add an INSTALL.txt file that explains how to make use of the patches provided and why they are necessary. Looks like a nice module though!
Thanks for your contribution, baisong!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #11.0
(not verified) commentedFormat links in unordered lists