Print Page | Close Window

Banner associated with a specific forum

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=6849
Printed Date: 03 April 2026 at 11:14pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Banner associated with a specific forum
Posted By: Gemma Fairchild
Subject: Banner associated with a specific forum
Date Posted: 30 October 2003 at 10:43am

Hi all,

I was just wondering if it's possible to display a banner when a specific forum is opened?

i.e when say forum/forum_topics.asp?FID=46 opens it displays a banner specific to this forum. Just wondering where to start, sorry if this has come up before but couldn't find anything on it.



-------------
Gemma from http://www.herpetofauna.co.uk - RAUK



Replies:
Posted By: Badaboem
Date Posted: 30 October 2003 at 11:54am

if FID = 46 then response write (or use file include) etc.

It's fairly simple to do.

 



Posted By: wistex
Date Posted: 31 October 2003 at 12:08am

I used this trick on my forum to display different navigation on the left hand side based on which forum you are in.  Our site is pretty big.  Some of the forums are related to a specific section of our site and we wanted to make it easy to go from, for example, the http://www.caribbeanchoice.com/recipes/ - recipe section of the site to the http://www.caribbeanchoice.com/forums/forum_topics.asp?FID=2 - recipe forum in the forums.

To see what I am talking about, view the http://www.caribbeanchoice.com/forums/forum_topics.asp?FID=2 - recipe forum on our site, and then view the http://www.caribbeanchoice.com/forums/forum_topics.asp?FID=6 - news & current events forum .  Visit any post in those forums as well.  Notice that they have slightly different navigation based on what forum you are in.  Also notice that if you go to the http://www.caribbeanchoice.com/recipes/ - recipe section , it has similar navigation as the http://www.caribbeanchoice.com/forums/forum_topics.asp?FID=2 - recipe forum .

Here is the code that I used for that.  It was placed in the header include where I wanted the custom navigation to appear.


<% If intForumID = 1 Then %>
<!-- #include virtual=/carnival/include/carnival_menu.asp -->
<% End If %>
<% If intForumID = 6 Then %>
<!-- #include virtual=/news/include/news_menu.asp -->
<% End If %>
<% If intForumID = 2 Then %>
<!-- #include virtual=/recipes/include/recipes_menu.asp -->
<% End If %>

This is an example and the paths above are fake.

You could do the same thing with your banners as well.  Just use the IF THEN statements like I did above and it will work out.

This method works in 7.01.  I haven't tested it in 7.5, although the concept would be the same.  It should work.  I doubt borg would change the name of the variables between 7.01 and 7.5.

I'm upgrading to 7.5 this weekend, so if what I posted above doesn't work in 7.5, I'll let you know.



-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: Gemma Fairchild
Date Posted: 31 October 2003 at 9:34am
Many thanks just whats needed, head banging on desk session coming up Wink

-------------
Gemma from http://www.herpetofauna.co.uk - RAUK


Posted By: wistex
Date Posted: 31 October 2003 at 3:33pm

No need for a head banging session.  It's actually quite simple to do.

  Let the smilie do all the head banging for you.



-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums



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