4en3rgY Romania
[Tutorial] Subforum Display Options 2z8bv910
Welcome To 4EN3RGY Romania
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

4en3rgY Romania


Nu sunteti conectat. Conectați-vă sau înregistrați-vă

[Tutorial] Subforum Display Options

Vezi subiectul anterior Vezi subiectul urmator In jos  Mesaj [Pagina 1 din 1]

1[Tutorial] Subforum Display Options Empty [Tutorial] Subforum Display Options Vin 03 Feb 2012, 20:19

KiddOx <3.

KiddOx <3.Membru

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
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 @};-

ghyra

ghyraMembru

e pentru forum gratuit ?

KiddOx <3.

KiddOx <3.Membru

Nu! este platforma phbb3 adica domeniu

Continut sponsorizat


Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum

 

Copyright @ 2010-2024 by 4en3rgY ~> All rights reserved.