Home > Joomla > Joomla extensions > NotifyArticleSubmit - get email notification when an article is added or changed
NotifyArticleSubmit - get email notification when an article is added or changed PDF Print E-mail
Written by gruz   
Thursday, 06 January 2011 08:08
Last Updated on Monday, 12 March 2012 17:43
NotifyArticleSubmit

1. Quick overview

The extension sends emails when someone adds/modifies an article at your Joomla web-site. Sending of emails can be restricted by categories, article ids, user groups, particular users. You can turn of email sending for modification done by a patticular user or user groups. Or vice versa, enable notification only for particular articles, users or user groups.

The email may optionally contain author/modifier name, date, article title, intro and/or full text overview (HTML is converted to text).

The email may contain links to view articles and to edit articles (one must be logged in to follow such links successfully).

See example:

An example of NotifyArtcileSubmit mail

 

2. When is it needed?

Here are some situation when NotifyArticleSubmit can be usefull

  • You are a web-site creator and your clients manage articles themselves at a web-site created by you. Very often clients make many mistakes till they learn like giving wrong titles, assigning to wrong sections and so on. So you may want to controll what they add to correct them in time. Each time an article is added you are informed via email and may check it.
  • You allow users to add articles from frontend and want to be informed (or inform your stuff), when someone adds an article.
  • You want to inform a certain group of users or all users about new articles published at your web-site (be carefull of mass mailing issues in this case).

3. Installation

Install the extensions like a regular joomla extension.

NotifyArticleSubmit is a plugin, so don't forget to publish it.

3.1. Upgrade

Uninstallation of previous version is not needed. Just install the newer version.

3.2. Joomla 1.5 installation note for Joomfish compatibility

When installing the extension file administrator/components/com_joomfish/contentelements/plugins.xml is overwwritten if exists. I give 99.9%, that it doesn't as I have never meet any other plugin needed to be translated. But if it exists before ther installation of NotifyArticleSubmit you must combine the existing one with the file from the install package. When uninstalling the file is also removed. Preserve it if it's really needed. But again, 99.9% that you don't have to care about it.

3.3. Joomla 1.5 uninstall

NotifyArticleSubmit is installed usign a special component, which purpose is to prefom some operation while installing and uninstalling the plugin. So to uninstall the plugin you must uninstalle not plugin NotifyArticleSubmit, but component NotifyArticleSubmit.

Correct uninstall for Joomla 1.5

4. Settings

By default plugin sends messages to all superadmins on any article change (add/update/publish/unpublish).

The settings are divided into three groups. The smallest one is the General group, which has 2-3 settings depending on joomla version.

General settings group

Next two groups are For regular users and For admin users.

Setting groups

These groups are mostly logical ones. The only difference for the Admin groups is a bunch of settings for current article modifier and article author - weather to inform and in in which way.

Author and modifier settings

The purpose of these two logical groups is to let you set separate rules for users and groups of users whish you decide to be admin users and regular users. Too complicated.

Here is an example. Let's imagine you want all registred users to recieve notifications when an article is published,

Setting to notify on Publish only in New and Updated articles

but all superadmins to be informed on any changes (add/modify/publish/unpublish).

Admins always recieve notifications

Remember, that Admin user settings have higher priority then Regular user settings. This means, that is a group of users is set to recieve mails in both these logical groups, the it will recieve mail only as Admin users.

 Section of settings Notify on actions performed by users is worth of additions description.

Notify on actions performed by users

It is useful i.e. if you want to be informed on changes done by Managers only as you don't trust them very much. But you trust other user groups so you don't need to be inform when they make changes.

