MyBB Community Forums

Full Version: Theme Select In Welcomeblock
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Just going to bump this in case someone who knows the answer hasn't seen this.
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');
Works thanks!! Smile