Originally from DrakeRemory, here is the module. Needs testing and review.

This is from #391742: Comments for Activity 2.x

Comments

DrakeRemory’s picture

StatusFileSize
new2.93 KB

I just added a second event, that is invoked for all users that already replied to the activity. This way you can send an email to all of them just like Facebook does.

BenK’s picture

Subscribing...

Scott Reynolds’s picture

@#2 did you test it? Its not even a patch so the barrier to entry is so minimal.

bflora’s picture

I've installed this with Activity 6.x-2.x-dev and while the basic functionality appears to work, several of the tokens do not.

In particular the PHP evaluations do not appear properly in the e-mail alerts I'm trying to send.

Also, the [activity:comment-link] token and a few others do not actually translate into links but just display in the e-mail as is.

So it works more or less, but the e-mails I'm sending out this way aren't very good. I can't link to the activity item itself and I can't display the content of the activity comment posted in the e-mail alert.

Perhaps these are straightforward fixes?

bflora’s picture

I'm able to offer a $50 bounty to get the issues above fixed.

Scott Reynolds’s picture

Status: Needs review » Needs work

Appears doesn't work right with php evaluation.

in regards to the formatting, you need to check the formatting settings on your email setup.

pribeh’s picture

Subscribing.

pribeh’s picture

This seems to work well for me except none of the tokens seem to work.

pribeh’s picture

I'll match bflora's bounty to fix said issues.

Seighaus’s picture

I thought about using this feature but I realised that since the activity comments and the blog comments don't get synchronized, it might happen that two different discussions on the same node take place at two different places. I. e. in the activity stream and on the node itself.

So there is a risk that important comments might get lost.

But I installed the module and I realised that the "comment" tokens in the configuration of the action don't show up. All the others do (of the authors and the links). So I didn't know which token to use for the body of the comment. I didn't test any further though.

Scott Reynolds’s picture

but I realised that since the activity comments and the blog comments

This is because activity comments can be placed on something other than nodes. If that is what you want, I do not believe this will help either.

You are going to have to come up with a custom solution that puts the blog comment form in the activity view.

Seighaus’s picture

"...that puts the blog comment form in the activity view." that would be sweet, thanks for the hint! I will try that, except I don't know where to start...but I'm sure some time searching on drupal.org will help!

madhusudan’s picture

is this custom module working..?

I tried the module, but no luck :-| . also tried with "Send a mail to an arbitrary mail address" action by giving custom email address.

can anybody confirm please..

_shy’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

D6 reached its EOL back in February 2016, and there is no active release for D6 for this module anymore.
Development or support is not planned for D6. All D6-related issues are marked as outdated in a bunch.

If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.