|
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:
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.
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.
Next two groups are For regular users and For admin users.
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.
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,
but all superadmins to be informed on any changes (add/modify/publish/unpublish).
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.
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.
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:
Powered by
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:
And edit the settings, which look like a set of lines:
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
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
1.0.6.1
1.0.6
- Fixed deprecated warning
- Fixed russian translation bug
|
Comments
can users suscrib/unsuscr ib their mail to the plugin from the front office of my site?
No.
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?
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.
Btw the receivers are not gmail, they should be?
Doesn't matter. They have other spam filters.
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
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.
http://gruz.org.ua/about-joomla/29-joomla-extensions/22-notifyarticlesubmit-get-email-notification-when-an-article-is-added-or-changed.html?lang=en#h1-8-joomla-15-and-joomfish
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
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.
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?
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
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.
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 ...
Fixed.
Quoting Great film directors:
I do not confirm. Checked - it sends to noone in this case.
Quoting Great film directors:
Fixed.
Check the new version.
Do you know how to set it up with PHOCADOWNLOAD so that users get notify with new uploads??
Thanks a lot for great job
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.
I've asked Jan about it here:
www.phoca.cz/forum/viewtopic.php?f=31&t=17451
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
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.
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
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
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
this cck use com_content but this plugin doesn't work
thanks for your works
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
http://gruz.org.ua/images/stories/files/notifyarticlesubmit/j17j25_plg_content_notifyarticlesubmit_2_1_0_dev_build_16.zip
Thanks for the donation!
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
Try this version:
http://gruz.org.ua/images/stories/files/notifyarticlesubmit/j15_plg_content_notifyarticlesubmit_2_1_0_dev_build_16.zip
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
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.
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.
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
plugins/content/notifyarticlesubmit/notifyarticlesubmit.php
Code:
function buildMailThere 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.
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
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 ?
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.
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.
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();
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?
I can try to search.
Thanks to you.
$path = JPATH_SITE."/components/com_uddeim/uddeim.api.php";
if (!is_file ( $path )) return;
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
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
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.
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.
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
Feature request: If state is set to published, do not send notification.
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.
Can't edit code to trigger it ?
Thanks Dario
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
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
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 "webmaster
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.
Introtext - strange, it should work. I will check when continue development. This concernes both issues.
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 webmaster
To: sylvain
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".
Return-path: webmaster
X-Authenticatio n-Warning: imu197.infomani ak.ch: httpd set sender to webmaster
To: sylvain
From: mysite sylvain
I will check the intro text issue, thanks for the report.
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?
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.
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.
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);
}
Thanks. Ok I tried it, and indeed striping the html also strip accented letters
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
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.
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.
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!
Thanks for the info!
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
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?
RSS feed for comments to this post