- Posts: 13
- Thank you received: 0
Injecting PHP code on custom field
- Gio Bas
- Topic Author
- Offline
- New Member
-
Less
More
4 days 27 minutes ago #173039
by Gio Bas
Injecting PHP code on custom field was created by Gio Bas
Hi Tuan,
I hope my message finds you well.
I would like to know if there is a way to inject some custom PHP code into a custom field. If yes, where shall I paste the code? Is there a particular syntax to follow? My goal is to create a script that generate formatted date range to be stored in a hidden custom field for each event, so I can use it in emails or templates.Thank you in advance!!
Kind regards,
Giovanni
I hope my message finds you well.
I would like to know if there is a way to inject some custom PHP code into a custom field. If yes, where shall I paste the code? Is there a particular syntax to follow? My goal is to create a script that generate formatted date range to be stored in a hidden custom field for each event, so I can use it in emails or templates.Thank you in advance!!
Kind regards,
Giovanni
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
4 days 21 minutes ago #173040
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Injecting PHP code on custom field
Sorry Giovanni. The extension, unfortunately, does not support that feature
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Gio Bas
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
3 days 23 hours ago #173041
by Gio Bas
Replied by Gio Bas on topic Injecting PHP code on custom field
Hi Tuan,
Thank you for your return.
In such a case, do you believe there could be any alternative solution to display the event dates on the messages/emails in a more friendly/custom format in a custom field, for example:
- For events on a single day: 3 July 2025
- For events spanning two days in the same month: 3-4 July 2025
- For events across different months: 30 July - 1 August 2025
- For events across different years: 30 December 2025 - 1 January 2026
Thanks in advance!
Kind regards,
Giovanni
Thank you for your return.
In such a case, do you believe there could be any alternative solution to display the event dates on the messages/emails in a more friendly/custom format in a custom field, for example:
- For events on a single day: 3 July 2025
- For events spanning two days in the same month: 3-4 July 2025
- For events across different months: 30 July - 1 August 2025
- For events across different years: 30 December 2025 - 1 January 2026
Thanks in advance!
Kind regards,
Giovanni
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
3 days 19 hours ago #173042
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Injecting PHP code on custom field
Hi Giovanni
The easiest option would be customize the method buildTags in components/com_eventbooking/helper/registration.php to add support for the new tag, and then use that new tag in the email
Keep in mind that the change should be implemented using override so that the change won't be lost when you update to future releases of the extension, see docs.joomdonation.com/eventsbooking/deve...thods-helper-methods
Regards,
Tuan
The easiest option would be customize the method buildTags in components/com_eventbooking/helper/registration.php to add support for the new tag, and then use that new tag in the email
Keep in mind that the change should be implemented using override so that the change won't be lost when you update to future releases of the extension, see docs.joomdonation.com/eventsbooking/deve...thods-helper-methods
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Gio Bas
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
2 days 22 hours ago #173066
by Gio Bas
Replied by Gio Bas on topic Injecting PHP code on custom field
Hi Tuan,
Thank you for your return. I will check on that.
Kind regards!!
Giovanni
Thank you for your return. I will check on that.
Kind regards!!
Giovanni
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
2 days 20 hours ago #173068
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Injecting PHP code on custom field
OK Giovanni. If you have questions or need help, please don't hesitate to ask
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
2 days 20 hours ago #173070
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Injecting PHP code on custom field
OK Giovanni. If you have any questions or need help, please don't hesitate to ask us
Regards,
Tuan
Regards,
Tuan
The following user(s) said Thank You: Gio Bas
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.