Add name of FAQ in email when comments made

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
iconicperformances
Posts: 24
Joined: Fri Sep 15, 2017 8:49 am

Add name of FAQ in email when comments made

Post by iconicperformances » Wed Nov 27, 2019 3:18 am

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: 14792
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten » Fri Nov 29, 2019 5:47 pm

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

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

Re: Add name of FAQ in email when comments made

Post by iconicperformances » Fri Nov 29, 2019 10:26 pm

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: 14792
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten » Sat Nov 30, 2019 8:10 am

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

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

Re: Add name of FAQ in email when comments made

Post by iconicperformances » Sat Nov 30, 2019 10:50 am

It would be ideal in the body of the email just before it writes the comment made

Thorsten
Posts: 14792
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten » Sat Nov 30, 2019 12:14 pm

phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

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

Re: Add name of FAQ in email when comments made

Post by iconicperformances » Sun Dec 01, 2019 12:32 am

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: 14792
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten » Sun Dec 01, 2019 8:15 am

Hi,

yes, you are right.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

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

Re: Add name of FAQ in email when comments made

Post by iconicperformances » Sun Dec 01, 2019 8:42 am

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: 14792
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten » Sun Dec 01, 2019 9:02 am

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: 24
Joined: Fri Sep 15, 2017 8:49 am

Re: Add name of FAQ in email when comments made

Post by iconicperformances » Sun Dec 01, 2019 10:41 am

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: 14792
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add name of FAQ in email when comments made

Post by Thorsten » Sun Dec 01, 2019 10:42 am

Hi,

I'll check it later.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

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

Re: Add name of FAQ in email when comments made

Post by iconicperformances » Sun Dec 01, 2019 10:46 am

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.

Post Reply