Page 1 of 1

I want to fire a plugin on Phoda Download new file add

Posted: 24 Jan 2012, 13:32
by Gruz
Hi, Jan.

Does PD register an event on addind a new file? My quick code examination says it doesn't, but I'm not sure.

What I want. I've created a small plugin which notifies users via email when an article is added/published/edited at a web-site. But a user asks the plugin to notify him when a new file is uploaded. So if there were en event like onPhocaDownloadFileEdit or something like this, this request would be possible to fit.

Thanks.

Image

Re: I want to fire a plugin on Phoda Download new file add

Posted: 27 Jan 2012, 20:10
by Jan
Hi, but where this event should be, is it not easier e.g. to check the RSS file?

Re: I want to fire a plugin on Phoda Download new file add

Posted: 27 Jan 2012, 20:19
by Gruz
A plugin runs when something happens. onContentSave, i.e. How would it know when to read RSS then?

http://docs.joomla.org/Supporting_plugi ... _component

Don't care very much about it. It was a question here: http://gruz.org.ua/en/about-joomla/29-j ... omment-216
Not even a feature request.

Thanks.

Image

Re: I want to fire a plugin on Phoda Download new file add

Posted: 30 Jan 2012, 22:12
by Jan
Ok