Ok, I know this was a popular feature and lots of people asked for it but ... I prefer to have comments only on individual items. How can I get this behavior? I've been searching the forums and dinking with the code but can't quite figure it out. Thanks.
Posts: 3236
G2 issues go to the G2 forums
Posts: 8601
modify modules/comment/module.inc so it doesn't return the "add comment" item link for album items..
Posts: 6
Sorry FryFrog - I didn't notice that.
Thank you mindless. And for whoever else would like to know here's some more specifics:
At around line 131 until about line 150 you should see a block that looks like this:
change that block to this:
You're basically adding this if block around the item links:
And commenting will only be available on individual items again.
I would love to see this as an option for the comment module.
Posts: 6
Can someone help me with an updated version of this hack for comment module 1.1.2?
Posts: 8601
the code in module.inc still looks vaguely like that.. put the "if (GalleryUtilities::isA....." line just above:
put the closing } after the next }
you might also want
instead of the check for GalleryPhotoItem.. this will omit the link for albums only. the previous code would omit the link for movies, etc and show it only for photos.
Posts: 6
Excellent! Thanks.