- Posts: 220
- Thank you received: 13
Event Booking Plugin
- Arbind Bhagat
- Topic Author
- Away
- Elite Member
-
Less
More
1 year 4 weeks ago #165128
by Arbind Bhagat
Event Booking Plugin was created by Arbind Bhagat
I want to detect when an event is published (it was unpublished before), and do some things based on that. How do I detect if an event, that was unpublished before, is published by an admin?
docs.joomdonation.com/eventsbooking/deve...mentation/dev-plugin doesn't have that information. Please help.
docs.joomdonation.com/eventsbooking/deve...mentation/dev-plugin doesn't have that information. Please help.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
1 year 4 weeks ago #165131
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Booking Plugin
Hi
Try to implement a plugin with this method
- $pks is an array contain IDs of events being published/unpublished
- $value = 0 mean it is being unpublished, 1 mean it is being published
Hope this helps
Tuan
Try to implement a plugin with this method
Code:
public function onEventChangeState($context, $pks, $value)
{
}
- $pks is an array contain IDs of events being published/unpublished
- $value = 0 mean it is being unpublished, 1 mean it is being published
Hope this helps
Tuan
Please Log in or Create an account to join the conversation.
- Arbind Bhagat
- Topic Author
- Away
- Elite Member
-
Less
More
- Posts: 220
- Thank you received: 13
1 year 4 weeks ago #165161
by Arbind Bhagat
Replied by Arbind Bhagat on topic Event Booking Plugin
It worked. Thanks.
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.