You may also add emails to recieve or to never recieve notifications (even if this email is a superamin's email). But I believe it's a useless feature as you can exclude/include users by userid.

Additional email settings

All other options seem to me to be self explained, but my opinion is not objective (-: Post requests for additional descriptions here in comments.

5. Tips

Let imagine that you have 10 categories and need to have different notification rules for each category. Core plugin allows to have 2 separate groups (see above). So you may install clone plugins at the plugin settings page (In earlier versions the clones had to be downloaded from here: http://gruz.org.ua/images/stories/files/notifyarticlesubmit/clones/) and have as many separate rules as you want by making different settings in each clone. The logic is very similar to have multiple instances of the same module, but Joomla doesn't allow to copy plugins like modules.

6. Possible problems

The extensions is rather complicated and it's very hard for me (one person) to check all possible combinations of settings. So there can be some "logical forks. If you meet some problems with understanding the settings or believe something works not as expected, please post comments to inform me. Describe your problem as widely as possible.

7. Language translations

The translations may be added or updated with the flow of time. You can download the latest version here (no registration is needed) : https://webtranslateit.com/en/projects/2680-NotifyArticleSubmit/files

7.1. Currenty available languages

The latest released version contains such language translations:

Translations may be updated by users and you can see between relese progress at this chart:

Charts
Powered by WebTranslateIt

Legend:

  • translated and profreeded lines
  • translated and unprofreeded lines (if you speak a language with such status - please, help with proofread)

So the orange line (despite of 0% which can confuse) shows how many lines are translated, but are not proofreeded by someone who speaks the language. And green line and percents show how many lines are translated and proofreeded.

7.2. Fix/Add translation

To help with translation, please, register at http://webtranslateit.com/ and help with the translation of the extension: https://webtranslateit.com/en/projects/2680-NotifyArticleSubmit/locales/en-GB..en-GB/strings?status=all

7.3. Translate at your website

Master translation files are placed at your web-site in folder: administrator/language/en-GB/

I.e. your locale (language) has code fr-FR. You have to copy files

  • administrator/language/en-GB/en-GB.plg_content_notifyarticlesubmit.ini
  • administrator/language/en-GB/en-GB.plg_content_notifyarticlesubmit.sys.ini

to

  • administrator/language/fr-FR/fr-FR.plg_content_notifyarticlesubmit.ini
  • administrator/language/fr-FR/fr-FR.plg_content_notifyarticlesubmit.sys.ini

Next you need to translate the new files.

8. Joomla 1.5 limitation

NotifyArticleSubmit doesn't send emails when (un)publishing articles from article list(not when editing article).  Alas, Joomla 1.5 doesn't have system events, which are fired in this case.

9. Joomla 1.5 and Joomfish

NotifyArticleSubmit sends notification emails while editing different language articles from fronted. But it doesn't send emails when editing translations from Joomfish backend. Alas Joomfish doesn't fire Joomla content events when editing translations from backend, so NotifyArticleSubmit cannot determine when an article was edited in such a way. So if you badly need to have notifications with Joomfish you must edit translations only from frontend. Alas...

NotifyArticleSubmit may have different settings for different languages. You can translate the plugin settings like you can translate any module settings using Joomfish.

I.e. you may want to set Publishers not to be informed when changes are made in a non-main language. So you may choose settings per language.

But! Joomfish doesn't allow to translate plugins in a good way. So to translate Plugin settings visit Joomfish translation section:

Joomfish translation - translate NotifyArticleAdmin

And edit the settings, which look like a set of lines:

Joomfish plugin translation

Alas there is not way to present the settings in a better way while translating via JoomFish. 

10. What it does not do

  • Currently it doesn't handle other actions except Publish and Unpublish. This means that Archiving and Trashing articles are not handled by the plugin. But is it really needed?
  • Users cannot subscribe/unsubscribe themselves

11. How can I help?

  • donate (please! :-)
  • report bugs with detailed info (optionally provide akeebabacked copy of the web-site so I can test at my localhost)
  • give nicely described ideas
  • help with translations
  • suggest better settings organization

12. Thanks

  • The plugin was originally developed by IWT and Vijay Wadnere. The base code of the plugin is taken from here: http://forum.joomla.org

13. Support

Often people report that the plugin does not work. However, after my intervention it become clear, that users incorrectly configured plugin. This requires my time and attention. So first check carefully  the plugin configuration, and if you see that everything is correct, but the plugin does not work, only then ask for support.

If I find out after my intervention, that the problem was in your plug, then such a support cost $ 10. I think it is fairly.

14. Want a new feature?

You may place a feature request here in the comments. I'll add this to my TODO list(if it's acceptable). Earlier or later it will be implemented. I do my best, often update the extension, but I have limited time(time=money) to work on everything.

If you need a quick feature implementation, please donate. Recommended for reading.

15. Feature Requests/TODO

  • Allow to select groups to show the notification switch in the articles to. I.e. SuperAdmins can temporary disable article notifications, but Publisher cannot.

  • Custom mailbody

  • Create correct mails for reporting non-articles creation (check $context variable)

  • Find a way to notify only on Save, but not on Apply (optionally). Maybe catch task with a system plugin...

  • Try to handle Publish/Unpublish events from article list in J15. Possibly need a system plugin which can determain (un)publish events and then fire NotifyArticleSubmit.

  • It would be cool if there was some sort of feature to allow members to subscribe (as an option for the user) to changes for content (via email). There was an extension for joomla 1.5 that could do this which was called JomWiki. Here is the file in case you want it:
    www.azrul.com/.../com_wiki.zip

    Perhaps pieces of it could be copied to make this feature for NotifyArticleSu bmit? This would make it so notifications would only go to those who want it. ;-)

16. Changelog

2.1.1

  • Added: Allow to temporary disable notification during editing an article.

  • Allow to chose wether to send notification to users, which have no permissions to view an article

2.0.13

  • Automatic updates for Joomla 2.5 added

  • Fixe a critical arror when handling non-public access categories

  • Other small fixes

2.0.10

  • Fixed several bugs
  • Added several languages
  • Added opportunity to disable the plugin for non com_content.articles. Before it was sending notification on creating categories, web-links, maybe something else.

2.0.3

  • Added clone feature
  • Now Itmeid is added to the article link
  • Fixed wrong permissions message instead of view link
  • No nnframwork plugin is needed anymore, reduced install package file
  • Fixed some smaller several bugs

2.0.2

  • Fixed some bugs with loading language files

2.0.1

  • Addes some languages translations, updated existing ones

2.0.0

  • too much to describe in comparison with 1.0.6.2

1.0.6.2

  • Small language fix

1.0.6.1

1.0.6

  • Fixed deprecated warning
  • Fixed russian translation bug
Last Updated on Monday, 12 March 2012 17:43
 

Comments   

 
+7 # sirius 2011-01-26 10:06
Excellent, a must have, this type of thing should be included as default in joomla.
Reply | Reply with quote | Quote
 
 
0 # sebastien 2011-09-28 00:27
Hi,
can users suscrib/unsuscr ib their mail to the plugin from the front office of my site?
Reply | Reply with quote | Quote
 
 
+1 # gruz 2011-09-28 01:42
Quoting sebastien:
Hi,
can users suscrib/unsuscrib their mail to the plugin from the front office of my site?


No.
Reply | Reply with quote | Quote
 
 
0 # NoFxPT 2011-09-28 19:47
Hi,

Nice componnent but emails are considered as spam. With other components mails are being sent to inbox normally. Can you helpe me? Thanks.
Reply | Reply with quote | Quote
 
 
+1 # gruz 2011-09-28 20:15
Quoting NoFxPT:
Hi,

Nice componnent but emails are considered as spam. With other components mails are being sent to inbox normally. Can you helpe me? Thanks.


Does gmail show any warning?

It uses the same function to send email as Joomla does. It's strange. If no gmail warnings - I don't know.

Though gmail filters live with their own lives, who know what they have in their minds.
Reply | Reply with quote | Quote
 
 
0 # NoFxPT 2011-09-28 20:35
Quoting gruz:
Quoting NoFxPT:
Hi,

Nice componnent but emails are considered as spam. With other components mails are being sent to inbox normally. Can you helpe me? Thanks.


Does gmail show any warning?

It uses the same function to send email as Joomla does. It's strange. If no gmail warnings - I don't know.

Though gmail filters live with their own lives, who know what they have in their minds.


Hi,

thanks for the fast reply.

Well actually this only happens when i set "Include frontend link to edit article " to "no".

Another question,

I want to translate the email message to portuguese and costumize a little bit more the message that is sent. What should i do? I am editing directly the file "notifyarticles ubmit.php". is this correct?
Reply | Reply with quote | Quote
 
 
0 # gruz 2011-09-28 21:04
Quoting NoFxPT:

Hi,

thanks for the fast reply.

Well actually this only happens when i set "Include frontend link to edit article " to "no".

Another question,

I want to translate the email message to portuguese and costumize a little bit more the message that is sent. What should i do? I am editing directly the file "notifyarticlesubmit.php". is this correct?


1. Who know why google recognizes a message like a spam? Mark as not spam several times - it'll remember.
2. Copy
administrator/l anguage/en-GB/e n-GB.plg_conten t_notifyarticle submit.ini
to
administrator/language/pt-BR/pt-BR.plg_content_notifyarticlesubmit.ini
and make your translations.
3. To customize the message, if translation doesn't fit you, edit this file:
plugins/content/notifyarticlesubmit.php

But I strongly recommend not change core files.
Reply | Reply with quote | Quote
 
 
0 # NoFxPT 2011-09-29 11:29
Thanks for the good support. I will try to make it work :)
Btw the receivers are not gmail, they should be?
Reply | Reply with quote | Quote
 
 
0 # gruz 2011-09-29 11:35
Quoting NoFxPT:
Thanks for the good support. I will try to make it work :)
Btw the receivers are not gmail, they should be?


