Imagine>
[Trebuie sa fiti înscris şi conectat pentru a vedea această imagine]
NU aveti de facut decat sa urmariti tutorialul urmator:
Intro ducem in Sql
Deschidem
includes/constants.php
Cautam linia:
// Additional constants
Dupa linia de mai sus adaugati
Deschidem
includes/functions_display.php
Cautam linia :
Dupa linia de mai sus adaugati
Deschidem
includes/acp/acp_board.php
Cautam linia:
Adaugam dupa ea :
Cautam:
Adaugam dupa ea:
Deschidem language/en/acp/board.php
Cautam
Adaugam dupa :
Deschidem
language/de/acp/board.php
Cautam linia :
Dupa linia de mai sus adaugam
Deschidem :
styles/prosilver/template/forumlist_body.html
Cautam linia
Repunem
Cam atat sper ca ati inteles tutorialul @};-
[Trebuie sa fiti înscris şi conectat pentru a vedea această imagine]
NU aveti de facut decat sa urmariti tutorialul urmator:
Intro ducem in Sql
- Cod:
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
- Cod:
// 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 :
- Cod:
'S_SUBFORUMS' => (sizeof($subforums_list)) ? true : false,
Dupa linia de mai sus adaugati
- Cod:
'S_SUBFORUM_DISPLAY' => $config['subforum_display'],
Deschidem
includes/acp/acp_board.php
Cautam linia:
- Cod:
'override_user_style' => array('lang' => 'OVERRIDE_STYLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
Adaugam dupa ea :
- Cod:
'subforum_display' => array('lang' => 'SUBFORUM_DISPLAY', 'validate' => 'int', 'type' => 'custom', 'method' => 'subforum_display_options', 'explain' => true),
Cautam:
- Cod:
<input type=\"text\" name=\"config[$key]\" id=\"$key\" value=\"$value\" maxlength=\"30\" />";
}
Adaugam dupa ea:
- Cod:
/**
* 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
- Cod:
'WARNINGS_EXPIRE_EXPLAIN' => 'Number of days that will elapse before the warning will automatically expire from a user’s record.',
Adaugam dupa :
- Cod:
// 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 :
- Cod:
'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
- Cod:
/ 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
- Cod:
<!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS --><br /><strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}<!-- ENDIF -->
Repunem
- Cod:
<!-- 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 -->
Cam atat sper ca ati inteles tutorialul @};-