Introducem in Sql

 


INSERT INTO phpbb_config (config_name, config_value) VALUES ('subforum_display', '0');

Deschidem

includes/constants.php

Cautam linia

 


// Additional constants

Dupa linia de mai sus adaugati

 


// Subforum display options
define('SUBFORUM_DISPLAY_DEFAULT', 0);
define('SUBFORUM_DISPLAY_CLOUMN', 1);
define('SUBFORUM_DISPLAY_NEWROW', 2);

Deschidem

includes/functions_display.php

Cautam linia :

 


'S_SUBFORUMS' => (sizeof($subforums_list)) ? true : false,

Dupa linia de mai sus adaugati

 


'S_SUBFORUM_DISPLAY' => $config['subforum_display'],

Deschidem

includes/acp/acp_board.php

Cautam linia:

 


'override_user_style' => array('lang' => 'OVERRIDE_STYLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),

Adaugam dupa ea :

 


'subforum_display' => array('lang' => 'SUBFORUM_DISPLAY', 'validate' => 'int', 'type' => 'custom', 'method' => 'subforum_display_options', 'explain' => true),

Cautam

 


<input type="text" name="config[$key]" id="$key" value="$value" maxlength="30" />";
}

Adaugam dupa ea:

 


/**
* Subforum Display Options
*/
function subforum_display_options($value, $key = '')
{
$radio_ary = array(SUBFORUM_DISPLAY_DEFAULT => 'DEFAULT', SUBFORUM_DISPLAY_CLOUMN => 'COLUMN', SUBFORUM_DISPLAY_NEWROW => 'NEWROW');

return h_radio('config[subforum_display]', $radio_ary, $value, $key);
}

Deschidem language/en/acp/board.php

Cautam

 


'WARNINGS_EXPIRE_EXPLAIN' => 'Number of days that will elapse before the warning will automatically expire from a user’s record.',

Adaugam dupa :

 


// Subforum Display Options
'SUBFORUM_DISPLAY' => 'Display of subforums',
'SUBFORUM_DISPLAY_EXPLAIN' => 'Allows you to set up how subforums are displayed if there is more then one subforum for a forum<br />After changing this settings you may need to purge the cache.',
'DEFAULT' => 'Default',
'COLUMN' => '2 columns side by side',
'NEWROW' => 'Each in new row',

Deschidem

language/de/acp/board.php

Cautam linia :

 


'WARNINGS_EXPIRE_EXPLAIN' => 'Die Anzahl der Tage, nach denen eine Verwarnung automatisch aus dem Benutzer-Profil gelöscht wird.',

Dupa linia de mai sus adaugam

 


// Subforum Display Options
'SUBFORUM_DISPLAY' => 'Darstellung der Subforen',
'SUBFORUM_DISPLAY_EXPLAIN' => 'Ermöglicht die Darstellung der Subforen einzustellen, wenn für ein Forum mehrere Subforen vorhanden sind<br />Nach dem änden dieser Einstellung sollte der Cache gelöscht werden.',
'DEFAULT' => 'Standard',
'COLUMN' => 'In 2 Spalten nebeneinander',
'NEWROW' => 'Untereinander',

Deschidem : styles/prosilver/template/forumlist_body.html

Cautam linia

 


<!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS --><br /><strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}<!-- ENDIF -->

Repunem

 


<!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS --><br /><strong>{forumrow.L_SUBFORUM_STR}</strong>
<!-- IF forumrow.S_SUBFORUM_DISPLAY === '1' -->
<!-- BEGIN subforum -->
<div class="<!-- IF forumrow.subforum.S_ROW_COUNT is odd -->column2<!-- ELSE -->column1<!-- ENDIF -->"><a href="{forumrow.subforum.U_SUBFORUM}" class="subforum <!-- IF forumrow.subforum.S_UNREAD is odd -->unread<!-- ELSE -->read<!-- ENDIF -->">{forumrow.subforum.SUBFORUM_NAME}</a></div>
<!-- END subforum -->
<!-- ELSEIF forumrow.S_SUBFORUM_DISPLAY === '2' --><br />
<!-- BEGIN subforum -->
<a href="{forumrow.subforum.U_SUBFORUM}" class="subforum <!-- IF forumrow.subforum.S_UNREAD is odd -->unread<!-- ELSE -->read<!-- ENDIF -->">{forumrow.subforum.SUBFORUM_NAME}</a><br />
<!-- END subforum -->
<!-- ELSE -->
{forumrow.SUBFORUMS}<!-- If it's neither 1 nor 2, let's go with default -->
<!-- ENDIF -->
<!-- ENDIF -->