Add nid and cid replacements to allow things like a reply link

heyrocker - September 29, 2008 - 00:09
Project:Comment Notify
Version:5.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (to be ported)
Description

I wanted to be able to add a link to the outgoing email allowing people to reply to a comment with a single click, so i added a variable !comment_reply_url to the array of available variables. Pretty simple patch and thought you might find it useful

AttachmentSize
reply_link.patch433 bytes

#1

greggles - September 29, 2008 - 19:44

Thanks for the patch. I think this would be better implemented by supporting the token module #273112: Use token module for the email body and subject

Then people could just use something like:

[site-url]/comment/reply/[nid]/[cid]

To get the same thing. Right?

#2

heyrocker - September 29, 2008 - 20:12

If token support was implemented, then yes that would absolutely be the way to go about it.

#3

zilla - October 30, 2008 - 16:46

very nice. is this part of the current dev?

#4

greggles - October 30, 2008 - 19:43

@zilla - when I commit things I update them to fixed. If it were part of dev you could see it in http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/comment_not...

So, no, it's not.

#5

zilla - October 30, 2008 - 22:33

thanks, gotta start tracking the dev in cvs because there are too many threads to follow and tracking the details on the project page makes no sense...

#6

aclight - January 11, 2009 - 22:30
Version:6.x-1.0» 7.x-1.x-dev

Patch in #0 applies successfully to 5.x-2.x-dev and 6.x-1.x dev. I think this is a good feature request. I guess it needs to be decided first whether or not comment_notify will require token module. I don't know what effect Dries's comment #273112-4: Use token module for the email body and subject has on this decision.

#7

greggles - January 11, 2009 - 22:42

He seems to be ok with token in general these days: http://drupal.org/node/113614#comment-1185431 (note also that paul.lovvik, works for acquia, is the main contributor to that thread these days).

#8

greggles - November 7, 2009 - 19:08
Title:Add 'reply' link as an option for email» Add nid and cid replacements to allow things like a reply link

How about this more flexible alternative that gets the same goal, but in a more flexible way?

AttachmentSize
314630_cid_nid_tokens.patch 3.48 KB

#9

greggles - November 17, 2009 - 15:20
Status:needs review» patch (to be ported)

Now committed - http://drupal.org/cvs?commit=290170

#10

greggles - November 17, 2009 - 15:22
Version:7.x-1.x-dev» 5.x-2.x-dev
 
 

Drupal is a registered trademark of Dries Buytaert.