Page 1 of 1

Colapse -

Posted: Sat Sep 12, 2020 1:41 pm
by Harewood
Hi,
Capture.PNG
Capture.PNG (3.49 KiB) Viewed 478 times
Can anyone let me know how I enable the forum section `colapse` feature on forum sections?

Many thanks,

J

Re: Colapse -

Posted: Sat Sep 12, 2020 1:50 pm
by P_I

Re: Colapse -

Posted: Sat Sep 12, 2020 1:59 pm
by Harewood
Thats great, thank you for the quick reply.

Do you know if this feature can be enabled for registered members, but not for guests? That would be good... ;)

Re: Colapse -

Posted: Sat Sep 12, 2020 6:47 pm
by PlanetStyles.net
Harewood wrote:
Sat Sep 12, 2020 1:59 pm
Do you know if this feature can be enabled for registered members, but not for guests? That would be good...
That doesn't look like a native option, but you can easily achieve that by modifying the extension's template output.

Open: yourforum.com\ext\phpbb\collapsiblecategories\styles\all\template\event\forumlist_body_category_header_row_append.html

Find:

Code: Select all

{% if not S_IS_BOT %}
Replace with:

Code: Select all

{% if not S_IS_BOT and S_REGISTERED_USER %}
Save modified file and purge cache :)

Re: Colapse -

Posted: Sat Sep 12, 2020 10:53 pm
by 3Di
Harewood wrote:
Sat Sep 12, 2020 1:59 pm
Do you know if this feature can be enabled for registered members, but not for guests? That would be good... ;)
Hard-coding the HTML simply does what you are after (hide that button for guests), but it does not reset the old guests' cookies.
It's like having a glass half full and half empty at the same time.

Re: Colapse -

Posted: Sun Sep 13, 2020 11:53 am
by PlanetStyles.net
phpBB's native 'clear cookies' link will clear cookies set by the collapsible categories extension.

It's a two-click reset for any users who have the above issue.

Re: Colapse -

Posted: Sun Sep 13, 2020 11:55 am
by 3Di
Except that the user has explicitly requested all his/her guests to get the same setting -----> no collapsed.

Therefore is not a guest's decision but forced by the admin which got that issue... not guests, do you reckon?
not for guests
How would we be able to forcefully clean all of the guests' cookies code-wise, so to fill that glass half empty but half full? 🤔

Re: Colapse -

Posted: Sun Sep 13, 2020 12:12 pm
by Harewood
Hi,

All up and running, thank you... ;)

Is there a way to notify the user of new / unread posts in a collapsed section?
e.g.
Before:
Before.PNG
Before.PNG (2.76 KiB) Viewed 238 times
After:
After.PNG
After.PNG (4.63 KiB) Viewed 238 times
Thanks again....

Re: Colapse -

Posted: Sun Sep 13, 2020 12:31 pm
by 3Di
You should ask where you got the extension from. :)

Re: Colapse -

Posted: Sun Sep 13, 2020 1:30 pm
by Harewood
will do... ;)