It is currently 24 May 2012, 10:20
View unanswered posts | View active topics
Author
Message
Faster-Guy
Post subject: Tutorial Subforum Display Options
Posted: 03 May 2011, 15:09
Moderator Global
Joined: 10 Jul 2010, 11:51Posts: 2567Location: Unde vreauMultumiri date: 63 Multumiri primite: 319
Nume Steam: Faster @www.cs-gothic.ro
Arma Preferata: M4A1 + Ak47
Harta Preferata: gg_toycarpark_cs16_b
Puncte Reputatie: 20938
Pentru cei care vor sa aibe categoriile pe forum cum avem noi pe http://www.cs-gothic.ro si adica: NU aveti de facut decat sa urmariti tutorialul urmator: Intro ducem in SqlINSERT INTO phpbb_config (config_name, config_value) VALUES ('subforum_display', '0');
Deschidemincludes/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);
Deschidemincludes/functions_display.php Cautam linia :'S_SUBFORUMS' => (sizeof($subforums_list)) ? true : false,
Dupa linia de mai sus adaugati'S_SUBFORUM_DISPLAY' => $config['subforum_display'],
Deschidemincludes/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',
Deschidemlanguage/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 -->
Cam atat sper ca ati inteles tutorialul
Jocuri Online Raspuns.Net English Tutorials Forum Animale de Companie Portal Counter-Strike Compilator AMXX Hosting Servere Test CS Download CS Gothic Parodie CS-Gothic Director Web TopSites Evidenta Redirecte Yahoo! Scanner Frags Photoshop Download Toolbar Gothic Creatii Gothic CS Reguli Forum Suport CS - Servere Socializeaza cu Gothic CS Community :
Re: Tutorial Subforum Display Options
pay per click advertising
Top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum