Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Way to hide subforum links?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Way to hide subforum links?

 Post Reply Post Reply
Author
iamgaming View Drop Down
Newbie
Newbie


Joined: 28 April 2009
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote iamgaming Quote  Post ReplyReply Direct Link To This Post Topic: Way to hide subforum links?
    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!
Back to Top
cmv View Drop Down
Newbie
Newbie


Joined: 22 May 2009
Location: vienna
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmv Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
iamgaming View Drop Down
Newbie
Newbie


Joined: 28 April 2009
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote iamgaming Quote  Post ReplyReply Direct Link To This Post 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!



Edited by iamgaming - 01 June 2009 at 11:01pm
Back to Top
cmv View Drop Down
Newbie
Newbie


Joined: 22 May 2009
Location: vienna
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmv Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2009 at 11:17pm
more elegant:
IF NOT (intForumID = a OR intForumID = b) Then strSubForums = [...]
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.