Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Furkan A. Posted April 16, 2019 Posted April 16, 2019 Hello, i am currently working on an imprint application, so i have to make sure that the imprint page is always available no matter if the player is not verified, banned or anything else. I only found 2 approaches (which are both not really good): Hook into Application::allowOfflineAccess & Application::allowGuestAccess Page is not available if: Member and/or IP is banned Member must confirm e-mail / be confirmed by admin Member must confirm privacy policy/terms of use IPS is updated (not so important) Hook into Front::init and implement an own display system for my own application and run parent::init for the other applications Works, but i have to use/copy the same display system as the original Front::init and that's not allowed by IPS for copyright reasons In addition I have ~140 lines of code identical to the parent Additionally i found out that the privacy policy is not available when the site is marked as offline in the admin area. Is that right?
bfarber Posted April 17, 2019 Posted April 17, 2019 Privacy policy - I guess it could be debated either way, but that's the way the code is set up for now yes. As for your original question, hook in to \IPS\cms\Application::allowGuestAccess to allow access to anyone, even if they're a guest and otherwise couldn't access, however a member that is banned will still not be able to access. Banning typically means they can't access, period.
Furkan A. Posted April 20, 2019 Author Posted April 20, 2019 Hi bfarber, thank you for your answer. Is there any possibility to add a function to allow access always in new ips versions? German laws require that imprint / privacy policy etc have to be always available.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.