- Posts: 148
- Thank you received: 4
Issue with Backend Edit on Event Image
- LAC Webadmin
- Topic Author
- Offline
- Premium Member
-
Less
More
3 years 2 months ago #149326
by LAC Webadmin
Issue with Backend Edit on Event Image was created by LAC Webadmin
Hi Tuan,
I found an issue with the code in the event image when editing in the backend. The code under General tab is:
By default, the plugin for StipEasyImage library is not installed and I did not enable EB plugin for StipEasyImage. So the code above executes the else statement loading Joomla mediainput.
The problem with this is in the frontend, the form is using $this->item->thumb instead of the $this->item->image and the path in the front end where to save the file is hard coded somewhere. It seems to save the image in /images/com_eventbooking. Whereas, in the backend, since it is using Joomla mediainput it will default to /images.
The second issue in the backend is, using mediainput, the delete button in Joomla media input layout does not delete the file but rather delete the media selected. In the frontend, there is a checkbox to delete the thumb image.
If I may suggest, please add a configuration settings for image path. While on it please also include the path for attachment so site administrator can choose where to put event files and images. You can set the default to /media/com_eventbooking. Currently, the thumb image are generated and save under /media/com_eventbooking/thumbs but the large image is in /images/com_eventbooking. Why does it have to be separated?
This might not be an issue for websites that only have 1 person that manages everything but for us with multiple departments managing their own content and multiple event creators, as a website administrator I would like all of event images and files uploaded to the same folder.
I hope you'll consider adding a media configuration settings for event images and attachments.
Thanks,
Jackson
I found an issue with the code in the event image when editing in the backend. The code under General tab is:
Code:
if ($this->config->get('bes_show_thumb_image', 1))
{
if (EventbookingHelper::useStipEasyImage())
{
echo EventbookingHelperHtml::getMediaInput($this->item->image, 'image');
}
else
{
?>
<div class="control-group">
<div class="control-label"><?php echo Text::_('EB_IMAGE'); ?></div>
<div class="controls">
<?php echo EventbookingHelperHtml::getMediaInput($this->item->image, 'image'); ?>
<input type="hidden" name="thumb" value="<?php echo $this->item->thumb; ?>" />
</div>
</div>
<?php
}
}
By default, the plugin for StipEasyImage library is not installed and I did not enable EB plugin for StipEasyImage. So the code above executes the else statement loading Joomla mediainput.
The problem with this is in the frontend, the form is using $this->item->thumb instead of the $this->item->image and the path in the front end where to save the file is hard coded somewhere. It seems to save the image in /images/com_eventbooking. Whereas, in the backend, since it is using Joomla mediainput it will default to /images.
The second issue in the backend is, using mediainput, the delete button in Joomla media input layout does not delete the file but rather delete the media selected. In the frontend, there is a checkbox to delete the thumb image.
If I may suggest, please add a configuration settings for image path. While on it please also include the path for attachment so site administrator can choose where to put event files and images. You can set the default to /media/com_eventbooking. Currently, the thumb image are generated and save under /media/com_eventbooking/thumbs but the large image is in /images/com_eventbooking. Why does it have to be separated?
This might not be an issue for websites that only have 1 person that manages everything but for us with multiple departments managing their own content and multiple event creators, as a website administrator I would like all of event images and files uploaded to the same folder.
I hope you'll consider adding a media configuration settings for event images and attachments.
Thanks,
Jackson
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
3 years 2 months ago #149331
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Issue with Backend Edit on Event Image
Hi Jackson
It's there for backward compatible purpose only. I made a mistake placing thumb to media/com_eventbooking/thumbs folder and could not change it because there might be template override from old version uses that path for displaying thumbnail and will be broken if we make the change
I really care about backward compatible when making change to the extension code. I will see if I can change it in a backward compatible manner, for now, it will stay there as how it is
Regards,
Tuan
It's there for backward compatible purpose only. I made a mistake placing thumb to media/com_eventbooking/thumbs folder and could not change it because there might be template override from old version uses that path for displaying thumbnail and will be broken if we make the change
I really care about backward compatible when making change to the extension code. I will see if I can change it in a backward compatible manner, for now, it will stay there as how it is
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- LAC Webadmin
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 148
- Thank you received: 4
3 years 2 months ago #149342
by LAC Webadmin
Replied by LAC Webadmin on topic Issue with Backend Edit on Event Image
Hi Tuan,
I guess adding a path setting in the configuration will solve this issue, you can default it to the old path for backward compatibility and for those that are already using EB for a long time. For new install like mine I can change it to whatever folder I want. I think that's an easy solution, right?
If you implement this, please include the attachments as well.
Thanks,
Jackson
I guess adding a path setting in the configuration will solve this issue, you can default it to the old path for backward compatibility and for those that are already using EB for a long time. For new install like mine I can change it to whatever folder I want. I think that's an easy solution, right?
If you implement this, please include the attachments as well.
Thanks,
Jackson
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
3 years 2 months ago #149345
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Issue with Backend Edit on Event Image
I will have to think about it and get back to this later (we are currently have new year holiday and only come back to work on 7th Feb)
Please Log in or Create an account to join the conversation.
- Matt Bechtold
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 0
3 years 1 month ago #150259
by Matt Bechtold
Replied by Matt Bechtold on topic Issue with Backend Edit on Event Image
I would also like to be able to set the default directory for event images. Please consider making this a configuration setting that we can edit in future releases, or you will always be held back by your current user base.
It could be a form field that defaults to the old path, but is changeable for new developers like me. The users I build this site for need things to be as simple as possible -- so the more I can give them that, the easier my day is too.
Would you consider a quick tutorial on how to change it in the code -- ideally in a way that takes upgrades into consideration? Override of some kind maybe?
Thanks for your excellent software and support, Tuan! The more I explore this software, the more I see big potential for how we can use it!
It could be a form field that defaults to the old path, but is changeable for new developers like me. The users I build this site for need things to be as simple as possible -- so the more I can give them that, the easier my day is too.

Would you consider a quick tutorial on how to change it in the code -- ideally in a way that takes upgrades into consideration? Override of some kind maybe?
Thanks for your excellent software and support, Tuan! The more I explore this software, the more I see big potential for how we can use it!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
3 years 1 month ago #150264
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Issue with Backend Edit on Event Image
Hello Matt
Regarding code customization, Events Booking allows overriding code, not only layout code (same with Joomla core template override) but also :
- controller
- model
- view
- static helper methods
See eventbookingdoc.joomservices.com/develop...stomization-override
Regards,
Tuan
Regarding code customization, Events Booking allows overriding code, not only layout code (same with Joomla core template override) but also :
- controller
- model
- view
- static helper methods
See eventbookingdoc.joomservices.com/develop...stomization-override
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.