×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: [fix] author email notification of comments

[fix] author email notification of comments 15 years 8 months ago #2967

  • carsten888
  • carsten888's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Thank you received: 32
I needed author notification of new and edited comments, so I hacked
components/com_comment/joscomment/comment.class.php

CAREFULL. THIS IS FOR JOOMLA 1.0.x ONLY. (don't tell me I didn't tell you so).
Works with iJoomlaComment 3.26.

rename the attached file to .php

enjoy :) comment.txt

[fix] author email notification of comments 15 years 8 months ago #2969

  • carsten888
  • carsten888's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Thank you received: 32
ahum.

just got a upload error when trying to upload this file.

You can download it here:
www.joomlapi.com/joomlacomment-hack/

[fix] author email notification of comments 15 years 8 months ago #2971

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Carsten!
Thank you very much for your contribution.
Can you explain with a little more details what have exactly done?
Now the author of a comment should be able to receive a notification if an admin edit his comment? Or you mean that the author of an article will get an e-mail if there is a new e-mail?

[fix] author email notification of comments 15 years 8 months ago #2975

  • carsten888
  • carsten888's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Thank you received: 32

Now the author of a comment should be able to receive a notification if an admin edit his comment? Or you mean that the author of an article will get an e-mail if there is a new e-mail?

both. I just could not get it done for when a post is deleted, somehow the content_id is not parsed. The post id is, but the post is deleted before I could select the content_id in the post-row. :)

I added function 'send_notificatio'n and added some calls to that function in function 'execute' starting on line 1388.

[fix] author email notification of comments 15 years 8 months ago #2976

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I have the following idea about this(the first feature to be impremented in 4.1 :))

Make a new notification table where the e-mail the id of the content and the e-mail of the user will be stored.
I will write a plugin that will display just after the article with a checkbox - notify of new comments and so on. What do you think of this approach?

[fix] author email notification of comments 15 years 8 months ago #2979

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081

[fix] author email notification of comments 15 years 8 months ago #2993

  • Leon
  • Leon's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
It wiil be fine!

I hope, you will make it for J1.5 too :-) and it will be done soon.
  • Page:
  • 1
Time to create page: 0.122 seconds