- Posts: 9
COMMUNITY FORUM
Notification of new comments by email
- xbow
- Offline
- New Member
Less
More
14 years 10 months ago #72072
by xbow
Replied by xbow on topic Notification of new comments by email
hi..i was looking for same...did you find a solution for this?
Annie Jackson said:John is there any way for the author of the article to receive notifications also? I have 10 authors on my site and currently I can not find a comment system which notifies them by default that they have new comments which means there are many articles with comments from users and no replies from the author. JComments claims this is in an upcoming version but I read that 2 months ago and there are no indications of when that new version will be. If K2 can do this I will convert the whole site just for this feature. John Hooley said:Okay guys, I've added a little bit more to the modifications and fixed the error with the submitter's email. It will now send an email --if there is an email entered in the parameters field-- that will either notify of a new comment that has been added or one that needs to be reviewed. It also includes the title of the item that was commented. I changed the file location so that people will download the latest version: bluebridgedev.com/files/k2CommentsMod.zip
The directions are the same. If you're just updating from the last change, you need only switch out item.php.
One thing I forgot to mention before, I make use of the private keyword which is available only in PHP 5+. PHP 4 users will need to remove it from the function definitions or it will cause errors.
I've also given the snippet it's own page on my site:
bluebridgedev.com/code-snippets
Annie Jackson said:John is there any way for the author of the article to receive notifications also? I have 10 authors on my site and currently I can not find a comment system which notifies them by default that they have new comments which means there are many articles with comments from users and no replies from the author. JComments claims this is in an upcoming version but I read that 2 months ago and there are no indications of when that new version will be. If K2 can do this I will convert the whole site just for this feature. John Hooley said:Okay guys, I've added a little bit more to the modifications and fixed the error with the submitter's email. It will now send an email --if there is an email entered in the parameters field-- that will either notify of a new comment that has been added or one that needs to be reviewed. It also includes the title of the item that was commented. I changed the file location so that people will download the latest version: bluebridgedev.com/files/k2CommentsMod.zip
The directions are the same. If you're just updating from the last change, you need only switch out item.php.
One thing I forgot to mention before, I make use of the private keyword which is available only in PHP 5+. PHP 4 users will need to remove it from the function definitions or it will cause errors.
I've also given the snippet it's own page on my site:
bluebridgedev.com/code-snippets
Please Log in or Create an account to join the conversation.
- John Hooley
- Offline
- New Member
Less
More
- Posts: 1
14 years 10 months ago #72073
by John Hooley
Replied by John Hooley on topic Notification of new comments by email
I haven't used JComments, so I can't speak to it, and the modifications I made to K2 are temporary solutions until JoomlaWorks adds in the functionality (which I'm sure they will). Another work around to notify multiple users, with the changes I made, would be to set up an email forwarder. Joomla emails the comment notification to that one email, which then forwards it out to several other emails. The email forwarder can be set up through the administrative panel of most hosting services (likely to be CPanel).
Please Log in or Create an account to join the conversation.
- Mike C
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 10 months ago #72074
by Mike C
Replied by Mike C on topic Notification of new comments by email
Will this hack work for the new version of K2 (2.2)?
After I upgraded, it overwrote that file so the functionality is now lost....
After I upgraded, it overwrote that file so the functionality is now lost....
Please Log in or Create an account to join the conversation.
- Mike C
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 10 months ago #72075
by Mike C
Replied by Mike C on topic Notification of new comments by email
Well, I can confirm that overwriting the two files seems to work ok with the latest version. I'm just hoping I didn't overwrite anything important ??
Please Log in or Create an account to join the conversation.
- Mike C
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 10 months ago #72076
by Mike C
Replied by Mike C on topic Notification of new comments by email
I opened the files in a compare tool and they're vastly different, so I'm going to undo it. Will there be an update for K2 2.2 of this comment notification functionality?
Please Log in or Create an account to join the conversation.
- Simon Wells
- Offline
- Platinum Member
Less
More
- Posts: 955
14 years 10 months ago #72077
by Simon Wells
Replied by Simon Wells on topic Notification of new comments by email
Mike, yes this feature still works in V2.2 we ahve tested this at K2joom.
Mike C said:I opened the files in a compare tool and they're vastly different, so I'm going to undo it. Will there be an update for K2 2.2 of this comment notification functionality?
Mike C said:I opened the files in a compare tool and they're vastly different, so I'm going to undo it. Will there be an update for K2 2.2 of this comment notification functionality?
Please Log in or Create an account to join the conversation.
- Mike C
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 10 months ago #72078
by Mike C
Replied by Mike C on topic Notification of new comments by email
Hi Simon, how did you test it? You can't just overwrite item.php and config.xml because there's a lot of stuff that changed between versions 2.1 and 2.2. In other words, how did you move the notification code fragments from the old to the new without messing up the versions of those files?
Please Log in or Create an account to join the conversation.
- Simon Wells
- Offline
- Platinum Member
Less
More
- Posts: 955
14 years 10 months ago #72079
by Simon Wells
Replied by Simon Wells on topic Notification of new comments by email
Hi Mike,
The changes to the xml is just to setup what is displayed in the k2 parameters.
For item.php, there are many changes but for test purposes, we did a straight like for like swap of these two files, exactly as previously mentioned.
I just checked the files on the server and we are running to V2.1 version then posted a commented and it was mailed.
I then exchanged it for the v2.2, posted a comment and no notification.
I have updated the V2.2 file with the auto notification and have tested it this morning.
Attached is the zip with the 2 new files and a help file.
Let me know how you get on.
Mike C said:Hi Simon, how did you test it? You can't just overwrite item.php and config.xml because there's a lot of stuff that changed between versions 2.1 and 2.2. In other words, how did you move the notification code fragments from the old to the new without messing up the versions of those files?
The changes to the xml is just to setup what is displayed in the k2 parameters.
For item.php, there are many changes but for test purposes, we did a straight like for like swap of these two files, exactly as previously mentioned.
I just checked the files on the server and we are running to V2.1 version then posted a commented and it was mailed.
I then exchanged it for the v2.2, posted a comment and no notification.
I have updated the V2.2 file with the auto notification and have tested it this morning.
Attached is the zip with the 2 new files and a help file.
Let me know how you get on.
Mike C said:Hi Simon, how did you test it? You can't just overwrite item.php and config.xml because there's a lot of stuff that changed between versions 2.1 and 2.2. In other words, how did you move the notification code fragments from the old to the new without messing up the versions of those files?
Please Log in or Create an account to join the conversation.
- Omar Ramos
- Offline
- Junior Member
Less
More
- Posts: 30
14 years 9 months ago #72080
by Omar Ramos
Replied by Omar Ramos on topic Notification of new comments by email
Hey guys,
Yesterday afternoon I was rereading this thread and noticed that nobody had really answered the question about author notifications or notifications for reply to a post so I added in that functionality (I took K2Joom's latest 1.1 file and added the additional methods required).
In trying to test this I also across another issue where a user that is assigned to a few specific categories is then unable to comment in other categories (for permissions it's more likely that you want them to only create/edit items in those categories but you don't necessarily want to limit users to only adding comments in those few categories) so I also added the option in backend user group creation for a "Post to All Categories" permission and have included it in the zip file attached.
More on that particular issue can be found here:
The notifications for authors and commenters (and the admin notification) all seem to be working well on my end.
K2Joom said:Hi Mike, The changes to the xml is just to setup what is displayed in the k2 parameters.
For item.php, there are many changes but for test purposes, we did a straight like for like swap of these two files, exactly as previously mentioned.
I just checked the files on the server and we are running to V2.1 version then posted a commented and it was mailed.
I then exchanged it for the v2.2, posted a comment and no notification.
I have updated the V2.2 file with the auto notification and have tested it this morning.
Attached is the zip with the 2 new files and a help file.
Let me know how you get on.
Mike C said:Hi Simon, how did you test it? You can't just overwrite item.php and config.xml because there's a lot of stuff that changed between versions 2.1 and 2.2. In other words, how did you move the notification code fragments from the old to the new without messing up the versions of those files?
Yesterday afternoon I was rereading this thread and noticed that nobody had really answered the question about author notifications or notifications for reply to a post so I added in that functionality (I took K2Joom's latest 1.1 file and added the additional methods required).
In trying to test this I also across another issue where a user that is assigned to a few specific categories is then unable to comment in other categories (for permissions it's more likely that you want them to only create/edit items in those categories but you don't necessarily want to limit users to only adding comments in those few categories) so I also added the option in backend user group creation for a "Post to All Categories" permission and have included it in the zip file attached.
More on that particular issue can be found here:
The notifications for authors and commenters (and the admin notification) all seem to be working well on my end.
K2Joom said:Hi Mike, The changes to the xml is just to setup what is displayed in the k2 parameters.
For item.php, there are many changes but for test purposes, we did a straight like for like swap of these two files, exactly as previously mentioned.
I just checked the files on the server and we are running to V2.1 version then posted a commented and it was mailed.
I then exchanged it for the v2.2, posted a comment and no notification.
I have updated the V2.2 file with the auto notification and have tested it this morning.
Attached is the zip with the 2 new files and a help file.
Let me know how you get on.
Mike C said:Hi Simon, how did you test it? You can't just overwrite item.php and config.xml because there's a lot of stuff that changed between versions 2.1 and 2.2. In other words, how did you move the notification code fragments from the old to the new without messing up the versions of those files?
Please Log in or Create an account to join the conversation.
- Omar Ramos
- Offline
- Junior Member
Less
More
- Posts: 30
14 years 9 months ago #72081
by Omar Ramos
Replied by Omar Ramos on topic Notification of new comments by email
I noticed after applying this that the My Account page was no longer showing the Bio and Avatar upload fields. It took me a while to figure it out but I realized that the config.xml in K2Joom's ZIP file is missing some new parameters available in 2.2 so I've updated the config.xml file in the attached zip file and things should work properly now (you may have to go into K2's backend area and check to see that the "Item Extra Fields" parameter is set to show and resave your K2 config in order for the Bio/Avatar fields to begin showing up again on the My Account Page.
Omar Ramos said:Hey guys,
Yesterday afternoon I was rereading this thread and noticed that nobody had really answered the question about author notifications or notifications for reply to a post so I added in that functionality (I took K2Joom's latest 1.1 file and added the additional methods required).
In trying to test this I also across another issue where a user that is assigned to a few specific categories is then unable to comment in other categories (for permissions it's more likely that you want them to only create/edit items in those categories but you don't necessarily want to limit users to only adding comments in those few categories) so I also added the option in backend user group creation for a "Post to All Categories" permission and have included it in the zip file attached.
More on that particular issue can be found here:
The notifications for authors and commenters (and the admin notification) all seem to be working well on my end.
K2Joom said:Hi Mike, The changes to the xml is just to setup what is displayed in the k2 parameters. For item.php, there are many changes but for test purposes, we did a straight like for like swap of these two files, exactly as previously mentioned.
I just checked the files on the server and we are running to V2.1 version then posted a commented and it was mailed.
I then exchanged it for the v2.2, posted a comment and no notification.
I have updated the V2.2 file with the auto notification and have tested it this morning.
Attached is the zip with the 2 new files and a help file.
Let me know how you get on.
Mike C said:Hi Simon, how did you test it? You can't just overwrite item.php and config.xml because there's a lot of stuff that changed between versions 2.1 and 2.2. In other words, how did you move the notification code fragments from the old to the new without messing up the versions of those files?
Omar Ramos said:Hey guys,
Yesterday afternoon I was rereading this thread and noticed that nobody had really answered the question about author notifications or notifications for reply to a post so I added in that functionality (I took K2Joom's latest 1.1 file and added the additional methods required).
In trying to test this I also across another issue where a user that is assigned to a few specific categories is then unable to comment in other categories (for permissions it's more likely that you want them to only create/edit items in those categories but you don't necessarily want to limit users to only adding comments in those few categories) so I also added the option in backend user group creation for a "Post to All Categories" permission and have included it in the zip file attached.
More on that particular issue can be found here:
The notifications for authors and commenters (and the admin notification) all seem to be working well on my end.
K2Joom said:Hi Mike, The changes to the xml is just to setup what is displayed in the k2 parameters. For item.php, there are many changes but for test purposes, we did a straight like for like swap of these two files, exactly as previously mentioned.
I just checked the files on the server and we are running to V2.1 version then posted a commented and it was mailed.
I then exchanged it for the v2.2, posted a comment and no notification.
I have updated the V2.2 file with the auto notification and have tested it this morning.
Attached is the zip with the 2 new files and a help file.
Let me know how you get on.
Mike C said:Hi Simon, how did you test it? You can't just overwrite item.php and config.xml because there's a lot of stuff that changed between versions 2.1 and 2.2. In other words, how did you move the notification code fragments from the old to the new without messing up the versions of those files?
Please Log in or Create an account to join the conversation.