Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
sub forums
Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Jan 9, 2015 - 8:53 pm

 i was wondering how i could remove this from the sub-forums

 

http://postimg.org/image/pc6v4cfzb/

 

where the red x is

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 10, 2015 - 5:10 am

Is this because you are never going to allow your users to post in the parent forums or is this just that you do not want it to show when there are no topics?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Jan 10, 2015 - 6:14 pm

i wont allow anyone to post in the parent forum that way everything can stay organized 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2015 - 6:18 pm

out of curiosity, why?  what is the point of the parent/sub forum relationships?  why not making Gaming a group vice parent forum if there will be nothing at the Gaming level?

We can show you how to remove from display, but want to make sure we understand the use case...  removing from display wont stop them from going there or from it being in the permalink...

Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Jan 10, 2015 - 6:35 pm

well the reason why is because its going to have all the gaming console discussions in their own forum and instead of taking up valuable space on the main forum page with all of them i put them in a sub forum,where the actual sub forum doesnt need to have any topics..otherwise people will use it to post their gaming discussion and mods will always be moving topics in the correct forum.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2015 - 7:54 pm

We dont really have a method for having 'dummy' parent forums like that...  so you cannot make them completely unfunctional...  but you can remove the stuff you allude in the picture..  since what is displayed in your forum is theme and template tag driven, you need to just alter it...

in this case, we are talking forum view, so in your sp theme edit the spForumView.php template file...  and remove the parent forum display stuff...  it will be the section that starts with:

                # Start the 'forumHeader' section
                # ----------------------------------------------------------------------
                sp_SectionStart('tagClass=spForumViewSection', 'forum');

and ends with:

                sp_SectionEnd('', 'forum');

just remove it and it wont show...  you likely also want to remove these sections:

                # Start the 'pagelinks' section
                # ----------------------------------------------------------------------
                sp_SectionStart('tagId=spTopicNewButtonTop&tagClass=spPlainSection', 'pageLinks');
                    sp_TopicNewButton('tagClass=spButton spRight', __sp('Add Topic'), __sp('Start a new topic'), __sp('This forum is locked'), __sp('No permission to start topics'));
                    sp_TopicIndexPageLinks('', __sp('Page: '), __sp('Jump to page %PAGE% of topics'), __sp('Jump to page'));
                sp_SectionEnd('tagClass=spClear', 'pageLinks');

and

                # Start the 'pagelinks' section
                # ----------------------------------------------------------------------
                sp_SectionStart('tagClass=spPlainSection', 'pageLinks');
                    sp_TopicNewButton('tagId=spTopicNewButtonBottom&tagClass=spButton spRight', __sp('Add Topic'), __sp('Start a new topic'), __sp('This forum is locked'), __sp('No permission to start topics'));
                    sp_TopicIndexPageLinks('', __sp('Page: '), __sp('Jump to page %PAGE% of topics'), __sp('Jump to page'));
                    sp_InsertBreak();
                sp_SectionEnd('', 'pageLinks');

since there wont be pages and you dont want an Add Topic button...

give that a try and see if it does what you want...

as always, we strongly recommend that you make a child theme or your own theme to keep from losing changes on updates to out themes...  see:

https://simple-press.com/docum.....g-a-theme/
https://simple-press.com/simpl.....ld-themes/

Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Jan 13, 2015 - 6:26 pm

Alright thanks i will give it a try :)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 13, 2015 - 9:01 pm

let us know how you make out...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620