Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
WP V0RT3X Posted February 16, 2020 Posted February 16, 2020 Good morning everybody, what I am trying to do is, I want to assign a theme to an application. So when I go to page xy, the theme changes to ID2 and when I go back to the forum or whatever, it automatically switches back to the standard theme, for example ID1. Usually this is no problem and works fine when I simply add \IPS\Theme::switchTheme(2); to the Application.php, but in this case it's not possible, because the file is cubed. I already tried and searched the forums but sadly didn't get it to work properly yet. Don't know if it's the conditional (\IPS\Dispatcher::i()->application->directory === 'theapp') or an issue with my hook settings at all. Would be great, if someboy could help me out with this :) Best regards
Recommended Posts
Archived
This topic is now archived and is closed to further replies.