- Posts: 208
- Thank you received: 1
Question regarding
- Tim Stöhr
- Topic Author
- Offline
- Elite Member
-
Less
More
9 years 4 months ago #90833
by Tim Stöhr
Question regarding was created by Tim Stöhr
Hi Tuan,
I would need your help. I have to set a CB trigger for an event creation showing up on the stream of CB Activity. (See here to know what I am talking about: www.joomlapolis.com/forum/153-profession...-auto-actions#286669 ). I would need to know where in the code I can find the time when the action "SAVE" is done on the event submission front-end so that I can copy and paste the CB API call into it.
Also I would need to know when the event saving is done on the back-end.
Please note that if possible, the CB trigger should not be triggered when the person does an EDIT of the event (although maybe I can set that myself if I use an IF function)
I would need your help. I have to set a CB trigger for an event creation showing up on the stream of CB Activity. (See here to know what I am talking about: www.joomlapolis.com/forum/153-profession...-auto-actions#286669 ). I would need to know where in the code I can find the time when the action "SAVE" is done on the event submission front-end so that I can copy and paste the CB API call into it.
Also I would need to know when the event saving is done on the back-end.
Please note that if possible, the CB trigger should not be triggered when the person does an EDIT of the event (although maybe I can set that myself if I use an IF function)
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 4 months ago #90861
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Question regarding
Hi Tim
I can only give you general instructions, you would have to find a developer to help you to write necessary code if needed:
1. The file which keep the code store event into database is located at administrator/components/com_eventbooking/model/common/event.php, method store
2. To find out event is saved from frontend or backend, you can use this code
Now, you will need to put necessary code to trigger....
Regards,
Tuan
I can only give you general instructions, you would have to find a developer to help you to write necessary code if needed:
1. The file which keep the code store event into database is located at administrator/components/com_eventbooking/model/common/event.php, method store
2. To find out event is saved from frontend or backend, you can use this code
Code:
if (JFactory::getApplication()->isSite())
{
// Event is submitted from frontend
}
else
{
// Event is submitted from backend
}
Now, you will need to put necessary code to trigger....
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Tim Stöhr
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 208
- Thank you received: 1
9 years 3 months ago #91184
by Tim Stöhr
Replied by Tim Stöhr on topic Question regarding triggers
Hi Tuan, I just need to know where I need to put the trigger (I have the code for everything else no worries).
I need to put this trigger in. It needs to triggered at the time when the person presses on SAVE in the event creation. Can you give me any line where the trigger should be built in?
I need to put this trigger in. It needs to triggered at the time when the person presses on SAVE in the event creation. Can you give me any line where the trigger should be built in?
Code:
# Trigger for event comments beneath event
$onDetailedEventLoadVars = $_PLUGINS->trigger( 'onDetailedEventLoad', array( $item->id, $item->published, $item->creator_name, $item->category_id));
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 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.