Descriere: Va pune subforumurile in coloane de cate 2 3 4, cate cum doriti.
Demo : CLICK
Download : CLICK

Instalare: Înserati în SQL :

ALTER TABLE phpbb_forums ADD forum_subforumslist_type TINYINT(4) DEFAULT '0'; 
<*>Deschideti adm/style/acp_forums.html: Cautati:

			<dd><select id="forum_perm_from" name="forum_perm_from"><option value="0">{L_NO_PERMISSIONS}</option>{S_FORUM_OPTIONS}</select></dd>
		</dl>
	<!-- ENDIF -->

Adaugati dupa:

		<dl>
			<dt><label for="subforumslist_type">{L_SUBFORUMSLIST_TYPE}:</label><br /><span>{L_SUBFORUMSLIST_TYPE_EXPLAIN}</span></dt>
			<dd><input type="text" id="subforumslist_type" name="subforumslist_type" value="{SUBFORUMSLIST_TYPE}" size="4" maxlength="4" /></dd>
		</dl>
<*>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 = '<br /> <span style="float: left;">';
				$s_subforums_list_str .= (string) implode(',<br />', $s_subforums_list_m<0>);
				$s_subforums_list_str .= '</span> ';
				for ($i=1; $i*$rows < $sf_list; $i++)
				{
					$s_subforums_list_str .= '<span style="float: left;">&nbsp;&nbsp;';		
					$s_subforums_list_str .= (string) implode(',<br />&nbsp;&nbsp;', $s_subforums_list_m<$i>);
					$s_subforums_list_str .= '</span>';	
				}
				$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 puteti alege in cate coloane, modifica-ti la :

The number of columns for the list subforums:

Aceasta se gaseste cand creati un forum.

De admin

2 comentarii la „Aranjare subforumuri in coloane”
  1. buna ziua am si eu o problema am facut in exact pasii pe care ati spus si imi da o eroare ….
    Parse error: syntax error, unexpected ‘>’ in /home/grovestr/public_html/includes/functions_display.php on line 442
    uitati si o poza …
    [img]http://procs.pro/problema.PNG[/img]

Comentariile sunt închise.