Doesn't matter. They have other spam filters.
Reply | Reply with quote | Quote
 
 
0 # nahed 2011-10-13 19:30
Hi,
I have been using your fantastic plugin. It is very helpful

I wonder if you could help me tweek your plugin a bit to meet the need of our site

Can I add some code in notifyarticlesu bmit.php to recognize the language of the article and send an email to a recipient based on the language of the artilce

What I want to do is as follows

If the article is in English, our English web editor would receive an email notification for newly added or modified English articles

If the article is in French, our French web editor would receive an email notification for newly added or modified French articles.

Would be grateful if you could help me do this.

Thanks
Reply | Reply with quote | Quote
 
 
0 # gruz 2011-10-30 01:33
Hi again.
I've just remembered that the dev.plugin version has joomfish compatibility. So you can translate plugin parameters. That is what you need.

Setup plugin for English language and enter neede email to recieve updates.
Translate the plugin settings via Joomfish and change the mails.

The translation itself may look not good as Joomfish doesn't render the plugin settings as a form. But the code to be translated is readable. Try it.
Reply | Reply with quote | Quote
 
 
0 # gruz 2011-10-13 19:45
How do you set an article language?
Reply | Reply with quote | Quote
 
 
0 # nahed 2011-10-13 19:52
I don't set an article language from the frontend, but users switch languages from the Joomfish language options.
Reply | Reply with quote | Quote
 
 
0 # Sietwolt 2011-11-23 13:45
Fantastic. Installed version 1.7 Not.art.Submit and this extension (no number). Looks great. lot of thanks.
Stil a question: is it still possible to put parameters yes/no to front end or back end use? Now email refers to both possibilities

Thanks
Reply | Reply with quote | Quote
 
 
0 # gruz 2011-11-23 13:55
Currently it's not possible. I will add it in next releases.

You can emulate such a behavour by disabling plugin for actions performed by backend users. I think it's almost the same what you need, as you need i.e. to be informed when a non-admin (frontend user) edits an article.
Reply | Reply with quote | Quote
 
 
+1 # dave 2011-11-23 23:33
Works perfect now!! Thanks! So much! Can't believe Joomla would omit a feature like this! Thanks for keeping the open source ethics and making it free!
Reply | Reply with quote | Quote
 
 
0 # Kasparek 2011-12-17 15:53
Version 2.0 build 60 on Joomla! 1.5.15

On 2011-08-09 03:34 Ossi reported problems when trying to send notifications to specific registered User IDs. I encountered the same problems - I am able to send notifications only to users which addresses are explicitly stated in Additional e-mails field. The notifications are not sent to registered Joomla! users even when All radio button is selected in Users to notify field. Did you find any fix for this?
Reply | Reply with quote | Quote
 
 
0 # gruz 2011-12-17 15:57
Just enable settings for regular users. Registred users are not
recognized as admins, so the group disabled for admins

http://view.xscreenshot.com/dd6491626863fb8d30cb9ac3d5124049



In this case registred never recieve messages:
http://view.xscreenshot.com/8a5941781382454e48348414281d431a


