już robiłem coś takiego kiedyś, jeśli ma być tylko jeden taki styl to nawet nic przerabiać za bardzo nie trzeba
w functions_select.php
znajdx
Kod:
//
// Pick a timezone
//
wcześniej dodaj
Kod:
function style_select_spec($default_style, $select_name = "style", $dirname = "templates")
{
global $db, $lang;
$sql = "SELECT themes_id, style_name
FROM " . THEMES_TABLE . "
WHERE style_name != 'subSilver'
ORDER BY template_name, themes_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql);
}
$style_select = '<select name="' . $select_name . '">';
while ( $row = $db->sql_fetchrow($result) )
{
$selected = ( $row['themes_id'] == $default_style ) ? ' selected="selected"' : '';
$style_select .= '<option value="' . $row['themes_id'] . '"' . $selected . '>' . $row['style_name'] . '</option>';
}
$style_select .= "</select>";
return $style_select;
}
a w usercp_register.php
znajdx
Kod:
'STYLE_SELECT' => style_select($user_style, 'style'),
zmien na
Kod:
'STYLE_SELECT' => style_select_spec($user_style, 'style'),
w miejsce subSilver należy wpisać nazwę 'ukrytego' stylu, jeśli ma być ich więcej to trzeba tylko leciutko przerobić ale to powiem jak będziesz chciał
AIFM [1%] - kiedyś powstanie