Identifying the currently selected/loaded theme id

Started by Melonking, December 10, 2024, 03:40:46 PM

Previous topic - Next topic

Melonking

I'm having a hard time finding a way to accurately identify the currently loaded theme id. I have found that "$context['user']['theme_id']" is reliable for fetching the default theme that a user has selected; however if someone quick changes theme with the "?theme=4" parameter it will not reflect that; I have not been able to find a variable that shows what the actual current theme id is.

There must be one out there, can you help me find it?

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

Melonking

Quote from: Diego Andrés on December 10, 2024, 06:40:39 PMDid you try with $settings['theme_id'] ?

Ah that's perfect, I always seem to struggle on the simple stuff! Works great  ;D

Advertisement: