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:
if (isset($permissions['comment.add'])) {
$params['view'] = 'core:ItemAdmin';
$params['subView'] = 'comment:AddComment';
$params['itemId'] = $item->getId();
$params['return'] = 1;
$links[$item->getId()][] =
array('text' => $this->translate('add comment'),
'params' => $params);
}
if (isset($permissions['comment.view'])) {
$params['view'] = 'core:ItemAdmin';
$params['subView'] = 'comment:ShowComments';
$params['itemId'] = $item->getId();
$params['return'] = 1;
$links[$item->getId()][] =
array('text' => $this->translate('view comment'),
'params' => $params);
}
change that block to this:
if (GalleryUtilities::isA($item, 'GalleryPhotoItem')) {
if (isset($permissions['comment.add'])) {
$params['view'] = 'core:ItemAdmin';
$params['subView'] = 'comment:AddComment';
$params['itemId'] = $item->getId();
$params['return'] = 1;
$links[$item->getId()][] =
array('text' => $this->translate('add comment'),
'params' => $params);
}
if (isset($permissions['comment.view'])) {
$params['view'] = 'core:ItemAdmin';
$params['subView'] = 'comment:ShowComments';
$params['itemId'] = $item->getId();
$params['return'] = 1;
$links[$item->getId()][] =
array('text' => $this->translate('view comment'),
'params' => $params);
}
}
You're basically adding this if block around the item links:
if (GalleryUtilities::isA($item, 'GalleryPhotoItem')) {
}
And commenting will only be available on individual items again.
I would love to see this as an option for the comment module.