[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!
Suggested Hosts
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)
swstarone
Registered User
Posts: 87
Joined: Sun Jun 02, 2013 12:48 pm

Re: [DEV] List subforums in columns

Post by swstarone »

this query

Code: Select all

UPDATE phpbb_forums SET forum_subforumslist_type =  '2'
rxu
Extensions Development Team
Posts: 4116
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [DEV] List subforums in columns

Post by rxu »

swstarone wrote:line 59: explode() expects parameter 2 to be string, array given
Line 59^

Code: Select all

$s_subforums_list_m = explode($this->user->lang['COMMA_SEPARATOR'], $forum_row['SUBFORUMS']);
$forum_row['SUBFORUMS'] is assigned to $s_subforums_list = (string) implode($user->lang['COMMA_SEPARATOR'], $s_subforums_list);

So the query seems to be unrelated to the issue. Are you sure you haven't modified (probably via another extension) things related to the $s_subforums_list value in includes/functions_display.php?
swstarone
Registered User
Posts: 87
Joined: Sun Jun 02, 2013 12:48 pm

Re: [DEV] List subforums in columns

Post by swstarone »

No sir I have not replaced anything,
but one issue is this when I try to change column details from ACP >> Forums
then changes does not got changed, it still shows 0 only.
only when I made query then it changed as i set in query.
swstarone
Registered User
Posts: 87
Joined: Sun Jun 02, 2013 12:48 pm

Re: [DEV] List subforums in columns

Post by swstarone »

My forum url is

Code: Select all

http://forum.swstarone-sat.com
please check the issue
rxu
Extensions Development Team
Posts: 4116
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [DEV] List subforums in columns

Post by rxu »

Are you using the latest code from the repo?
swstarone
Registered User
Posts: 87
Joined: Sun Jun 02, 2013 12:48 pm

Re: [DEV] List subforums in columns

Post by swstarone »

I have downloaded latest extension which link is given in the first post of this topic.
rxu
Extensions Development Team
Posts: 4116
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [DEV] List subforums in columns

Post by rxu »

Tried to reproduce it locally with the SQL query but couldn't. Do you have any other specific details? What extensions do you have installed other than Recent Topics?
swstarone
Registered User
Posts: 87
Joined: Sun Jun 02, 2013 12:48 pm

Re: [DEV] List subforums in columns

Post by swstarone »

Enabled Extensions

Activity Stats 1.2.3-DEV
Auto Groups 1.0.0-RC1
Google Analytics 1.0.1
List subforums in columns 2.0.0
Loading indicator 1.0.0
Lottery for Caramel 0.0.1
phpBB3 SEO Sitemap 1.0.3
Precise Similar Topics 1.3.0
Pretty Topic 1.0.0
Recent Topics 2.0.5
Scroll To Top 1.0.0
Seo Meta Description 0.0.2
tas2580 SEO URLs 0.2.1
Welcome Robot 1.0.0
rxu
Extensions Development Team
Posts: 4116
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [DEV] List subforums in columns

Post by rxu »

swstarone
Could you please try the following:

Code: Select all

OPEN
[ROOT]/ext/gfksx/ListSubforumsInColumns/event/listener.php

FIND
if (isset ($forum_row['SUBFORUMS']) && $row['forum_subforumslist_type'])

REPLACE WITH
if (!empty($forum_row['SUBFORUMS']) && $row['forum_subforumslist_type'])
swstarone
Registered User
Posts: 87
Joined: Sun Jun 02, 2013 12:48 pm

Re: [DEV] List subforums in columns

Post by swstarone »

Yes sir, I have done.
and now problem has resolved.
WISHEXEC
Registered User
Posts: 87
Joined: Fri Dec 04, 2015 12:39 pm

Re: [DEV] List subforums in columns

Post by WISHEXEC »

any chance to get this aproved ?
loxawadi
Registered User
Posts: 63
Joined: Tue Jan 05, 2016 3:14 am

Re: [DEV] List subforums in columns

Post by loxawadi »

Dear all

I set 2 column but it does not. How can I fix it.

Thanks
WISHEXEC
Registered User
Posts: 87
Joined: Fri Dec 04, 2015 12:39 pm

Re: [DEV] List subforums in columns

Post by WISHEXEC »

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
WISHEXEC
Registered User
Posts: 87
Joined: Fri Dec 04, 2015 12:39 pm

Re: [DEV] List subforums in columns

Post by WISHEXEC »

Wrong "," bug ...

Still need this working :)
User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] List subforums in columns

Post by Mess »

Looking forward to seeing this working on responsive. :)

Return to “Extensions in Development”