- Posts: 5
- Thank you received: 0
How to remove 'unPublish' Button
- Gary Boulter
- Topic Author
- Offline
- New Member
-
Less
More
9 years 6 months ago #72035
by Gary Boulter
How to remove 'unPublish' Button was created by Gary Boulter
Hi, I have some event owners who accidentally Click the 'unpublish' button from there event details. Is there a way I can hide this button.
Thanks
Gary
Thanks
Gary
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 6 months ago #72093
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to remove 'unPublish' Button
Hi Gary
Events Booking allow the event creators to publish / unpublish the event by default, so we could not remove it unless editing the code
You can open the file components/com_eventbooking/helper/helper.php, find the method canChangeEventStatus, add this command to the beginning of the method and it should work well:
return false;
If you don't know how to edit code, you can submit a support ticket sending us super admin account of your site. We are going to check and make it works for you
Regards,
Tuan
Events Booking allow the event creators to publish / unpublish the event by default, so we could not remove it unless editing the code
You can open the file components/com_eventbooking/helper/helper.php, find the method canChangeEventStatus, add this command to the beginning of the method and it should work well:
return false;
If you don't know how to edit code, you can submit a support ticket sending us super admin account of your site. We are going to check and make it works for you
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.