Alternative upload method for event attachments

  • davide
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 2 months ago #110262 by davide
Hi Staff,
from the frontend submission event is not possible to limit the size of the upload or crop automatically the image uploaded.
For bypass this situation (temporarily until Event Booking add this feature) I would like to hook JFUploader to the upload button on the frontend form.

Could you please support for these changes or alternatively give me the file name to change?

Many thanks!

Davide

cosmogoniA
n o p r o v a r e n o f a r e o n o n f a r e n o n c e p r o v a r e

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

More
7 years 2 months ago #110263 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Alternative upload method for event attachments
Hi Davide

Unfortunately, I could not support this change. If you want to change it, you will have to change the layout of upload form yourself. The file is:

1. If you use Simple submit event form, then the file is components/com_eventbooking/view/event/tmpl/simple.php

2. If you use standard submit event form, then the file is components/com_eventbooking/view/event/tmpl/form_general.php

You might have to edit code to save the uploaded image (I don't know how JFUploader handles it) in the file administrator/components/com_eventbooking/model/common/event.php , method uploadAndResizeImage if needed

Tuan

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

  • davide
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 2 months ago #110273 by davide
Well, I try.
Could you tell me if is Booking Event using the default uploader of Joomla? Or maybe using yours?

Many thanks!

Davide

cosmogoniA
n o p r o v a r e n o f a r e o n o n f a r e n o n c e p r o v a r e

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

More
7 years 2 months ago #110288 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Alternative upload method for event attachments
It uses this folder images/com_eventbooking

Tuan

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

  • davide
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 2 months ago #110318 by davide
Hi Tuan,
I would ask not the path, but if Booking Event use the Joomla default media manager for handle the upload button on components/com_eventbooking/view/event/tmpl/simple.php.
Or if you have build a another one specifically made for Booking Event.

Many thanks again!

Davide

cosmogoniA
n o p r o v a r e n o f a r e o n o n f a r e n o n c e p r o v a r e

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

  • davide
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 2 months ago #110491 by davide
Hi Tuan,
could you answer to my above last question?
Many thanks!

Davide

cosmogoniA
n o p r o v a r e n o f a r e o n o n f a r e n o n c e p r o v a r e

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

More
7 years 2 months ago #110495 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Alternative upload method for event attachments
Hi Davide

At the moment, Events Booking only use Joomla media manager for image upload from administrator area of the site.. I don't have it supported for frontend yet, as I am worry there might be security issue with allow using media manager from frontend of the site

I don't have own method, too, so the only method at the moment is upload images directly (select the image for uploading)

I will try to play with frontend media manage to see whether it is possible to use for upload image from frontend as well, if Yes, I will try to add support for it in the next release 3.3.0 or 3.3.1

Regards

Tuan

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

Moderators: Tuan Pham Ngoc