MyBB Community Forums
Theme Select In Welcomeblock - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Theme Select In Welcomeblock (/thread-207244.html)



Theme Select In Welcomeblock - Nicole-Studios - 2017-01-08

Hey there!!

I'm curious to know how to get theme select working in the Header --> Welcomeblock areas. 

I've simply inserted the general variable for theme select but alas it does not show.
{$theme_select}

Any tips on how to get this to work?

Thanks!

http://everfrost-rpg.com/forum/index.php


RE: Theme Select In Welcomeblock - Nicole-Studios - 2017-01-13

Just going to bump this in case someone who knows the answer hasn't seen this.


RE: Theme Select In Welcomeblock - doylecc - 2017-01-14

In global.php find this code:


// Are we showing the quick theme selection box?
$theme_select = $theme_options = '';
if($mybb->settings['showthemeselect'] != 0)
{
	$theme_options = build_theme_select("theme", $mybb->user['style'], 0, '', false, true);

	if(!empty($theme_options))
	{
		$theme_redirect_url = get_current_location(true, 'theme');
		eval('$theme_select = "'.$templates->get('footer_themeselect').'";');
	}
}


move the whole code upwards and paste it below this line:


$plugins->run_hooks('global_intermediate');



RE: Theme Select In Welcomeblock - Nicole-Studios - 2017-01-16

Works thanks!! Smile