[DEV] List subforums in columns

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
WISHEXEC
Registered User
Posts: 87
Joined: Fri Dec 04, 2015 12:39 pm

Re: [DEV] List subforums in columns

Post by WISHEXEC »

me to :(
Bogdan.
Registered User
Posts: 32
Joined: Thu Sep 15, 2016 6:50 pm

Re: [DEV] List subforums in columns

Post by Bogdan. »

Image
How can i do it to look like this


Edit:
i guess there must be some sort of width with 33,99% x3 to look like there ,right?

Code: Select all

		if (isset ($forum_row['SUBFORUMS']) && $row['forum_subforumslist_type'])
		{
			$s_subforums_list_m = array();
			$s_subforums_list_str ='';
			$s_subforums_list_m = explode($this->user->lang['COMMA_SEPARATOR'], $forum_row['SUBFORUMS']);
			$sf_list = count($s_subforums_list_m);
			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>';
				}
				$forum_row['FORUM_SUBFORUMSLIST_TYPE'] = (int) $row['forum_subforumslist_type'];
				$forum_row['SUBFORUMS'] = $s_subforums_list_str;
				$event['forum_row'] = $forum_row;
			}
		}
	}
This code must be changed,to look like there,any tip?

Edit x2:
yea i found the probleme, i just had to add &nbsp;&nbsp; till it goes right..
yozhi10
Registered User
Posts: 38
Joined: Fri Dec 30, 2016 1:53 pm

Re: [DEV] List subforums in columns

Post by yozhi10 »

after installing what i've to do ?
rxu
Extensions Development Team
Posts: 3804
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [DEV] List subforums in columns

Post by rxu »

Set number of columns to split subforums list in, for each forum, via editing forums in ACP.
yozhi10
Registered User
Posts: 38
Joined: Fri Dec 30, 2016 1:53 pm

Re: [DEV] List subforums in columns

Post by yozhi10 »

rxu wrote: Sat Jan 21, 2017 4:00 am Set number of columns to split subforums list in, for each forum, via editing forums in ACP.
and how i can add a icon read and unread messages behind the subforum ?
rxu
Extensions Development Team
Posts: 3804
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [DEV] List subforums in columns

Post by rxu »

What do you mean? The extension doesn't change those icons.
yozhi10
Registered User
Posts: 38
Joined: Fri Dec 30, 2016 1:53 pm

Re: [DEV] List subforums in columns

Post by yozhi10 »

rxu wrote: Tue Jan 24, 2017 4:30 pm What do you mean? The extension doesn't change those icons.
when i install the extension, it removes my subforum icon
emsik
Registered User
Posts: 102
Joined: Wed Jul 01, 2009 12:55 pm

Re: [DEV] List subforums in columns

Post by emsik »

Does this work with 3.2?
rxu
Extensions Development Team
Posts: 3804
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [DEV] List subforums in columns

Post by rxu »

For me, it does.
emsik
Registered User
Posts: 102
Joined: Wed Jul 01, 2009 12:55 pm

Re: [DEV] List subforums in columns

Post by emsik »

Thank you. I've installed it on 3.2 and it works :) But there is one little problem with position of "topics: numer"
WISHEXEC wrote: Fri Feb 05, 2016 11:18 am This break my responsive design ...

In normal it shows like

Code: Select all

Main Forum 
Subforums: subforum1, subforum2, subforum3, subforum4
Topics: 12
but with this extensions break that responsive form , and create a buggy one like this

Code: Select all

Main Forum 
Subforums: 

subforum1     subforum2,topi...
subforum3     subforum4   12 
the topic number that usually come under the subforums, come now in right side
Could it be corrected?
User avatar
pikachuturkey
Registered User
Posts: 337
Joined: Wed Dec 20, 2006 10:34 pm
Location: Türkiye(Turkey)
Name: Rıza

Re: [DEV] List subforums in columns

Post by pikachuturkey »

Turkish language file for version 2.0.0 (unstable) tr

Code: Select all

<?php
/**
*
* List Subforums In Columns extension for the phpBB Forum Software package.
*
* @copyright (c) 2013 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine



$lang = array_merge($lang, array(
	'SUBFORUMSLIST_TYPE'			=> 'Altforum listesindeki sütun sayısı',
	'SUBFORUMSLIST_TYPE_EXPLAIN'	=> 'Forum gösteriminde altforum listesini bölmek istediğiniz sütun sayısını girin. Bu özelliği kapatmak için 0 girin.',
));
User avatar
Meis2M
Translator
Posts: 1010
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری

Re: [DEV] List subforums in columns

Post by Meis2M »

deleted ...
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
Prosk8er
Registered User
Posts: 1762
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler

Re: [DEV] List subforums in columns

Post by Prosk8er »

anyway to get it to work for the category option like it use to be?

This is how it looked for phpbb3 but for the extension we no longer get the option
Image

regardless thanks for porting it
rxu
Extensions Development Team
Posts: 3804
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [DEV] List subforums in columns

Post by rxu »

Prosk8er wrote: Sat Jul 08, 2017 8:42 pm anyway to get it to work for the category option like it use to be?
I never saw it worked for categories as they have no subforums as such, did it? And how would it look like?
Last edited by rxu on Sun Jul 09, 2017 5:45 am, edited 1 time in total.
rxu
Extensions Development Team
Posts: 3804
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [DEV] List subforums in columns

Post by rxu »

emsik wrote: Thu Mar 09, 2017 6:37 pm there is one little problem with position of "topics: numer"
And this should be fixed with the current development code.

Return to “Extensions in Development”