- Posts: 56
- Thank you received: 0
remove editing abilities Registration History page
- chris
- Topic Author
- Offline
- Senior Member
-
Less
More
11 years 5 months ago - 11 years 5 months ago #50504
by chris
remove editing abilities Registration History page was created by chris
Hi -
Is it possible to remove editing capabilities on the Registration History page in Event booking 1.6.6? I want registrants to see their history but I don't want them to be able to edit the data in the history. I don't see an obvious setting for this and I don't have permissions allowed for editing for this group. Is there some setting I'm missing? I know I could modify the html template and make an override to remove the link but I know that this is not the really right way to prevent access. Thanks!
Is it possible to remove editing capabilities on the Registration History page in Event booking 1.6.6? I want registrants to see their history but I don't want them to be able to edit the data in the history. I don't see an obvious setting for this and I don't have permissions allowed for editing for this group. Is there some setting I'm missing? I know I could modify the html template and make an override to remove the link but I know that this is not the really right way to prevent access. Thanks!
Last edit: 11 years 5 months ago by chris.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 5 months ago #50515
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic remove editing abilities Registration History page
Hi Chris
Unfortunately, we don't have any settings for it. Maybe you can edit the code to remove the save button ? I think it would solve the issue.
Please open the file components/com_eventbooking/views/registrant/tmpl/default.php and you should see the button and remove it
Tuan
Unfortunately, we don't have any settings for it. Maybe you can edit the code to remove the save button ? I think it would solve the issue.
Please open the file components/com_eventbooking/views/registrant/tmpl/default.php and you should see the button and remove it
Tuan
Please Log in or Create an account to join the conversation.
- nanosplit
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 2
11 years 2 months ago - 11 years 2 months ago #56183
by nanosplit
Replied by nanosplit on topic remove editing abilities Registration History page
I needed the same thing, but removing the button completely also keeps a manager from saving the registrant on the front-end. So I came up with this solution - tested and seems to be working fine but no guarantees.... you'll need to change the $group_id value to whatever group ID (found in backend) you want to be able to see the button - ie: $group_id = 3;
edit components/com_eventbooking/views/registrant/tmpl/default.php
Tested on EB 1.6.9
*Note - this is not upgrade safe...
edit components/com_eventbooking/views/registrant/tmpl/default.php
Code:
<?php
$user = JFactory::getUser();
$group_id = group;
if(in_array($group_id, $user->getAuthorisedGroups())) {
?>
<input type="submit" class="btn btn-primary" name="btnSave" value="<?php echo JText::_('EB_SAVE_REGISTRANT'); ?>" />
<?php
}
?>
Tested on EB 1.6.9
*Note - this is not upgrade safe...
Last edit: 11 years 2 months ago by nanosplit.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 2 months ago #56207
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic remove editing abilities Registration History page
@nanosplit: That's the correct solution. To allow upgrading to future releases, maybe you should use Joomla template override way. Just make com_eventbooking/registrant folder under html folder of your site template, then copy this file to that folder and you will be safe to update to future releases of the extension.
Tuan
Tuan
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.