Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Melonking on March 18, 2023, 12:51:55 PM

Title: Select theme via URL when logged out?
Post by: Melonking on March 18, 2023, 12:51:55 PM
Is it possible to provide people with a URL that will load a particular theme instead of the regular default theme?

A small number of my forums users need to use an accessibility-enhanced theme; it works great when they are logged in, but when they log out or are visiting the forum when their login has expired; they are stuck with the default theme which causes issues.

Is there a way to select the theme via URL when logged out? Something like https://forum.mysite.com/theme=2 ?
This would allow users to bookmark the theme of their choice to use for logging in.
Title: Re: Select theme via URL when logged out?
Post by: Aleksi "Lex" Kilpinen on March 18, 2023, 12:53:46 PM
If you allow users to select their theme, then /index.php?theme=X where X is the theme ID should work.
Title: Re: Select theme via URL when logged out?
Post by: Melonking on March 18, 2023, 12:55:10 PM
Oh wow! My example idea was almost exactly the real code  ;D  Thank you; I kinda expected the answer to be a resounding no!!