I was starting to install nodecomment, but when I prepared to deselect the comment module, I discovered that it is reaquired by tracker.
I like tracker. Is there any way to still use it with nodecomment?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | nodecomment_fix_tracker.module.patch | 694 bytes | greg.harvey |
| #5 | no_dependencies_tracker.info.patch | 577 bytes | greg.harvey |
Comments
Comment #1
OwnSourcing commentedtake a look at this node for your answer: http://drupal.org/node/157433#comment-249445
specifically point #3
Comment #2
greg.harveyUnfortunately, Robert is wrong in that thread. =(
See http://drupal.org/node/157433#comment-784788
Comment #3
summit commentedHi, to use nodecomment with tracker I just changed the following code in tracker.module
to
Tracker now works again!
greetings, Martijn
www.trekking-world.com (if you like this info, please make a link to this e-aid website focussed on Nepal).
Comment #4
greg.harveyThat's brilliant! I'll try it later! =)
Thanks for posting.
Comment #5
greg.harveyYup! Works!
I attach a couple of patches. Should probably be combined, but I made them at separate times and I'm not sure how to safely make them one patch file. The no_dependencies patch updates the tracker.info file to remove the dependency on Comment. The nodecomment_fix patch makes Martijn's change, which works a treat, and should be applied to tracker.module. =)
Comment #6
summit commentedHi,
I do not think tracker will commit these patches, while there are people who use nodecomment, but also people who use comment. So I think the complete patch should be having an if statement in tracker.
If module exists nodecomment {the patch http://drupal.org/files/issues/nodecomment_fix_tracker.module.patch} else the normal tracker rule.
Will you build the patch please?
greetings,
Martijn
Comment #7
greg.harveyI suspect the patches will never be committed, PERIOD, since the maintainer obviously only intends for Tracker to work with Comment and has no intention of supporting Node Comment (half supporting it would be silly and cause confusion, so I'd actually support not committing these patches, even though I prefer Node Comment).
But that's ok. The code is here for the people who DO use nodecomment to apply. If you really feel strongly and you want to alter the patch, feel free, but I don't think it's necessary. It's an extra (albeit tiny) piece of logic to process which will never actually be required, IMHO. =)
(It's very tempting to write code for situations that will never occur. I always try and avoid this by looking at everything objectively. In this instance, patches will never be committed to HEAD regardless, so will only ever be applied by people already using Node Comment, therefore extra logic to handle the situation where someone using Comment applies this patch is superfluous.)
Comment #8
sirkitree commentedguys, it'd be much easier if you just patch nodecomment.module with the following:
Comment #9
summit commentedYes please, much better, no depenencies! please commit. Greetings, Martijn
Comment #10
sirkitree commentednodecomment does this a few places already so i don't see why not. Committed to dev.
Comment #11
greg.harveyNice! Much better! Thanks! =)
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #13
yngens commentedi've taken dependency out and activated tracker module. not sure if #8 was commited or not, but it gives:
Fatal error: Call to undefined function comment_num_new() in /home/mysite/public_html/modules/tracker/tracker.module on line 102
Comment #14
greg.harveyYou're right. If it was committed to dev, which I guess it was at some point, it's been accidentally uncommitted again. I just reviewed the latest 5.x-1.x-dev code in CVS and it's not there.
Comment #15
sirkitree commentedSorry about that guys.
I had accidentally committed D6 stuff to the D5 branch and when I reverted I lost this change.
Comment #16
greg.harveyThanks sirkitree! =)
Comment #17
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.