Posted: October 17, 2013 at 10:36 am
|
So here’s a question you probably don’t get every day …. Thanks. |
Hi eDee, Are you testing this by logging into an account with the Role set to “Event Manager”? It will still show for anyone with Admin rights, even if you set that option to No. |
|
|
Thanks, I’ve created a bug ticket, found the fix for it, added the fix to your demoee.org site, and submitted the fix onto the ticket for the 3.1.37 release. For the 3.1.36 release, you can add it manually by opening the file includes/admin-files/event-management/new_event_post.php and adding the following to the top of the file: <?php if (function_exists('espresso_member_data')) { global $espresso_manager; $is_admin = (espresso_member_data('role') == "administrator" || espresso_member_data('role') =='espresso_event_admin')? true:false; if ($espresso_manager['event_manager_create_post'] == 'N' && $is_admin == false){ return; } } ?> Note: if copy and pasting from here, be careful because the forum software will include the line numbers above in your paste. You’ll have to manually remove them after you paste, or copy and paste one line at a time. Thanks. |
|
Thank you, very much appreciate it. I will attempt that now on our demo site. However there are other options we’ll need to remove: Even though Staff Members are not allowed those permissions or roles, won’t those still appear? I need to know which .php page I’ll need to comment those out. We may use them in the future, but for now we want it a bit more simplified. Thanks again |
|
I don’t think I can change it because I’m running a test drive through your sever. I don’t have access to those files. |
|
Hi, Ideally, we would prefer it if the core files were not modified 🙂 The two files that would contain most of the boxes are event-espresso/includes/event-management/add_new_event.php and edit_event.php |
|
Hey Dean, |
|
Yes sometimes it is necessary to tweak the code, while we try to be as flexible as possible we can never meet every need. The templates are aimed to keep core edits reduced, but if you need edits like changing the admin side of things, they may be needed. If I find a way to do it without core edits, i’ll let you know. I like to use the My Custom CSS plugin for over riding the CSS, it keeps it separate so updates dont affect it. |
Another option would be to create hooks and/or filters for the sections or settings that are not to be seen by your users. Then you can send us the code to for review for addition into a later version. |
|
The support post ‘Comment Out Options in Event Overview’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.