Print Page | Close Window

Need to hide subforums on default.asp

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=26879
Printed Date: 29 March 2026 at 12:41pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Need to hide subforums on default.asp
Posted By: claustrier
Subject: Need to hide subforums on default.asp
Date Posted: 21 January 2009 at 3:48pm
Hi,
 
I am building af forum which has a subforum for each golfclub in Denmark (about 160).
 
http://www.vildmedgolf.dk" rel="no follow - www.vildmedgolf.dk
 
As these take up a lot of space on the default.asp, I would like to hide these subforums, but only here - so if you go to the main forum page, they will still be listed and working normally.
 
I tried playing around with default.asp, but cant seem to find an easy way of not displaying the subforums on this page? Can anyone help me?



Replies:
Posted By: sirahlst
Date Posted: 22 January 2009 at 5:29pm

This is not helpful to you, but I have the exact same problem - only not for golf. I have a http://www.signandtrade.com/forum/" rel="no follow - fantasy sports website in which as leagues are created I want to provide them their own forum. Please let me know if you find a work around. I have not looked into very deeply it yet (hiding them will be step two after automatically creating them as new leagues are added), but I know it will be the next step.



-------------
http://www.signandtrade.com/" rel="no follow - http://www.signandtrade.com/
Fantasy Sports - As real As you want to make it.


Posted By: slog
Date Posted: 19 October 2009 at 2:31pm
I believe that you found a way to do these modifications already, its been a long time since you asked for that.

With the new WWf version things changed a little and we have to use a different solution to hide subforuns.

Here is my workaround and someone has a simpler way to do it, please post here.

First include these lines here at default.asp:

'Else there the are categories so write the HTML to display categories and the forum names and a discription
Else

'## Start Mod to hide sub foruns on first page ##
%><table cellspacing="1" cellpadding="3" class="tableBorder" align="center">
 <tr class="tableLedger">
  <td width="5%">&nbsp;</td>
  <td width="50%"><% = strTxtForum %></td>
  <td width="10%" align="center"><% = strTxtTopics %></td>
  <td width="10%" align="center"><% = strTxtPosts %></td>
  <td width="30%"><% = strTxtLastPost %></td>
 </tr><%
'## End Mod to hide sub foruns on first page ##

'Loop round to show all the categories and forums
Do While intCurrentRecord <= Ubound(sarryForums,2)
Then comment these lines here:

		'Read in the details from the array of this category
intCatID = CInt(sarryForums(0,intCurrentRecord))
strCategory = sarryForums(1,intCurrentRecord)
'## Start Mod to hide sub foruns on first page ##
%>
<!--<table cellspacing="1" cellpadding="3" class="tableBorder" align="center">
 <tr class="tableLedger">
  <td width="5%">&nbsp;</td>
  <td width="50%"><% = strTxtForum %></td>
  <td width="10%" align="center"><% = strTxtTopics %></td>
  <td width="10%" align="center"><% = strTxtPosts %></td>
  <td width="30%"><% = strTxtLastPost %></td>
 </tr>--><%
'## End Mod to hide sub foruns on first page ##
'Display the category name
Then Comment and include these lines.

				'If we have run out of records jump out of forums loop into the category loop
If intCurrentRecord > Ubound(sarryForums,2) Then Exit Do
Loop
End If

'## Start Mod to hide sub foruns on first page ##
%>
<!--</table>
<br />--><%
'## End Mod to hide sub foruns on first page ###
     
'Loop back round for next category
Loop
End If

'## Start Mod to hide sub foruns on first page ##
%>
</table>
<br /><%
'## End Mod to hide sub foruns on first page ##


'Clean up
Call closeDatabase()

It worked just good for me...



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