Jump to content

Clubs Forums on Forums Index


Recommended Posts

  • 3 months later...
Posted (edited)

Hi, there are no clubs if the view of forum index is set to fluid view. The clubs are only shown in default or card view. Is there any special reason for it?

Edited by Sonya*
  • 2 years later...
Posted

In addition to this "Clubs Forums on Forums Index" plugin I also use your "Ignore Forums" forums as well.

However, the Ignore Forums plugin doesn't give the option to ignore specific clubs forum that this plugin brings to the main forums page.

For example, for clubs with multiple forums it would be great if users could ignore ones they don't want to see on the main forums index.

Do you think integrating the functionality of these two plugins would be worth while?

Posted (edited)

Thanks for looking into this!!

I just wanted to correct a small mistake in what I said. What I should have said was, "although the Ignore Forums plugin gives the option inside clubs to ignore/stop ignoring a club forum, the "clubs forum on forums index" plugin seems to ignore this and still shows the club anyway in the main forum index.

 

Edited by Brainy S.
Posted

We've come across a bug with this. If you have it set to show "Only Forums from Clubs that I am member", it throws a template error when guests or members who aren't in any clubs view the forum index page.

Quote

TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in [snipped]Theme.php(860) : eval()'d code:363

 

Posted

Thanks, digging deeper it looks like a weird theme issue. In our customised themes, this line was missing from the top of the clubsForums code:

Quote

{{$clubsForums = array();}}

I'm not sure what would cause that to not be included?

Posted

Yeah, this is there in the plugin template:

<ips:template parameters="" />
{{$clubsForums = array();}}
{{if \IPS\Settings::i()->clubsforumindexForumType != 'member'}}
	{{$clubsForums = \IPS\Member::loggedIn()->clubForums();}}
{{endif}}
{{if \IPS\Settings::i()->clubsforumindexForumType == 'member' AND \IPS\Member::loggedIn()->member_id}}
	{{$clubsForums = \IPS\Member::loggedIn()->clubForumsMembers();}}
{{endif}}
{{if \count( $clubsForums )}}

Are you using the latest version? I remember an error like that but I'm not sure if was in this specific resource.

Posted

Yes, we're on the latest version. It was fine on one of our themes (a slightly changed version of the default theme), but was missing on our default. Very strange. 

  • 6 months later...
Posted
36 minutes ago, Adriano Faria said:

@kimmiekins, use the support topic to request support. I’ll take a look in what you reported via review.

Sure, sorry about that.

No matter what I do with the settings, the clubs are appearing on top. I've switched the settings multiple times, with no luck.

Posted
15 minutes ago, kimmiekins said:

Sure, sorry about that.

No matter what I do with the settings, the clubs are appearing on top. I've switched the settings multiple times, with no luck.

Have you tried on default theme? It may be something in custom, if you use some.

Posted
13 hours ago, kimmiekins said:

No matter what I do with the settings, the clubs are appearing on top. I've switched the settings multiple times, with no luck.

All fine in 4.7.2.1 with default theme:

If you use a custom theme, please switch to default and test it.

Posted
On 9/28/2022 at 7:35 AM, Adriano Faria said:

All fine in 4.7.2.1 with default theme:

If you use a custom theme, please switch to default and test it.

I got it to work, thanks so much!

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...