Add name of FAQ in email when comments made

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Add name of FAQ in email when comments made

Post by iconicperformances »

Each time a staff member adds a comment in a faq we receive an email. This is great.

The problem is that email does not actually tell us the name of the FAQ. It only provides a link.

Is there any way we can add a code to the program so that when it sends the email, it also writes the name of the FAQ the comment was made in in the email?

It would be great if you can to tell me where I can add this extra little code and also what the code would be.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten »

Hi,

yes, where do you want the name of the FAQ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: Add name of FAQ in email when comments made

Post by iconicperformances »

When a comment is made on an FAQ we receive an email that says person xxx has made a comment.

It is in that email that is automatically sent where I want the actual Name of of the FAQ
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten »

Hi,

yes, but where in the mail? Subject? Mail text?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: Add name of FAQ in email when comments made

Post by iconicperformances »

It would be ideal in the body of the email just before it writes the comment made
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten »

phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: Add name of FAQ in email when comments made

Post by iconicperformances »

As I am not coding clever, do I add all the stuff in Green
and do I delete all the stuff in red or just the ones in BOLD RED.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten »

Hi,

yes, you are right.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: Add name of FAQ in email when comments made

Post by iconicperformances »

I tried it as you showed and now there is "No Subject Header" and still the title of the FAQ does not show up in the body of the email.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten »

Hi,

hm, please try to use the complete file:

https://raw.githubusercontent.com/thors ... ervice.php

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: Add name of FAQ in email when comments made

Post by iconicperformances »

I copied the whole thing and I pasted it in the ajax service and again the same thing. All I receive now is the email, but there is no subject heading nor is there the title of the FAQ in the body.

I tried to attach the email, but it is not the right file extension.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten »

Hi,

I'll check it later.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: Add name of FAQ in email when comments made

Post by iconicperformances »

Here is an attachment of the email that I now get.
It has a row called "Title" but there is no name next to it.

The subject heading is gone now as it shows No Subject. There use to be a Subject Heading before the changes.
You do not have the required permissions to view the files attached to this post.
iconic
Posts: 45
Joined: Sat Jul 23, 2016 4:25 am

Re: Add name of FAQ in email when comments made

Post by iconic »

Hi, has there been any updates on this situation? It has been awhile with no further reply.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten »

Hi,

not yet, I'll test it other the holiday season :)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply