Apfelstrudel Posted February 4, 2021 Posted February 4, 2021 (edited) Hello, because newsletters are a sensitive topic here in Europe (GDPR) I'd like to hide the entire newsletter block from the notification center. Yes I've already set the manual opt-in method for bulk mails but I also want to remove this block from this center. The main reason is that the checkbox for email notification is enabled by default. How can I hide this box? We do not send any newsletter because we have no additional opt-in process. Thanks in advance for any help. Edited February 4, 2021 by Apfelstrudel
Nathan Explosion Posted February 4, 2021 Posted February 4, 2021 Manage the sidebar, remove the block.
Apfelstrudel Posted February 4, 2021 Author Posted February 4, 2021 Why sidebar? I'm talking about the notification center. https://invisioncommunity.com/notifications/options/
bfarber Posted February 4, 2021 Posted February 4, 2021 You want to remove the permission for the newsletter option? That would require a plugin.
Apfelstrudel Posted February 4, 2021 Author Posted February 4, 2021 I just want to hide the block on the notification center page. CSS would be ok. Otherwise people could think that we sent newsletters (email is checked by default) although they never gave an ok.
Nathan Explosion Posted February 4, 2021 Posted February 4, 2021 (edited) 8 hours ago, Apfelstrudel said: Why sidebar? I'm talking about the notification center. I know you are, hence why I mentioned it. If that isn't what you are talking about then provide a screenshot of it. Edited February 4, 2021 by Nathan Explosion
Apfelstrudel Posted February 4, 2021 Author Posted February 4, 2021 Hi Nathan, I mean this container. Sorry for the misunderstanding. This was my fault because I talked "block". How can I hide it?
Apfelstrudel Posted February 5, 2021 Author Posted February 5, 2021 (edited) Any CSS tweaks for hiding? 😉 Or is there a backend setting to disable the email checkbox within this Newsletter container? For most of the other setting types we can set a default behaviour but not for his newsletter type. Edited February 5, 2021 by Apfelstrudel
Nathan Explosion Posted February 5, 2021 Posted February 5, 2021 16 hours ago, Apfelstrudel said: Hi Nathan, I mean this container. Sorry for the misunderstanding. This was my fault because I talked "block". How can I hide it? No worries - the following will hide it....the '6 indicates the 6th 'row in the list...modify if your entry is a different row in your listing, body[data-pagecontroller="notifications"] ul.ipsDataList_clickableRows li:nth-of-type(6) { display:none; } Apfelstrudel 1
Daniel F Posted February 5, 2021 Posted February 5, 2021 2 minutes ago, Nathan Explosion said: No worries - the following will hide it....the '6 indicates the 6th 'row in the list...modify if your entry is a different row in your listing, body[data-pagecontroller="notifications"] ul.ipsDataList_clickableRows li:nth-of-type(6) { display:none; } Keep in mind that the list can depend based on a users permissions, also any addition plugins or apps could change the options, so instead of using a theme hook for this, I would suggest to hook into the applications/core/extensions/core/Notifications/BulkMails::configOptions method 🙂
Apfelstrudel Posted February 5, 2021 Author Posted February 5, 2021 (edited) Thanks a lot, Nathan. Works pretty fine. In my case it was nth-of-type(7). -- Update: Ok, Daniel is right. This could change the order of the tabs. Edited February 5, 2021 by Apfelstrudel
Solution Nathan Explosion Posted February 5, 2021 Solution Posted February 5, 2021 7 minutes ago, Daniel F said: Keep in mind that the list can depend based on a users permissions, also any addition plugins or apps could change the options, so instead of using a theme hook for this, I would suggest to hook into the applications/core/extensions/core/Notifications/BulkMails::configOptions method 🙂 Yup, it's not ideal but it's the best that could potentially be done from a CSS point of view. @Apfelstrudel a way to see how the CSS can 'go wrong' would be to disable your Messenger....this will then remove it from the notifications list, and Newsletters will have a different numbered row and then something else will be hidden. Here's a plugin which will do it the @Daniel F way 😉 (NE) Remove 'Newsletters' from notification settings.xml Apfelstrudel, CoffeeCake and bfarber 3
Apfelstrudel Posted May 3, 2023 Author Posted May 3, 2023 Hi @Nathan Explosion, the latest forum update brought up that the plugin is not compatible with php8. Do you have a new version? I would really appreciate. 🙂
Nathan Explosion Posted May 3, 2023 Posted May 3, 2023 44 minutes ago, Apfelstrudel said: the latest forum update brought up that the plugin is not compatible with php8 Could you show more about how it is indicating that to you, please?
Nathan Explosion Posted May 3, 2023 Posted May 3, 2023 Thank you - that is more informative. I'll probably merge this into the Box of Tricks app when I have time.
Nathan Explosion Posted May 12, 2023 Posted May 12, 2023 On 5/3/2023 at 8:59 AM, Nathan Explosion said: Thank you - that is more informative. I'll probably merge this into the Box of Tricks app when I have time. it's in the now available v1.3.0 of (NE) Box of Tricks
Recommended Posts