Is it possible to email an up-loader on receiving of a file

Phoca Download - download manager
bigdave
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Aug 2015, 21:16

Is it possible to email an up-loader on receiving of a file

Post by bigdave »

This is my first post.
I'm using your product Phoca Download in my educational website and so far have found it to be a great solution.
My question is "Is it possible when an up-loader uploads their assessment file to the website to email that up-loader that he/her have been successful ?"
christine
Phoca Hero
Phoca Hero
Posts: 2857
Joined: 28 Nov 2010, 17:20

Re: Is it possible to email an up-loader on receiving of a f

Post by christine »

Hi,
welcome to the forum!

Could be this a little help? https://www.phoca.cz/documents/17-phoca- ... e-joomla-3
Section: Uploads

regards, Christine
bigdave
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Aug 2015, 21:16

Re: Is it possible to email an up-loader on receiving of a f

Post by bigdave »

hi Christine,
Thanks for the heads up. I had look at the options page as you suggested but I noticed I am only able to select one user for the email notification for all uploads.
I am missing the point, is there an option for current session user?

Regards

Dave
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Is it possible to email an up-loader on receiving of a f

Post by Jan »

Hi, yes, mostly you select an administrator who will get email when someone uploads a file. To add more users there, this needs to be customized in the code :-(

Jan
If you find Phoca extensions useful, please support the project
bigdave
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Aug 2015, 21:16

Re: Is it possible to email an up-loader on receiving of a f

Post by bigdave »

Thanks Jan,
I imagine that Phcoa has taken the 'MVC' approach in developing their down-loader module, can any one point me to the correct controller file/s, where I could possible try to develop some customised code as Jan has kindly suggested.

Dave
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Is it possible to email an up-loader on receiving of a f

Post by Jan »

Hi, I think, the easiest way is to hardcode the email addresses here:
administrator\components\com_phocadownload\libraries\phocadownload\mail\mail.php

Jan
If you find Phoca extensions useful, please support the project
bigdave
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Aug 2015, 21:16

Re: Is it possible to email an up-loader on receiving of a f

Post by bigdave »

Thanks Jan,

Sorry, I couldn't find that path (administrator\components\com_phocadownload\libraries\phocadownload\mail\mail.php) that you mention in your post, but I also forgot to mention I've installed Version 2.1.9 of Phoca.Is it in a different path?

Regards

Dave
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Is it possible to email an up-loader on receiving of a f

Post by Jan »

Hi, yes, in old version of 2.1.9, the mail function in in different file.
administrator/components/com_phocadownload/helpers/phocadownload.php

Jan
If you find Phoca extensions useful, please support the project
Post Reply