Print Page | Close Window

Way to hide subforum links?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=27422
Printed Date: 02 April 2026 at 5:43pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Way to hide subforum links?
Posted By: iamgaming
Subject: Way to hide subforum links?
Date Posted: 01 June 2009 at 8:58pm
I have a main forum that is going to have a ton of subforums in it and I was wondering if there was a way to stop all the subforum links from being displayed under the main forum at the forum home page.  It makes it look terribly unorganized.

I would like to remove the subforum links under just this one main forum but if I had to remove them from all the main forums I would consider it.

Thanks!



Replies:
Posted By: cmv
Date Posted: 01 June 2009 at 9:38pm
just a shot into the blue - maybe what you are trying to archive can be better done by grouping forums into categories (groups) instead of creating subforums
christian

-------------
and remember: a CRAY is the only computer that runs an endless loop in just four hours ...


Posted By: iamgaming
Date Posted: 01 June 2009 at 10:58pm
Originally posted by cmv cmv wrote:

just a shot into the blue - maybe what you are trying to archive can be better done by grouping forums into categories (groups) instead of creating subforums
christian


Yeah that is  the issue. Initially that's the way it was set up and the main page just got way too large so it needs to be re-org'd this way.

With some help I got it working though.  Below is what you need to do.
  1. In the /forums folder, open "default.asp" - make a copy before you start
  2. Do a "find" in the code for 'Display the sub forum 
  3. Place the green code below as I have it (254 would be replaced by your main forum ID)
 
        'Display the sub forum
        if intForumID=254 then
        else
        strSubForums = strSubForums & "<a href=""forum_topics.asp?FID=" & intSubForumID & strQsSID2 & SeoUrlTitle(strSubForumName, "&title=") & """ class=""smLink"">" & strSubForumName & "</a>"
        end if

That's all there is to it.


You can also use 'or' to do remove subforum links from multiple main forums.

Like this:

        if intForumID=254 or intForumID=274 then
        else
        strSubForums = strSubForums & "<a href=""forum_topics.asp?FID=" & intSubForumID & strQsSID2 & SeoUrlTitle(strSubForumName, "&title=") & """ class=""smLink"">" & strSubForumName & "</a>"
        end if


Cheers!



Posted By: cmv
Date Posted: 01 June 2009 at 11:17pm
more elegant:
IF NOT (intForumID = a OR intForumID = b) Then strSubForums = [...]


-------------
and remember: a CRAY is the only computer that runs an endless loop in just four hours ...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net