AndreasW2000 Posted October 29, 2020 Share Posted October 29, 2020 I have been looking everywhere but did not find some way to customize this: On the index page of my website I have categories and within them the various forums are listed. However, some forums have multiple subforums. This leads to the pretty ugly effect that ALL of their subforums are also listed on the index page, creating some huge blocks here and there. Where can I customize that I only want to see the categories and forums but not also the subforums? PBarton 1 Link to comment Share on other sites More sharing options...
Morrigan Posted October 29, 2020 Share Posted October 29, 2020 Do you use Grid or list view because there is a difference in which template you need to edit. Link to comment Share on other sites More sharing options...
AndreasW2000 Posted October 29, 2020 Author Share Posted October 29, 2020 I use the regular list view, I like it flat and simple on the start page, not cluttered, which is also why I want to avoid the sub-forums all listed in big blocks, those subforums are seldomly used restricted working group areas, so people don't mind the additional click. Link to comment Share on other sites More sharing options...
Morrigan Posted October 29, 2020 Share Posted October 29, 2020 In forums > front > index > forumRow Find and remove this: {{if $forum->hasChildren()}} <ul class="ipsDataItem_subList ipsList_inline"> {{foreach $forum->children() as $subforum}} <li class="{{if \IPS\forums\Topic::containerUnread( $subforum )}}ipsDataItem_unread{{endif}}"> <a href="{$subforum->url()}">{{if \IPS\forums\Topic::containerUnread( $subforum )}}<span class='ipsItemStatus ipsItemStatus_tiny {{if !\IPS\forums\Topic::containerUnread( $subforum ) && !$subforum->redirect_on}}ipsItemStatus_read{{endif}}'><i class="fa fa-circle"></i></span> {{endif}}{$subforum->_title}</a> </li> {{endforeach}} </ul> {{endif}} Daniel F, abobader and Anyelica14 3 Link to comment Share on other sites More sharing options...
AndreasW2000 Posted October 29, 2020 Author Share Posted October 29, 2020 Ah! You know your way around 🙂 I'll try this immediately. Yaay! 😄 Link to comment Share on other sites More sharing options...
AndreasW2000 Posted October 29, 2020 Author Share Posted October 29, 2020 Thanks so much, worked like a charm! Link to comment Share on other sites More sharing options...
Morrigan Posted October 29, 2020 Share Posted October 29, 2020 NP ❤️ Link to comment Share on other sites More sharing options...
Dknelson Posted November 1, 2020 Share Posted November 1, 2020 (edited) On 10/29/2020 at 5:06 PM, Morrigan said: In forums > front > index > forumRow Find and remove this: {{if $forum->hasChildren()}} <ul class="ipsDataItem_subList ipsList_inline"> {{foreach $forum->children() as $subforum}} <li class="{{if \IPS\forums\Topic::containerUnread( $subforum )}}ipsDataItem_unread{{endif}}"> <a href="{$subforum->url()}">{{if \IPS\forums\Topic::containerUnread( $subforum )}}<span class='ipsItemStatus ipsItemStatus_tiny {{if !\IPS\forums\Topic::containerUnread( $subforum ) && !$subforum->redirect_on}}ipsItemStatus_read{{endif}}'><i class="fa fa-circle"></i></span> {{endif}}{$subforum->_title}</a> </li> {{endforeach}} </ul> {{endif}} @Morrigan I've got the same issue. I'm apparently not as advanced though. Where do you find that? Never mind. Found it. Edited November 1, 2020 by Dknelson Link to comment Share on other sites More sharing options...
whitetigergrowl Posted November 2, 2020 Share Posted November 2, 2020 I'd like to not show the subforums on the grid. How do I make those now show? Been looking everywhere with no luck. I'm rather surprised there is not an option to turn this off or on or make it so you can determine how you want them to be shown, if at all. Link to comment Share on other sites More sharing options...
Morrigan Posted November 2, 2020 Share Posted November 2, 2020 In forums > front > index > forumGridItem Find and remove this: {{if $forum->hasChildren()}} <h4 class='ipsType_minorHeading ipsSpacer_top'>{lang="subforums"}</h4> <ul class="ipsList_inline"> {{foreach $forum->children() as $subforum}} <li class="{{if \IPS\forums\Topic::containerUnread( $subforum )}}ipsDataItem_unread{{endif}}"> <a href="{$subforum->url()}"> {{if \IPS\forums\Topic::containerUnread( $subforum )}} <span class='ipsItemStatus ipsItemStatus_tiny {{if !\IPS\forums\Topic::containerUnread( $subforum ) && !$subforum->redirect_on}}ipsItemStatus_read{{endif}}'> <i class="fa fa-circle"></i> </span> {{endif}} {$subforum->_title} </a> </li> {{endforeach}} </ul> {{endif}} abobader 1 Link to comment Share on other sites More sharing options...
whitetigergrowl Posted November 3, 2020 Share Posted November 3, 2020 @Morrigan Thank you! Link to comment Share on other sites More sharing options...
Morrigan Posted November 3, 2020 Share Posted November 3, 2020 NP ❤️ Link to comment Share on other sites More sharing options...
PBarton Posted November 13, 2022 Share Posted November 13, 2022 It has been about a decade since I've dabbled in this stuff - so please forgive my ignorance. I'm currently using the most recent IPB, version 4.7. This solution in this thread is exactly what I need, but I haven't a clue how to find/edit "forums > front > index > forumRow". Any help would be appreciated, thanks. Link to comment Share on other sites More sharing options...
Mark H Posted November 14, 2022 Share Posted November 14, 2022 Keep in mind that the info above your post is over 2 years old, so the code itself may not work. However... ACP -> Themes page, click the </> icon to the right of your Theme. On the next page, expand as below: PBarton and SeNioR- 2 Link to comment Share on other sites More sharing options...
PBarton Posted November 15, 2022 Share Posted November 15, 2022 Thank you Mark! Link to comment Share on other sites More sharing options...
Mark H Posted November 15, 2022 Share Posted November 15, 2022 You're welcome. 🙂 Link to comment Share on other sites More sharing options...
Insydius Posted November 20, 2022 Share Posted November 20, 2022 On 11/12/2022 at 6:13 PM, PBarton said: It has been about a decade since I've dabbled in this stuff - so please forgive my ignorance. I'm currently using the most recent IPB, version 4.7. This solution in this thread is exactly what I need, but I haven't a clue how to find/edit "forums > front > index > forumRow". Any help would be appreciated, thanks. Alternatively, you could just add this to your Custom CSS page. /* Hide subforums on grid view */ .cForumGrid .ipsType_minorHeading, .cForumGrid .ipsType_minorHeading + .ipsList_inline{ display: none; } Ruedy and Meddysong 1 1 Link to comment Share on other sites More sharing options...
PBarton Posted November 23, 2022 Share Posted November 23, 2022 On 11/19/2022 at 5:46 PM, Insydius said: Alternatively, you could just add this to your Custom CSS page. /* Hide subforums on grid view */ .cForumGrid .ipsType_minorHeading, .cForumGrid .ipsType_minorHeading + .ipsList_inline{ display: none; } Excellent Insydius, thank you - I needed this too! Link to comment Share on other sites More sharing options...
PBarton Posted Sunday at 01:55 AM Share Posted Sunday at 01:55 AM We just updated to 4.7.8 today and my subforums are no longer hidden. Neither of the options posted in this thread seem to work now. Any suggestions on how NOT to display subforums on the front/main Index page in Grid mode? Link to comment Share on other sites More sharing options...
teraßyte Posted Sunday at 03:14 AM Share Posted Sunday at 03:14 AM @PBarton Yes, because of the recent UI Polish the CSS changed. You can use this in 4.7.8+ instead: /* Hide subforums on grid view */ .cForumGrid__subforums { display: none; } SeNioR- 1 Link to comment Share on other sites More sharing options...
PBarton Posted Sunday at 04:07 PM Share Posted Sunday at 04:07 PM Thanks teraßyte 1 Link to comment Share on other sites More sharing options...
Recommended Posts