7 years ago
Topic

Hi,

I want to create a comment structure under my articles similar to the seblod forum with the possibility to reply to the topic or reply to the post. For this I want to use Form & List pack plugin.

And for each reply (topic or post) send an email notification to all user who already reply (topic or post). For this I want to use email field. But when a new user reply to a topic or a post how to add automatically his email adress in the email field?

Do you think email field and form&list pack is enough to make what I want?

Regards,

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
0
Level 1

It won't be enough, it's too complicated to do with conditionals and computation. 

If you store user email and article id with each comment you can use live plugin from

https://www.seblod.com/resources/extensions/plug-ins/sql-pack

to query your forms database table for emails of users that responded to this article. With live plugin you can set value of hidden field that can be used as To(fields) in email field.

7 years ago
1
Level 1

Hello,

So, I make this but it don’t work :

=> In each comment :

1) I store the article_parent_id in a text field with the ID of current article using live value;

2) I store the email_of_current_user writing comment with a text field and live plugin with this query :

SELECT email FROM #__users WHERE id=$user->id

3) article_parent_id and email_current_user are stored in #__content

4) I store another text field all_authors_comment with live plugin and this query :

SELECT email_of_current_user FROM #__content WHERE id= $uri->get('id')

5) I use an email field to send notification to call all_authors_comment field as To (field)

Is it that what you mean ?

4229 Posts
Kadministrator
7 years ago
0
Level 2

"3) article_parent_id and email_current_user are stored in #__content"

This is not true - Seblod does not store in #__content, so also 4) can't work. Seblod stores data in the one or 2 tables made for each content type (see manual)

7 years ago
0
Level 1

Yes indeed it was a storage problem. 

Problem solved.

Thank you!

Get a Book for SEBLOD