Support Forum

Select forum option tab

AW Arno Wakfer
Arno Wakfer
Member

Hi,

Is it possible to only show the main forums (excluding subforums) under the “Select Forum” drop down tab ?

Regards

Arno

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

It is not possible without a small change to the code. I think I could justify making this an optional argument actually and then it would just need a small change to the theme template. I will see what I can do. Meanwhile I could give you a small edit to make to core code which would achieve this.

YS Yellow Swordfish
Yellow Swordfish
Member

You would need to edit the file /simple-press/forum/content/sp-common-view-functions.php

The function you need to edit is called sp_QuickLinksForum() and can be found starting around line 1283 of the file.

Locate this line of code within the middle of the function:

if (!empty($forum->subforums)) $out.= sp_compile_forums($forum->subforums, $forum->forum_id, 1, true);

and comment it out.

I have added code to the next update that will enable this as an option to be turned on in the theme template which is how it should be handled.