Page 1 of 1

Development of plugin for phoca gallery

Posted: 04 Aug 2013, 08:17
by roland_d_alsace
Hello.

When importing images, I need to record in the mysql tables database, some informations such as tags or description from the EXIF / IPTC tags of each picture.

But, of course, I don't want to hack the phoca gallery code.
So I need to develop a plugin for phocagallery.

Is-it defined, in the phoca gallery component, events (as defined in joomla) such as "onBeforePictureSave" that would allow me to make this kind of plugin ?

Regards.

Re: Development of plugin for phoca gallery

Posted: 05 Aug 2013, 13:16
by Jan
Hi, no for now there are no events :-(

Jan

Re: Development of plugin for phoca gallery

Posted: 05 Aug 2013, 13:48
by roland_d_alsace
Thanks for your repply Jan.

Do you think that it's possible to have some important events for having possibility like describe in my post header ?

I don't want to hack Phoca code.

So if you said no, i prefer to make a little component, that modify the table of phoca, after pictures integration, for filling with the good informations.

Regards.

Re: Development of plugin for phoca gallery

Posted: 05 Aug 2013, 14:20
by Jan
Hi, I have added it to feature request list, but really no idea when I will find time to look at this (this can take a lot of time :-( )

Jan

Re: Development of plugin for gallery -> idem for phoca down

Posted: 08 Aug 2013, 23:19
by roland_d_alsace
Thanks Jan, I thinks that this will be very interesting for extending the capacity of your very good components.

If i can...
...I suggest to make the same in Phoca Download.

For exemple an event when uploading a new file to the server before writing in the db table
(for exemple for making a plugin for copying file to preview for having the ability to directly display a pdf for exemple).

Regards.
Roland_d_alsace

Re: Development of plugin for phoca gallery

Posted: 12 Jul 2015, 23:21
by roland_d_alsace
A small "up" Jan, for having events in your components...
...and to give the abalility to extend them with plugins.

Regards.

Re: Development of plugin for phoca gallery

Posted: 13 Jul 2015, 23:33
by Jan
Hi, for now I am working on implementing loading of external plugins in Phoca Gallery (made by Bernard Gilly), I hope I will finish it soon.

Jan

Re: Development of plugin for phoca gallery

Posted: 16 Jul 2015, 15:50
by roland_d_alsace
Thanks Jan.

What events will be trigger ?

...and for Phocadownload ? (i know i need a lot !)

Regards

Re: Development of plugin for phoca gallery

Posted: 21 Jul 2015, 10:57
by Jan
Events to load external plugins:

onVoteCategory
onCommentCategory
onVoteImage
onCommentImage
onViewCategories
onViewCategory
onViewImage
onUploadAvatar
onStoreNewImage

Jan

Re: Development of plugin for phoca gallery

Posted: 21 Jul 2015, 15:05
by Jan