SMF Support > SMF 2.0.x Support
Theme Selector for 2.0.2
AllanD:
Looked in the mods section and couldn't find anything.
Is there a mod or something to allow members/guests to change themes.
Maybe something in the footer like a dropdown menu.
Old Fossil:
The only way I can think of personally is by using a portal mod.
AllanD:
I was thinking that as well, but really didn't want to have too.
Old Fossil:
There may be another way which I may not know about though.
:)
Antechinus:
You can code it yourself using stuff like this:
--- Code: --- <div class="centertext">
<a href="', $scripturl, '?action=forum;wap2" class="theme_change">Basic WAP2</a>
<hr style="width:95%; height:1px; margin: 5px -5% 3px 0;" />
<a href="', $scripturl, '?action=forum;theme=4" class="theme_change">Default (Desktop)</a>
<a href="', $scripturl, '?action=forum;theme=6" class="theme_change">Mystic Multi Theme</a>
<a href="', $scripturl, '?action=forum;theme=8" class="theme_change">SMF Multicolour</a>
</div>';
--- End code ---
That's session-dependent but by changing the code you can make it permanent. This one does theme variants as a permanent selection:
--- Code: --- // Changer thingy. Permanent selection without changing pages!
if (empty($context['theme_settings']['disable_user_variant']))
echo '
<ul class="changer">
<li class="changerB"><a href="' . $_SERVER['REQUEST_URL'] . (strpos($_SERVER['REQUEST_URL'], '.php?') !== false ? ';' : '?') . 'variant=Bronze" onclick="set_theme_variant(\'Bronze\');"> </a></li>
<li class="changerD"><a href="' . $_SERVER['REQUEST_URL'] . (strpos($_SERVER['REQUEST_URL'], '.php?') !== false ? ';' : '?') . 'variant=Darkside" onclick="set_theme_variant(\'Darkside\');"> </a></li>
<li class="changerE"><a href="' . $_SERVER['REQUEST_URL'] . (strpos($_SERVER['REQUEST_URL'], '.php?') !== false ? ';' : '?') . 'variant=Emerald" onclick="set_theme_variant(\'Emerald\');"> </a></li>
<li class="changerH"><a href="' . $_SERVER['REQUEST_URL'] . (strpos($_SERVER['REQUEST_URL'], '.php?') !== false ? ';' : '?') . 'variant=Hellfire" onclick="set_theme_variant(\'Hellfire\');"> </a></li>
<li class="changerJ"><a href="' . $_SERVER['REQUEST_URL'] . (strpos($_SERVER['REQUEST_URL'], '.php?') !== false ? ';' : '?') . 'variant=Jade" onclick="set_theme_variant(\'Jade\');"> </a></li>
<li class="changerO"><a href="' . $_SERVER['REQUEST_URL'] . (strpos($_SERVER['REQUEST_URL'], '.php?') !== false ? ';' : '?') . 'variant=Opal" onclick="set_theme_variant(\'Opal\');"> </a></li>
<li class="changerP"><a href="' . $_SERVER['REQUEST_URL'] . (strpos($_SERVER['REQUEST_URL'], '.php?') !== false ? ';' : '?') . 'variant=Pinkbitz" onclick="set_theme_variant(\'Pinkbitz\');"> </a></li>
<li class="changerR"><a href="' . $_SERVER['REQUEST_URL'] . (strpos($_SERVER['REQUEST_URL'], '.php?') !== false ? ';' : '?') . 'variant=Ruby" onclick="set_theme_variant(\'Ruby\');"> </a></li>
</ul>';
// Lotsa other stuff blah blah.
--- End code ---
If you want to change actual themes rather than variants, you'd just have to change the url and the onclick to suit.
Navigation
[0] Message Index
[#] Next page
Go to full version