Set like this:
http://view.xscreenshot.com/61b19174328abd56236e036817bcd493
Reply | Reply with quote | Quote
 
 
0 # Josh Lewis 2011-12-26 01:43
It would be cool if there was some sort of feature to allow members to subscribe (as an option for the user) to changes for content (via email). There was an extension for joomla 1.5 that could do this which was called JomWiki. Here is the file in case you want it:
http://www.azrul.com/downloads/JomWiki/com_wiki.zip

Perhaps pieces of it could be copied to make this feature for NotifyArticleSu bmit? This would make it so notifications would only go to those who want it. ;-)
Reply | Reply with quote | Quote
 
 
0 # gruz 2011-12-26 01:48
Thanks for the suggestion. I'll have a look at the code. But a "small" feature of subscribe/unsub scribe demand to develop a component to manage subscriptions. This would be a larger peiece of work then this plugin. Adding this to TODO list.
Reply | Reply with quote | Quote
 
 
0 # Great film directors 2012-01-18 02:36
Hey,

Thanks for this great plugin. I am using J1.5.25 and most of my articles are set with an access to "registered" users only.

When I edit one of those articles, "registered" users get the notification emails but instead of the link to the front-end article they get the message "You are not authorized to view this article". Is this a small glitch or do I do something wrong? Only "registered" users are selected in the plugin admin to receive email upon article changes.

Thanks in advance for your help.

I forgot to tell you that of course users are being "registered" in the user management section so there's nothing wrong here.


-----

Just some extra thoughts: when you are in the section "show settings for regular users", in the section Notify following users -->
User Group Levels, if you tick the radio button notify on "selection" but you don't select any user group email are sent to every user by default.

Intuitively I would have thought that if you have no selection in this case no emails should be sent.

I used this option on testing purpose and just add a testing address in the field "Add extra email adresses" but actually everybody got the changes!


--------------


I surely don't want to spam this comments section ;) but I keep having comments as I'm just learning how to make this plugin work.

Is there a way that the link sent to the users contains the "itemid" parameters? I know you would tell me: how would I know which itemid I should select? I will probably tell you: the first one you encouter in the database (menu table) who has a match with the given article ...

Because right now sometimes the display of the articles without the appropriate modules can be weird. I don't know if there can be any fix for that without a human input ...
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-01-22 13:29
Quoting Great film directors:

When I edit one of those articles, "registered" users get the notification emails but instead of the link to the front-end article they get the message "You are not authorized to view this article".


Fixed.

Quoting Great film directors:

Just some extra thoughts: when you are in the section "show settings for regular users", in the section Notify following users -->
User Group Levels, if you tick the radio button notify on "selection" but you don't select any user group email are sent to every user by default.


I do not confirm. Checked - it sends to noone in this case.

Quoting Great film directors:

Is there a way that the link sent to the users contains the "itemid" parameters?


Fixed.

Check the new version.
Reply | Reply with quote | Quote
 
 
0 # Iconinum 2012-01-24 14:00
excellent! It works with joomla! and joomfish very well.

Do you know how to set it up with PHOCADOWNLOAD so that users get notify with new uploads??

Thanks a lot for great job :roll:
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-01-24 14:06
Does phocadownload register some system events on new uploads?
Reply | Reply with quote | Quote
 
 
0 # Iconinum 2012-01-24 14:10
Quoting gruz:
Does phocadownload register some system events on new uploads?


Phocadownload sends email notification to to any (one user) set by administrator.

I'm impressed now even more because of your prompt reply.
Thanks again.
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-01-24 14:18
This doesn't mean if it sends by itself. Joomla framework assumes, that developer registed tasks like onPhocaFileUplo ad or something like this. And this tasks can be used to fire plugins designg to fire on this tasks. If Phoca doesn't register system events, then my plugin can't catch the moment, when a file is uploaded. It least in a regular, "legal" way.

I've asked Jan about it here:
www.phoca.cz/forum/viewtopic.php?f=31&t=17451
Reply | Reply with quote | Quote
 
 
0 # Rusty 2012-01-28 22:02
Hi Gruz,
Thanks for the great plugin, all is working well. Just a question on wether it could include web links as well as joomla has a standard web links component.

thanks
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-01-28 22:19
Quick answer - no. There are no any triggers in com_weblinks to run a plugin. The same problems as the question about PhocaDownload above.

Long answer. In theory, it' possible to try to write a system plugin to catch the moment of a web-link save/update and then pass data to NotifyArticleSu bmit.
Reply | Reply with quote | Quote
 
 
0 # Chilion 2012-02-15 12:19
Is it possible to make this work with K2?
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-02-15 13:53
It's the same question:

http://gruz.org.ua/en/about-joomla/29-joomla-extensions/22-notifyarticlesubmit-get-email-notification-when-an-article-is-added-or-changed.html#comment-216

http://gruz.org.ua/en/about-joomla/29-joomla-extensions/22-notifyarticlesubmit-get-email-notification-when-an-article-is-added-or-changed.html#comment-234


