Closed (won't fix)
Project:
Subscriptions
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 May 2008 at 00:59 UTC
Updated:
24 Jun 2008 at 22:46 UTC
I see a field for the comment author if one is being notified of a new comment, but I'm looking for a way to name the author or the updater of the content itself. I don't see fields for this - is there an obvious way to do it that i'm missing, or is this actually a feature request?
Thanks!
Comments
Comment #1
salviscatya: here's my reply to you on IRC (you're not on-line anymore):
As for your initial question on IRC, which led to an hour-long thread (including mis-information from various people):
This is clearly not true. No Subscriptions 2.0 beta version ever had such a thing. That "other" mail template must have come from a previous Subscriptions 1.x-dev installation. If you install -dev versions rather than waiting for a release version, then you're clearly taking higher risks and assuming additional responsibilities.
The #drupal IRC channel is not a support channel, not for core and even less for contributed modules. If you need support for a contributed module, you should create a support request in its issues queue.
Posting stuff like
as if Subscriptions needed "poking around" to make it work is unacceptable.
I believe I'm doing a pretty good job here, pouring hundreds of hours of my spare time into Subscriptions, and I intend to support even border-line situations like upgrading from 1.x-dev (see #261002: Upgrade from 1.x-dev: the 2.0 mail templates aren't used), but if you go around and spread false information and bad feelings instead of bringing the real issues to the attention of those who can address them, then you're really not helping.
Comment #2
catya commentedYikes, I'm sorry to have offended! I think it's a great module and certainly didn't mean to cause any trouble with it, or to take my questions to the wrong place, or to demean your work. It's not entirely clear where to go to ask questions in complicated situations, or at least not entirely clear to me, and i (apparently mistakenly) had been told that asking questions on #drupal was ok.
My "poking around" comment was simple in response to the suggestion that I go look at something in the module code - i was poking around the code looking for it, acknowledging that i was doing as suggested.
I did try !sender_name before i went looking for help, since it seemed like a good guess and i do in fact read plain english, but it did not appear to work - I just double checked it by adding:
sender name: !sender_name
recipient name: !recipient_name
to the bottom of the subscriptions-node-type-page template.
I got in the email:
sender name: !sender_name
recipient name: catya
Additional apologies for my misunderstanding about 2.0beta - the install i had, which said it was 2.0 beta, did have this field - perhaps it was a holdover in the 2.0beta install from an earlier version? Certainly I wasn't intending to spread any misinformation about it, i should have been more clear that i was talking about my install specifically.
Again, my apologies for offending, and appreciation for your work on this.
Comment #3
salvisThank you for your reply and for putting things in perspective.
The #drupal channel's announcement lists
Type 'support?' for help, and usually people with support questions at the user/administrator level (vs. the developer level) get this typed for them, and Druplicon replies:On second look I'm surprised to see that it doesn't even mention the issues queues. Maybe that's on purpose, to keep the module maintainers from getting swamped with random support requests, but if you have a module-specific question/issue/request, then the Support links on that module's page are your best choices, because they go directly to those people who are best qualified to handle your request. Of course, if you don't get a reply within a reasonable time, you have to look elsewhere.
Ok, I'm sorry about my nastiness. You didn't give any indication that you had tried that, and I can't remember anyone reporting that !sender_name didn't work. We need to find out why it doesn't work for you.
Actually, I'm puzzled as to why you have to "add" this to the template, because it's part of the default template. It should be there from the start — every installation gets it and everyone has it filled in for them. After you removed the old templates from the {variable} database table, the 2.x templates are being used now, right?
I was just going to suggest that you uninstall (not just disable) and reinstall 2.1 to get the default 2.x templates back, but I'm just now realizing, that even though the uninstall function now removes the old template variables, it still doesn't remove all of the 2.0 templates (some are stored in the {mail_edit} table), so I still don't have a way to guarantee a clean install without any holdovers. I'll be back with an update, hopefully later today...
Can it be that you have (or had) the files of the old Subscriptions 5.x-1.x-dev still somewhere in/below your modules or sites/.../modules directories? Drupal finds .module files no matter how deep down you try to hide them.
I'm looking at BETA7 right now, and it has 'subscriptions_email_body' in only one place inside the subscriptions_mail_cron() function, which runs from the cron job to periodically send out the queued notifications. There is no way that the old template can appear in the user interface, unless your installation is seriously broken. Starting from BETA1, Subscriptions 2.0 has used the Mail Editor module to edit its templates and has stored them in the {mail_edit} and {subscriptions_mail_edit} tables. It tried to use those old variables if it found them, but it has never provided an interface to edit them.
As explained above, you either upgraded from 1.x-dev or you had at some time installed 1.x-dev, and you customized its mail template at some point. That's the only way to get those templates into the {variable} database table. This can be a long time ago — there's no reliable way for 2.x to tell whether 1.x has been in active use until 2.x's installation time or not.
We'll get this sorted out eventually...
Comment #4
catya commentedThanks for the note.
Someone else I was working with did the original subscriptions install, and it seems entirely possible that it was a 1.x version that he then upgraded to the 2.0 beta. I think that part is taken care of at this point, unless you think it could be effecting the sender_name?
Here's what I have for template for subscriptions-node-type-page:
That should all be default except for the two fields at the bottom.
for a page edit (done under a different login), I get in email:
-------------------
Further edit:
I did just get another subscription mail using the forums template rather than the page template - it DID fill in !sender_name, but it filled it in with the original author of the post, not the person who did the update.
[What I'm trying to do here is be able to tell from the subscription mail who did it, so i know whether to go look at it and make sure it's ok or not - bunch of new content contributors coming online in a few weeks that i need to keep an eye on.]
Comment #5
salvisAh, I see, apparently the content type that you tried before has the author name suppressed on the website, right? In that case, !sender_name is not set — this is by design.
If you have a post by A, and B updates it but keeps A's name, then !sender_name is still A. You'd like to see B in that case?
P.S. Just be sure that whoever worked on the site didn't move the old 1.x-dev files to some other directory where Drupal can still find them. I've done this myself once, and it can cause weird problems.
Comment #6
catya commentedAh, fascinating. And yeah, I'm looking for B - am i out of luck? :)
I'll take a pass through for those files.
Comment #7
salvisYes, I'm afraid B is not available.
Maybe it could be retrieved, if revisions are active, but it would require an additional query per node during the cron job, so this would have to be optional. I don't know if it's possible at all with comments. This is a bit much for a feature that's pretty far away from the mainstream.
Subscriptions is aimed at normal users and not really intended as a supervisor tool.
P.S. I found a way to add a remark to the description of !sender_name, that it's only available if the sender name is visible.
Comment #8
catya commentedOK - thanks for your help!!
Comment #9
salvisSo, "won't fix" in the end — sorry...