escriere: Vă pune subforumurile in coloane de câte 2 3 4, câte cum doriţi.
Autor: Палыч
Fisere de modificat:
adm/style/acp_forums.html
includes/functions_display.php
includes/acp/acp_forums.php
Fisiere de uploadat:
root/language/en/mods/info_acp_sflist.php
Download: Click
Parola:
www.mindfreak.roInstalare:
Înseraţi în SQL :
ALTER TABLE phpbb_forums ADD forum_subforumslist_type TINYINT(4) DEFAULT '0';
Deschideti adm/style/acp_forums.html:
Cautati:
Adaugati dupa:
{L_SUBFORUMSLIST_TYPE}:
{L_SUBFORUMSLIST_TYPE_EXPLAIN}
Deschideti includes/functions_display.php:
Cautati:
$s_subforums_list = (string) implode(', ', $s_subforums_list);
Înlocuiti cu:
if ($row['forum_subforumslist_type'])
{
$s_subforums_list_m = array();
$s_subforums_list_str ='';
$s_subforums_list_m = $s_subforums_list;
$sf_list = count($s_subforums_list);
if ($sf_list)
{
$rows = ceil ($sf_list / $row['forum_subforumslist_type']);
$s_subforums_list_m = array_chunk($s_subforums_list_m, $rows);
$s_subforums_list_str = '
';
$s_subforums_list_str .= (string) implode(',
', $s_subforums_list_m[0]);
$s_subforums_list_str .= ' ';
for ($i=1; $i*$rows < $sf_list; $i++)
{
$s_subforums_list_str .= ' ';
$s_subforums_list_str .= (string) implode(',
', $s_subforums_list_m[$i]);
$s_subforums_list_str .= '';
}
$s_subforums_list = $s_subforums_list_str;
}
}
else
{
$s_subforums_list = (string) implode(', ', $s_subforums_list);
}
Deschideti includes/acp/acp_forums.php:
Cautati:
'display_subforum_list' => request_var('display_subforum_list', false),
Adaugati dupa:
//subforumslist_type_article_mod_start
'forum_subforumslist_type' => request_var('subforumslist_type', 0),
//subforumslist_type_article_mod_end
Cautati:
'display_subforum_list' => true,
Adaugati dupa:
//subforumslist_type_article_mod_start
'forum_subforumslist_type' => 0,
//subforumslist_type_article_mod_end
Cautati:
'S_DISPLAY_SUBFORUM_LIST' => ($forum_data['display_subforum_list']) ? true : false,
Adaugati dupa:
//subforumslist_type_article_mod_start
'SUBFORUMSLIST_TYPE' => $forum_data['forum_subforumslist_type'],
//subforumslist_type_article_mod_end
¤ Sterge-ti cache !
¤ Pentru fiecare categorie puteţi alege in câte coloane, modifica-ţi la :
The number of columns for the list subforums: