[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!
Get Involved
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 » Thu Jun 30, 2016 4:06 pm

me to :(

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

Re: [DEV] List subforums in columns

Post by Bogdan. » Fri Sep 23, 2016 11:47 am

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 » Fri Jan 20, 2017 2:26 pm

after installing what i've to do ?

rxu
Extensions Development Team
Posts: 2946
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: [DEV] List subforums in columns

Post by rxu » Sat Jan 21, 2017 4:00 am

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 » Tue Jan 24, 2017 10:30 am

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: 2946
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: [DEV] List subforums in columns

Post by rxu » Tue Jan 24, 2017 4:30 pm

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 » Wed Jan 25, 2017 3:35 pm

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 » Thu Mar 09, 2017 1:02 pm

Does this work with 3.2?

rxu
Extensions Development Team
Posts: 2946
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: [DEV] List subforums in columns

Post by rxu » Thu Mar 09, 2017 4:33 pm

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 » Thu Mar 09, 2017 6:37 pm

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: 290
Joined: Wed Dec 20, 2006 10:34 pm
Name: Rıza
Contact:

Re: [DEV] List subforums in columns

Post by pikachuturkey » Thu Mar 09, 2017 6:45 pm

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.',
));
Health For Everyone ==> www.saglikforum.org

User avatar
Meis2M
Translator
Posts: 874
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] List subforums in columns

Post by Meis2M » Fri Jul 07, 2017 10:38 am

deleted ...
phpBB persian international support
Ultimate SEO Friendly URL - Extension
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM

User avatar
Prosk8er
Registered User
Posts: 1444
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [DEV] List subforums in columns

Post by Prosk8er » Sat Jul 08, 2017 8:42 pm

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: 2946
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: [DEV] List subforums in columns

Post by rxu » Sun Jul 09, 2017 5:39 am

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: 2946
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: [DEV] List subforums in columns

Post by rxu » Sun Jul 09, 2017 5:42 am

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.

Post Reply

Return to “Extensions in Development”