SimplePortal

Customization => Themes and Graphics => Topic started by: cinimod on December 08, 2013, 11:52:06 AM

Title: Theme Selector
Post by: cinimod on December 08, 2013, 11:52:06 AM
I was wondering if there was a way to remove the "Forum Default" option on the Theme block?
Title: Re: Theme Selector
Post by: Burke Knight on December 08, 2013, 04:16:23 PM
Forum Default only reverts the member to whatever theme is set for the forum default.
It is not to change to the default theme for SMF.
Title: Re: Theme Selector
Post by: cinimod on December 09, 2013, 05:16:56 AM
I understand that but this means that the same theme is repeated, "Forum Default" and the actual theme name. So selecting either would be the same theme and would be pointless having both
Title: Re: Theme Selector
Post by: Burke Knight on December 09, 2013, 07:50:17 AM
Not really.
Do not forget, most members may forget which is set as forum default, andmay wish the go back to it, so if the forum default gets changed to a new theme, it would change theirs.

If they set to forum default, it sets them back to being changed automatically to whatever theme the admin sets as forum default.

That is why it is listed.
Title: Re: Theme Selector
Post by: [SiNaN] on December 11, 2013, 09:04:12 AM
Sources/PortalBlocks.php

Code: (Find) [Select]
foreach ($available_themes as $theme)
echo '
<option value="', $theme['id'], '"', $theme['selected'] ? ' selected="selected"' : '', '>', $theme['name'], '</option>';

Code: (Replace) [Select]
foreach ($available_themes as $id => $theme)
{
if ($id == -1)
continue;

echo '
<option value="', $theme['id'], '"', $theme['selected'] ? ' selected="selected"' : '', '>', $theme['name'], '</option>';
}
SimplePortal 2.3.8 © 2008-2024, SimplePortal