I have never used K2. If it has triggers set on adding changing content, then yes, it's possible. If their triggers are alike to Joomla core content, then not sagnificant changes are needed in the code. So there are 3 possible answeres:
- no (if K2 doesn't allow it itself)
- it's possible with little code changes
- it's possible with sagnificant code changes
Reply | Reply with quote | Quote
 
 
0 # Gabor 2012-02-20 16:18
Hi,

It is possible to set this plugin like the followings.

I have two groups in the site (in the registered area). This are group "A" and "B" . They can see the articles if the articels are in the CategoryA or CategoryB. They can not see the articels of each other.

Is it possible if group A would receive any Notifications if they have the rigt to see the aricel?

Thanks

G
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-02-20 16:48
I think it's possible to add such a feature in future version. One day...
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-06 13:31
Check the latest dev. version here: http://gruz.org.ua/en/notifyarticlesubmit-files.html

http://gruz.org.ua/images/stories/files/notifyarticlesubmit/j17j25_plg_content_notifyarticlesubmit_2_1_0_dev_build_16.zip

Now there is an option not to notify if the user has no permission to view the article.

http://view.xscreenshot.com/3f14d60dc93309f43ca7a96dba507f95
Reply | Reply with quote | Quote
 
 
0 # micker 2012-02-29 14:40
it is possible to add flexicontent compatibility ?
this cck use com_content but this plugin doesn't work
thanks for your works
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-01 11:52
Flexiecontent developers are going to add triggers to make it possible. When they will add and I will have time I will add this to the plugin.
Reply | Reply with quote | Quote
 
 
0 # Melker 2012-03-05 11:55
Hi,

Would it be possible to add checkbox that I mark as checked if I would like to send a notification of a new article?

Regards
Melker
Reply | Reply with quote | Quote
 
 
+1 # gruz 2012-03-06 13:40
Added in the dev. version.
http://gruz.org.ua/images/stories/files/notifyarticlesubmit/j17j25_plg_content_notifyarticlesubmit_2_1_0_dev_build_16.zip

Thanks for the donation!
Reply | Reply with quote | Quote
 
 
0 # Denis Fontaine 2012-03-06 06:54
Hello GRUZ,
First of all, many thanks for this wonderful and useful script. I have the last version for J.1.5, and this plugin works very well, except for date in e-mail receipient who is not at the good GMT time for me.
Ie: I make a change in article at 11:23 AM, the time shown on my article is same but the e-mail receipient shows 04:23 PM.

Where can I make a change in your script for clear this issue ?

Thanks and sorry for my english...

Denis Fontaine, Québec, Canada
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-06 13:42
Hi, free French Quebec citizen (-:

Try this version:
http://gruz.org.ua/images/stories/files/notifyarticlesubmit/j15_plg_content_notifyarticlesubmit_2_1_0_dev_build_16.zip
Reply | Reply with quote | Quote
 
 
0 # mike 2012-03-10 04:58
It's really a great plugin, and it helps my publisher a lot. Just one thing is i want every notification will be sent in any case. So, what i can do to remove the notification box (showing Yes/ No) in the editorial window. Thank you!
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-10 05:21
In J1.5 you can just disable NotifyArticleSu bmit system plugin. In J1.7+ there is currently no way. I thought to quickly add an option to show the the notification switch in the articles, but I thought of the next request I'll recieve - allow the notification switch to be shown for certain groups. I.e. SuperAdmins see it, but Publishers don't. So I add this to the TODO list to implement later.
Reply | Reply with quote | Quote
 
 
+1 # gruz 2012-03-10 16:09
Check the latest dev version.
http://gruz.org.ua/images/stories/files/notifyarticlesubmit/j17j25_plg_content_notifyarticlesubmit_2_1_2_dev_build_2.zip

There are new options there:
http://view.xscreenshot.com/fb05670c5b9537297d2c19667c5901c3
Reply | Reply with quote | Quote
 
 
0 # Tommyk 2012-03-11 13:01
Hi,

Great features but I can't get it to work. When I set "Allow temporary disable notifications?" to no there is no mail sent. To get mail sent for now, it has to be set to Yes and the article writer have to leave it on yes when publishing. Not as expected. :D
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-12 17:50
It uses the article personall swicth status disregarding the main options switch status. Will be fixed in the next release.
Reply | Reply with quote | Quote
 
 
0 # Mike 2012-03-12 23:50
Thank you very much for your prompt support!
Reply | Reply with quote | Quote
 
 
0 # Sota 2012-03-11 12:03
Hello and congratulations for this great plugin.

I like the new option to choose if a notification must be send. But maybe this option can be hide if the categorie is not selected for notifications.

Another thing is the integration with a private messaging system because mails are see as spams by my provider.
I had a little code to add pm with uddeim but it's dirty, no checks , ...

Do you plan to work on it ?

Sorry for my poor english and thanks again.
Reply | Reply with quote | Quote
 
 
0 # Jonathan Smith 2012-03-12 17:07
Hi
I would like to change the title of the email sent as a notification. Is this possible. I can edit the code if you point me in the right direction.
Thank You
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-12 17:14
You can change, but any update will override it. And updates are often now.

plugins/content/notifyarticlesubmit/notifyarticlesubmit.php

Code:function buildMail

There is a TODO task to make a custom mailbody (and surely subject), but I have not managed to find time for it. If you can donate I can find some time for this feature in the coming 2-3 days.
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-12 17:09
Hi, everyone.
I need your opinion ASAP.

I want to remove the "Regular Users" section. The difference between "Regular Users" and "Admin Users" is logical, they allow to have separate rules for two logical groups of users. But now this can be achieved by creating a clone plugin. So as many logical groups as needed is possible. And the "regular/admin" sections make users confused, as for me.

The only thing I believe can stop me is that some users may have "Regular users" section working now. So they will have to manually move the settings to a clone plugin. It's even possible to make automatic install a clone plugin and to move the "Regular user" settings to it, but I'm afraid this will still confuse the users who use this section. It would be easier for me to just remove the section and forget and to add those users some headeach.

As a result, if remove the section, the settings will become more clear, the code logic will be simplified.

What do you think?

http://view.xscreenshot.com/dd13c415b05ab2e06afb1608470841c6
Reply | Reply with quote | Quote
 
 
0 # Sota 2012-03-12 17:24
I think it's not a problem to remove the "Regular Users" section, If the code logic will be simplified.
It's not really difficult to move manually the settings...
And what do you think to hide the new option if the categories are not selected for notifications ?
And to add an integration with uddeim or a pm sytem ?
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-12 17:29
Quoting Sota:

And what do you think to hide the new option if the categories are not selected for notifications ?
And to add an integration with uddeim or a pm sytem ?


1. My question is because I'm working on the "hide new option" during the last days.
2. Why UddieIm? why not joomla internal messages? I think it's possible and easy to implement, but it's not in a priority now.
Reply | Reply with quote | Quote
 
 
0 # Sota 2012-03-12 17:38
OK for the first question :lol:
Uddeim because i don't give access to backend and my workflow is in frontend.
Perhaps it's not right, but i believe that only administrator(s ) can use the joomla internal messages. I know it's easy to implement, i did it but very (too) quickly, so i must add it in your code at each update. I understand it's not a priority.
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-12 17:45
Quoting Sota:
I know it's easy to implement, i did it but very (too) quickly, so i must add it in your code at each update.


If you have a code to be add please share it.
Reply | Reply with quote | Quote
 
 
0 # Sota 2012-03-12 18:03
Quoting gruz:

If you have a code to be add please share it.

Of course, but it's dirty:

In _send_mails function:
$mail =$this->buildMail($user,$forUsers);
if (!$mail) {
continue;
}
//ADDON UDDEIM
$db =&JFactory::getDBO();
$fromid=JFactory::getUser()->id;
$toid=$value['id'];
$message=addslashes($mail['body']);
$date=time();
$sql = "INSERT INTO #__uddeim (fromid, toid, replyid, message, datum) VALUES (".
(int)$fromid.", ".(int)$toid.", ".(int)$replyid .", '".$message."',".$date.")";
$db->setQuery($sql);
if (!$db->query()) {
die("SQL error when attempting to save a message" . $database->stderr(true));
}
//END ADDON UDDEIM

if ($mail['email']){
$mailer =& JFactory::getMa iler();
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-12 18:13
Thanks.
I cannot find any API documentation for the UddieIM. Any documentation.. . I.e. I need to check if the extension is installed and enabled. Surely I can find it out myself, but I don't want to lose time if the answere is published somewhere.
Have you met any documentation on the intergration?
Does Kunena and other do it in the same way?
Reply | Reply with quote | Quote
 
 
0 # Sota 2012-03-12 18:21
Honnestly i didn't see any documentation for integration, or i didn't take time and that's why i did it like that.
I can try to search.

Thanks to you.
Reply | Reply with quote | Quote
 
 
0 # Sota 2012-03-12 18:55
In kunena they check like that.

$path = JPATH_SITE."/components/com_uddeim/uddeim.api.php";
if (!is_file ( $path )) return;
Reply | Reply with quote | Quote
 
 
0 # Sota 2012-03-12 20:36
Ok so i tried to make it a little cleaner

I use the same method as Kunena to check if Uddeim is installed but i don't see if they check if it is enabled...
I use the uddeimapi to send message.

$path = JPATH_SITE."/components/com_uddeim/uddeim.api.php";
if (is_file ( $path ))
{
$fromid=JFactory::getUser()->id; $toid=$value['id']; $message=$mail['body'];
include_once ($path);
$uddeIMAPI= new uddeIMAPI();
$uddeIMAPI->sendNewMessage($fromid,$toid,$message);
}

Maybe it would be useful to be able to choose whether we want to use uddeim, email or both.

Thanks
Reply | Reply with quote | Quote
 
 
0 # Jake 2012-03-15 18:48
Great plugin.
But there is a problem when using it with a multi-language site.
I have 8 different languages setup and I have multiple categories with different languages set. If I'm logged in to the frontend with English set and I try to submit an article with a category that has a different language than English, I get this error message:

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

And in the log file:
[warn] [client 10.0.0.11] mod_fcgid: stderr: PHP Fatal error: Call to a member function hasParent() on a non-object in notifyarticlesu bmit.php on line 1234


Running Joomla 2.5.2
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-15 19:13
Thanks for the bug report!

I have no time to fix it today or tomorrow, but I'll do my best to fix it ASAP. I've made some changes in the code, but cannot finish the new version as I have to work on a commercial project now.

Can you provide me an akeebabackup of your web-site so I can test it at real data? I don't know how to use multilanguage in J2.5 yet.

The problem is here:
Code: $cat = JCategories::getInstance('Content',$options)->get($this->article->catid);

$this->categoryTree = array();
while ($cat->hasParent()) {
array_unshift($this->categoryTree,$cat->title);
$cat = $cat->getParent();
}

On some reason it doesn't get proper JCategorie instance... You may add check if the $cat is an object of JCategories. This will fix the critical error, but I think the category path will be broken in the mails.
Reply | Reply with quote | Quote
 
 
0 # Jacob Berggren 2012-03-15 22:58
I forgot to mention that it only happens on sub-categories.

Here is an akeeba backup of the test site I setup just for this demo.
http://goo.gl/ofE75
Username: admin
Password: admin

When you login to the frontend there is a menu item called 'Create Article'. Fill in the form with the category set to 'Test2' and you will see the error message.
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-16 01:25
Downloaded. I'll have a look but in a couple of days.
Reply | Reply with quote | Quote
 
 
0 # Jake 2012-03-21 11:51
Did you see the error message?
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-21 12:00
No, sorry. I don't have an opportunity to pay attention to NotifyArticleSu bmit. I remeber.
Reply | Reply with quote | Quote
 
 
0 # apveenstra 2012-03-21 18:11
HI,

First of all, thanks for this excellent plug-in!

I was wondering if there is a way to hide the 'Notify? Yes/No" switch from the front end when editing an article.

Alexander
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-21 18:15
This is half-solved in the new half-ready development release. I have no time to finish it and release. You must wait.
Reply | Reply with quote | Quote
 
 
0 # Jake 2012-03-26 11:19
Bug: I noticed that when creating an article with the state set to 'Published', the plugin clones writes 'This article is not yet published.' in the e-mails. The main plugin works as it should and writes 'This article was published.'.

Feature request: If state is set to published, do not send notification.
Reply | Reply with quote | Quote
 
 
0 # Jake 2012-03-26 12:17
Some additional info regarding the bug.
If the user creating the article is in the group that is going to be notified then it does say 'This article is published.' in that users e-mail. The 'not published' message will show for everyone else in that group.
The option notify author is not enabled.
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-26 12:56
Thanks for the report.
Reply | Reply with quote | Quote
 
 
0 # Dario Cdj 2012-03-27 13:56
:cry: why your great plugin can't notify weblinks and phoca gallery new upload :cry:, i just need that admin will be notified on new weblinks or new photo....
Can't edit code to trigger it ?
Thanks Dario
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-27 14:11
http://gruz.org.ua/en/about-joomla/29-joomla-extensions/22-notifyarticlesubmit-get-email-notification-when-an-article-is-added-or-changed.html#comment-216
Reply | Reply with quote | Quote
 
 
0 # Tee shot 2012-03-28 12:48
I can not make a plugin that works correctly.
I chose "new only"
Notify in the actions performed by users, I checked the group users "super users" in specific user "all", it notifies all actions and not just new messages?

After I chose two categories, in groups I chose users registred and super users, in specific users "all" but the members do not receive the emails.
What am I doing wrong?

thank
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-28 12:51
I'm sorry, I cannot check now. I will answer as soon I have time to spent on NotifyArticleSu bmit support and development.
Reply | Reply with quote | Quote
 
 
0 # Tee shot 2012-03-28 21:34
hi,
Ok no problem. I redid an article and emails are gone. I would just like to understand the difference between notifications. As an admin I get several emails each time. Normally anyone can create an article and share the mail, or must be given rights?
Thank
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-03-28 22:51
I've not caught the question. "For regular users" group will be removed in the next version. You should not recieve duplicated mails as admin if not using clones.
Reply | Reply with quote | Quote
 
 
0 # brae 2012-04-17 17:56
Thank you for the great plugin! I was looking to see if there is a way to disable the display of "Notify? Yes No" on the article editor in the Front End. We do not want our users to have the option of sending the notification or not, as we use it to track changes. Thank you!
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-04-17 19:05
It's half done, just need time to finish the next release with this and some other changes/fixes and cannot find time. :-(
Reply | Reply with quote | Quote
 
 
0 # polygones 2012-04-25 13:50
Hi there,

Super nice and useful plugin! Thanks a lot!

I am very happy with the current set of features, it's great.

The only thing I wish you may add in a future version is the possibility to define a send for all notifications email. For instance I would like all notification emails to be received as ifsent by "".

Currently the sender is the creator/modifie r. So if I do a modification I get an email from myself. I guess this can cause some client to qualify this as spam.

My usage of this feature would be that I could set filtering rules in my email client using the sender address.


----

Actually I think I may have found a tiny bug: if I sent "Include introtext" to "no", the received email still contains a line saying something like ".... Introtext ....."

This check box doesn't seem to have any actual effect.
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-04-25 14:09
As far as I remember the mails should be send from the joomla web-site usin it's settings. Maybe the reply-to address is set to the user's one, but not the sender. I don't remember quite well, I have not looked at the code for a rather long time.

Introtext - strange, it should work. I will check when continue development. This concernes both issues.
Reply | Reply with quote | Quote
 
 
0 # polygones 2012-04-25 14:45
Hi gruz,
Thanks a lot for the prompt reply.

Don't look further regarding the sender issue. It was on my side indeed. As you pointed out the email is sent using the global joomla settings, and that's fine. They were strangely set on my site and I was confused by the received header, here is an excerpt:
Return-path:
X-Authenticatio n-Warning: imu197.infomani ak.ch: httpd set sender to using -f
To:
From: mysite

The sender is set anyway by using -f, but the "from" was incorrect from my joomla settings.

OK, sorry for the false error detect and thank for pointing me to the faulty setting.

However I confirm that whatever setting I make for "Include introtext", I still get this line in the email (in french locale):

...........Appe rçu du texte d'introduction: ...........

Right after the "you can use this link to edit the article".
Reply | Reply with quote | Quote
 
 
0 # polygones 2012-04-25 14:48
Sorry: some content of the email header excerpt was removed by the comment system since it contained "smaller than" and "larger than". Here it is without them:
Return-path:
X-Authenticatio n-Warning: imu197.infomani ak.ch: httpd set sender to using -f
To:
From: mysite
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-04-25 14:51
So is the sender issue resolved?

I will check the intro text issue, thanks for the report.
Reply | Reply with quote | Quote
 
 
0 # polygones 2012-04-25 15:16
Yes, the send issue is solved, thanks!
Reply | Reply with quote | Quote
 
 
0 # polygones 2012-04-25 15:15
Hi again Gruz,

Sorry, I have another issue which is more annoying. I hope it's not on my side again.

My website is in French, so we used accented letters like éèà, etc. Most of the article contains some of these characters.

The problem is that when receiving a notification, all accented letters are removed from the article full text. However, the accented letters coming from text generated by your plugin, such as the translation of "You just updated an article", or "Article Title" are correct (even the article title itself is correct).

It is only the content of the article which is incorrect.

And by the way: do you remove all article's html on purpose? Would it be possible to leave it as is?
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-04-25 16:23
It shouldn't strip anything. Strange. It's the first report and you are not the first Frech user. Need to check. But cannot pay attention to it now.

HTML is stripped on purpose. Mail clients have poor HTML support. There is no way to simplify an arbitrary HTML code to some code acceptable by mail clients. Besides, often web-site CSS rules play an important role in the appearence of the article. So you'll anyway loose the article styled. So I don't see a way and sense to use HTML in this case.
Reply | Reply with quote | Quote
 
 
0 # polygones 2012-04-25 16:40
Could it be that striping the html also remove the accented letters?

Could you point me approximately in you code where you strip html? I'ld like to try disabling it to see whether my accented letters are back, thanks!

I see your point for stripping html, but in my case I would appreciate to have it anyway. It would be cool if you could add the option not to strip html in a next version some day.
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-04-25 16:50
Code:
if (!class_exists ('html2text') ) { require_once (dirname(__FILE__).DS.'notifyarticlesubmit'.DS.'helpers'.DS.'html2text.php'); }
if ($IncludeIntroText && empty($this->introtext)) {
$h2t = new html2text($this->article->introtext);
// Simply call the get_text() method for the class to convert
// the HTML to the plain text. Store it into the variable.
$this->introtext = $h2t->get_text();
unset ($h2t);
}

if ($IncludeFullText && empty($this->fulltext)) {
// Instantiate a new instance of the class. Passing the string
// variable automatically loads the HTML for you.
$h2t = new html2text($this->article->fulltext);
$h2t->width = 120;
// Simply call the get_text() method for the class to convert
// the HTML to the plain text. Store it into the variable.
$this->fulltext = $h2t->get_text();
unset ($h2t);
}

Reply | Reply with quote | Quote
 
 
0 # polygones 2012-04-26 11:13
Hi,
Thanks. Ok I tried it, and indeed striping the html also strip accented letters :sad:
For instance é is simply removed.

I am wondering how the other french users are doing... Maybe their systems do not use html code for accented letters, but directly use UTF-8 or something like this? I have no idea how I could force my article editor (JoomlaCK) to not use html codes...

By the way, I had not enough time to investigate but there is something strange as far as I can tell:
article->fulltext is always an empty string and
$IncludeFullTex t is always 0
$IncludeIntroText is always 1
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-04-26 11:18
Maybe the stripping HTML class uses some PHP functions which work by default in different ways at different servers. I.e. for your installation you need to set the encoding as a parameter to some PHP functions, but at other servers, which work in other locales, the work by default. This is a suggestion.

Current code is heavily outdated as I have half-ready new version. So I don't want to pay attention to the old code. And have no opportunity to finish the new one.
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-04-26 11:24
http://www.chuggnutt.com/html2text

Here is the class which strips HTML.

I will need to work at your server later to find out the problem. But note, that I use cyrillic, which should be totally stripped, as it has not latin characters. But it works. So I think it's something specific with non-common installation at your server.
Reply | Reply with quote | Quote
 
 
0 # polygones 2012-04-26 11:40
Hi Gruz,

Thanks. The key point is how your editor handle non standard character (accented or cyrillic): some will directly use UTF-8 code, while other will use the corresponding html entity.

1) I found an optin to force JoomlaCK to keep accented letters as is. If I type a 'é' it will keep it as is, instead of putting é in the article body. That correct the symptom even if it is said to be not W3C compliant.

2) I googled and other guys had issue with html2txt striping é and the like. One guy proposed a fix to html2text which I may apply: http://www.developpez.net/forums/d796933/php/bibliotheques-frameworks/conserver-accents-class-html2text-inc/

Basically the idea is to tell the engine how to convert accented letter html codes.

So I guess I am fine on my side. At least now you know the problem.
Thanks a lot!
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-04-26 13:08
I'll keep this comment till I fix it.
Thanks for the info!
Reply | Reply with quote | Quote
 
 
0 # iherbak 2012-04-30 23:15
Hi!

First of all, thanks for the good plugin and a keep up the good work!

I'm using the plugin, but after some point it just stopped working. What i've found so far (maybe could help):

- If post as a super user i got the email containing the details (in my superuser mail account), and a system message

- Posting as a registered user not causing email sending with the details i got only a System message (in my superuser mail account).

- After some debugging the code fails when looking for $data->attribs in methods onAfterContentS ave and onContentPrepar eForm as the value is null (posting as registered user)

Using jooma 2.5.4, and the latest dev build 2.1.2 dev build 2

Thanks in advance
Istvan
Reply | Reply with quote | Quote
 
 
0 # gruz 2012-05-01 00:27
Thanks.
What do you mean "- Posting as a registered user not causing email sending with the details i got only a System message (in my superuser mail account)."?

What system message?
Reply | Reply with quote | Quote
 

Add comment


Security code
Refresh

Latest news
Popular
Comments

Free template 'Colorfall' by [ Anch ] Gorsk.net Studio. Please, don't remove this hidden copyleft!