Ticket #579 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Special email alert for Rob Hopkins blog posts on TN.org

Reported by: ed Owned by: ed
Priority: major Milestone: Maintenance
Component: Unassigned Keywords:
Cc: Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 0.4

Description

  1. Can we create a specific email alert for new blog posts from Rob Hopkins' blog (/blogs/rob-hopkins)?
  2. Can Ed do this?
  3. See below:

Proposed new alert:
~

From: [Rob Hopkins at Transition Network <site@…>]
Subject: New blog post from Rob Hopkins' Transition Culture
To: [subscriber email]
Reply to: [<site@…>]

Hello. I've written a new blog Transition Culture blog post

You can read it and leave comments here:
[LINK]


[BLOG POST TITLE]
[LINE BREAK - FULL CLEAR LINE]
[BLOG POST TEASER]
[LINE BREAK - FULL CLEAR LINE]


Best regards,
Rob

--
[TN EMAIL SUBSCRIPTION AUTO-BLURB]
This is an automatic message from Transition Network
To manage your subscriptions, browse to http://www.transitionnetwork.org/user/285/notifications
You can unsubscribe at http://www.transitionnetwork.org/notifications/unsubscribe/subscription/...

Change History

comment:1 Changed 3 years ago by ed

mm? Jim? Or is this something to pass on to Ben?

comment:2 Changed 3 years ago by jim

  • Add Hours to Ticket changed from 0.0 to 0.35
  • Total Hours changed from 0.0 to 0.35

Short answer: yes

Long answer: yes but we'll need to either code something or change it for all blog notifications...

In https://www.transitionnetwork.org/admin/messaging/notifications/events (the list of events the Notifications module will send messages), there is no option to add new ones, and nothing like 'Blogs by Rob'. And in https://www.transitionnetwork.org/admin/messaging/template there's the message by event type, but there's no way to add a new one.

So we can either write some Notifications module code hooks to provide what we need, or simply change the template to handle all blogs/authors.

I think the latter is a better use of resources on D6. The proposed message (with changes in bold) is therefore:


New template:
From: [author-name]Rob Hopkins at Transition Network <site@…>
Subject: New blog post from [author-name]Transition Culture
To: [subscriber email]
Reply to: [< site@…>]

Message:
Hello, I've written a new blog Transition Culture post.

You can read it and leave comments here:
[LINK]

---

[BLOG POST TITLE]
[LINE BREAK - FULL CLEAR LINE]
[BLOG POST TEASER]
[LINE BREAK - FULL CLEAR LINE]

---
Best regards,
[author-name]Rob
--
[TN EMAIL SUBSCRIPTION AUTO-BLURB]


So the main issue with this is it no longer says 'Transition Culture' since that's not know by Drupal in relation to the user/blog post in the special case of Rob's blog.

However, the wider issue is resolved even if we lose the TC branding a little (which IMHO is fine for a simple notification and the user will see it all again as soon as they arrive at the site).

Hmmm??

Last edited 3 years ago by jim (previous) (diff)

comment:3 Changed 3 years ago by ed

  • Owner changed from jim to ed
  • Status changed from new to assigned

That's fine - I figured it likely - and as you say - best use of D6 - I'll tweak this this week - moving to Ed list

comment:4 Changed 3 years ago by ed

hmm. So to double check before I do it - please confirm - I'm going to edit this template:
https://www.transitionnetwork.org/admin/messaging/template/edit/notifications-content-blog-insert

  • This does not have options to tweak the 'from' field...

comment:5 Changed 3 years ago by jim

  • Add Hours to Ticket changed from 0.0 to 0.05
  • Total Hours changed from 0.35 to 0.4

Yep, that's the right one.

Given the lack of 'From' then you'll have to just make that clear in the subject line.

comment:6 Changed 3 years ago by ed

  • Status changed from assigned to closed
  • Resolution set to fixed

Done. Thanks. Closing.

Note: See TracTickets for help on using tickets.