Support Forum
Apologies is this isn't clear enough... I am on plane at 38000 with limited access... We can clarify in AM if needed.
In simple press most of the display is done via template functions in your sp theme you are using...
So in this case you simply need to remove the template function that displays the subgroup info...
So in your sp theme template file sp_forumvew.php, if you look in there, you will see a function call like
https://simple-press.com/docum.....xsubforums
if you remove that line the subgroup info will not be shown..
As Always, we strongly recommend you make a child theme or a custom theme before making any changes to keep from losing changes on updates
Hope that is clear... If not, we can clean it up in AM...
Visit Cruise Talk Central and Mr Papa's World
i dont have that exact call function in spForumViewDesktop.php
# Set the Forum
# ----------------------------------------------------------------------
if (sp_this_forum()):# Are there sub forums to display
if (sp_has_subforums()) :# Start the 'SubForumHeader' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spForumViewSection', 'subForum');sp_SectionStart('tagClass=spForumViewHeader', 'header');
sp_ForumHeaderIcon('tagId=spSubForumHeaderIcon&tagClass=spHeaderIcon spLeft');
sp_ForumHeaderName('tagId=spSubForumHeaderName&tagClass=spHeaderName');
sp_SubForumHeaderDescription('', __sp('Sub Forums'));
sp_InsertBreak();sp_SectionEnd('', 'header');
sp_InsertBreak('spacer=5px');sp_SectionStart('tagClass=spForumSubforumContainer', 'subforumlist');
while (sp_loop_subforums()) : sp_the_subforum() ; if(sp_is_child_subforum()) :
# Start the 'subforum' section - note the special subform call above
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spGroupForumSection', 'subForum');# Column 1 of the forum row
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spIconColumnSection spLeft&width=0&height=0px');
sp_SubForumIndexIcon('tagClass=spRowIcon spLeft');
sp_ColumnEnd();
sp_InsertBreak('tagClass=groupBreak');# Column 2 of the forum row
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spColumnSection spLeft&width=49%&height=0px');
sp_SubForumIndexName('tagClass=spRowName', __sp('Browse topics in %NAME%'));
sp_InsertBreak('direction=left');
sp_SubForumIndexDescription('tagClass=spRowDescription');
sp_SubForumIndexPageLinks('tagClass=spInRowPageLinks spLeft', __sp('Jump to page %PAGE% of topics'));
sp_ColumnEnd();
sp_InsertBreak('tagClass=groupBreak');# Column 3 of the forum row
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spColumnSection spLeft&width=39%&height=0px');
sp_SubForumIndexTopicCount('tagClass=spInRowCount spLeft', __sp('Topics:'));
sp_SubForumIndexPostCount('tagClass=spInRowCount spLeft', ' '.__sp('Posts:'));
sp_InsertBreak('direction=left');
sp_SubForumIndexLastPost('tagClass=spInRowPostLink&order=UTLD&nicedate=0&date=1&time=1&stackdate=0&itemBreak= - ', __sp('Last Post'), __sp('No Topics'));
sp_ColumnEnd();
sp_InsertBreak();# Column 4 of the forum row
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spColumnSection spRight&width=2%&height=0px');
sp_SubForumIndexLockIcon('tagClass=spIcon spRight', __sp('This forum is locked'));
sp_SubForumIndexAddIcon('tagClass=spIcon spRight', __sp('Add new topic in this forum'));
sp_SubForumIndexPostsIcon('tagClass=spIcon spRight&icon=sp_GroupOpenDark.png&popup=1', __sp('This forum has unread posts in %COUNT% topic(s)'));
sp_ColumnEnd();
sp_InsertBreak();
sp_SubForumIndexInlinePosts();
sp_InsertBreak();sp_SectionEnd('', 'subForum');
# Subforums of subforum
# ----------------------------------------------------------------------
sp_ForumHeaderSubForums('unreadIcon=sp_SubForumUnreadIcon.png', __sp('Sub-Forums'), __sp('Browse topics in %NAME%'));endif ; endwhile;
sp_SectionEnd('', 'subforumlist');
sp_SectionEnd('', 'forum');
endif;
# End of subforum section
thats the subforum section. i dont mind having the subforums on the main forumview but its the sub forums of the sub forums on the main forum view i would like to hide.
Hey Funeral,
For this you would need to add the argument 'allNested' which by default is set to 1 displaying sub forum children. So add it but set to 0 i.e:
sp_ForumIndexSubForums('unreadIcon=sp_SubForumUnreadIcon.png&allNested=0', __sp('Sub-Forums:'), __sp('Browse topics in %NAME%'));
Lets step back... think there is confusion on what you want to do... Ike and I have been talking about group view, but it appears you mean forum view?
so if you want to remove the subforums from the forum view pages, then you would just remove the code you posted... that controls the display... EXCEPT, leave the first line there
if (sp_this_forum()):
so delete what you posted from below that line to the end of what you posted... and you wont have subforums listed on the forum page...
and as before, do that in a child theme or custom theme...
Visit Cruise Talk Central and Mr Papa's World
Can we just confirm where you want to remove sub forum children. Are you talking about the very first page you see when you first access your forum - i.e the root page - Group View? This was my assumption as you said the 'main forum index' which does as standard display sub forum children.. Easily confusing terminology!
We should refer to each view by it's template name to avoid confusion.
So if we are indeed talking about Group View, then you need to make my change to spGroupViewDesktop.php.
And it doesn't need to be added below anything, the only change is the argument 'allNested' inside the function 'sp_ForumIndexSubForums'.
Locate the function 'sp_ForumIndexSubForums' and add the 'allNested=0' argument so the function then looks like:
sp_ForumIndexSubForums('unreadIcon=sp_SubForumUnreadIcon.png&allNested=0', __sp('Sub-Forums:'), __sp('Browse topics in %NAME%'));
If I'm wrong, please could you clarify using the template name to reference which view you want to change?
Group View = the first view you see - groups of forums
Forum View = second view, inside one of these forums - a list of topics
Topic View = viewing a topic
Sorry if that sounds patronising but it's best to make sure we're all talking about the same thing!
no worries! glad we got there...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)