Event Booking Plugin

  • Arbind Bhagat
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 month 3 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.

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

More
1 month 3 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
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
  • Offline
  • Elite Member
  • Elite Member
More
1 month 3 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