All questions about EDocman extension

Upload notification does not work

  • agussol
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 9 months ago #17262 by agussol
Upload notification does not work was created by agussol
Hello Tuan,

The download notification is working, but not the upload notification.
Could you publish a fix please ?

Best regards

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #17307 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Upload notification does not work
Hi

Please give me few more days for working on this item .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • agussol
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 8 months ago #17799 by agussol
Replied by agussol on topic Re: Upload notification does not work
Hello,

Any news about this ?
Thanks

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #18013 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Upload notification does not work
Hi

Finally I have time to come back to this issue. The issue has been fixed and the code has been updated to download package on server. There are two files were modified to add this feature :

components/com_edocman/models/document.php
administrator/components/com_edocman/helpers/edocman.php

Regards,

Tuan
The following user(s) said Thank You: agussol

Please Log in or Create an account to join the conversation.

  • agussol
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 8 months ago - 11 years 8 months ago #18072 by agussol
Replied by agussol on topic Re: Upload notification does not work
Hello,

Thanks, it works.
The only thing I've changed is :
Code:
//if ($isNew && $config->upload_notification) { if ($config->upload_notification) { EdocmanHelper::sendUploadNotificationEmail($table, $config); }

Into components/com_edocman/models/document.php

Because I want to know if an existing document is being updated and not only a new one.
It generate a mail even if the document is not modified (edit, and save directly) but it's okay, like this I may see if users have difficulties.

An improvement should be to have a notification if a document is deleted...

Thanks again.
Nicolas
Last edit: 11 years 8 months ago by agussol.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #18075 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Upload notification does not work
OK, great, thanks for confirming. As Nicolas pointed out, the extension only send notification when someone upload documents, not when they edit document. So if anyone wants to receive notification when users edit document as well, you can use the solution which Nicolas provided. It will work well

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam