Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Need to hide subforums on default.asp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Need to hide subforums on default.asp

 Post Reply Post Reply
Author
claustrier View Drop Down
Groupie
Groupie


Joined: 19 October 2008
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote claustrier Quote  Post ReplyReply Direct Link To This Post Topic: Need to hide subforums on default.asp
    Posted: 21 January 2009 at 3:48pm
Hi,
 
I am building af forum which has a subforum for each golfclub in Denmark (about 160).
 
 
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?
Back to Top
sirahlst View Drop Down
Newbie
Newbie


Joined: 12 September 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote sirahlst Quote  Post ReplyReply Direct Link To This Post 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 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.

Back to Top
slog View Drop Down
Groupie
Groupie


Joined: 11 September 2009
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote slog Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.