Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Read-only Mode for the Userprofile Plugin

  • Martin Herzhauser
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 hours 26 minutes ago - 8 hours 23 minutes ago #180295 by Martin Herzhauser
Read-only Mode for the Userprofile Plugin was created by Martin Herzhauser
Hi,

I would like to use the Userprofile plugin to prepopulate event registration forms with existing Joomla user profile data. However, any changes made during event registration should not be written back to the Joomla user profile.

This is particularly important when a registered user submits event registrations on behalf of other participants. The original user profile data should remain unchanged.

Currently, I achieve this by adding a return; statement at the beginning of the onAfterStoreRegistrant() method in the following file:

plugins/eventbooking/userprofile/src/Extension/UserProfile.php

Unfortunately, this modification is overwritten whenever Events Booking is updated.

Would it be possible to introduce an additional configuration option in the Userprofile plugin, such as:

Synchronize registration data back to Joomla user profile: Yes / No

This would allow administrators to use the plugin in a read-only mode without modifying any core files.

I believe this would be a useful feature for other Events Booking customers as well.

Thank you very much for your excellent support and for considering this feature request.

Best regards,
Martin
Last edit: 8 hours 23 minutes ago by Martin Herzhauser.

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

More
1 hour 53 minutes ago #180296 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Read-only Mode for the Userprofile Plugin
Hi

Please install this attached plugin. Then go to System -> Plugins, find the plugin Events Booking - Userprofile, click on it to edit, set parameter Save Registration Data To User Profile to No and it will work as you want

I will include this plugin to future releases of Events Booking, so you do not have to worry about it being lost on update

Regards,

Tuan

 

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

Moderators: Tuan Pham Ngoc