Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Banner associated with a specific forum
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Banner associated with a specific forum

 Post Reply Post Reply
Author
Gemma Fairchild View Drop Down
Newbie
Newbie
Avatar

Joined: 19 June 2003
Location: United Kingdom
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gemma Fairchild Quote  Post ReplyReply Direct Link To This Post Topic: Banner associated with a specific forum
    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.

Back to Top
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 11:54am

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

It's fairly simple to do.

 

Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post 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 recipe section of the site to the recipe forum in the forums.

To see what I am talking about, view the recipe forum on our site, and then view the 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 recipe section, it has similar navigation as the 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.

Back to Top
Gemma Fairchild View Drop Down
Newbie
Newbie
Avatar

Joined: 19 June 2003
Location: United Kingdom
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gemma Fairchild Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2003 at 9:34am
Many thanks just whats needed, head banging on desk session coming up Wink
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post 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.

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.