SimplePortal
Customization => Themes and Graphics => Topic started 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?
-
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.
-
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
-
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.
-
Sources/PortalBlocks.php
foreach ($available_themes as $theme)
echo '
<option value="', $theme['id'], '"', $theme['selected'] ? ' selected="selected"' : '', '>', $theme['name'], '</option>';
foreach ($available_themes as $id => $theme)
{
if ($id == -1)
continue;
echo '
<option value="', $theme['id'], '"', $theme['selected'] ? ' selected="selected"' : '', '>', $theme['name'], '</option>';
}