The title says all :)
Seriously, is my setup:
I have set up subscription forms to display on separate pages. I want users to subscribe to 'Forum', but not to 'Blog'.
When an authenticated user visits a Forum node, he sees the 'Subscribe' link under the node, and under each single comment. That is redundant, but is ok.
But when a user visits a Blog node, he does NOT see the link under the node, which is ok, but he sees it under each comment, which is NOT ok, since the link brings to a page where the user can do nothing.
I fixed this changing line 67 in subscriptions_ui.module form this:
if (subscriptions_ui_can_subscribe() && empty($teaser)) {
to this:
if ($type != 'comment' && subscriptions_ui_can_subscribe() && empty($teaser)) {
This solution is ok for me because I don't want the subscribe link to be repeated under each comment, but this could be made optional.
Comments
Comment #1
salvisI don't really want to have the links on the comments, but I kept forgetting to remove them. In fact I removed them yesterday with code very similar to yours, but I hadn't realized yet that there also was a bug involved. Thanks!
Comment #2
salvisComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.