Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Different banner for each forum
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Different banner for each forum

 Post Reply Post Reply Page  123>
Author
charades View Drop Down
Newbie
Newbie


Joined: 03 June 2007
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote charades Quote  Post ReplyReply Direct Link To This Post Topic: Different banner for each forum
    Posted: 02 January 2008 at 1:57pm
Hi,
 
I am wondering is it possible to have different banner image for different banner if so I appreciate if anyone can help me in directing me how to modify the code.
 
 
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 03 January 2008 at 12:50pm
theres different ways it can be done.

you could add a field to the database and store the image location.

or you could have a function that does a different link.


at the top of the /forum/includes/header.asp file add

<% Call HeaderImage(intForumID) %>


then add to the functions_common.asp file:


Private Function HeaderImage(intForumID)
    select intForumID
    case 1
        strTitleImage = "location to image"
    case 2
        strTitleImage = "location to image"
    end select
end function


then just add and edit the pages below for each forum. 


    case 2
        strTitleImage = "location to image"


the number is the ID of the forum.
you can find this out by looking at the FID= in links, for example:

Quote http://forums.webwiz.net/forum_topics.asp?FID=24


This would be 24.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
hotice08 View Drop Down
Groupie
Groupie


Joined: 11 March 2008
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote hotice08 Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2008 at 1:19pm
I tried doing the same. But Didn't had any luck.
 
I am getting this on top of the page.
 

.Cookies(strCookiePrefix & "pID").Path = strCookiePath End Sub %>

Here are the changes I did. Please correct me where I went wrong.
 
In Header.asp File change which I did is in bold letters
 
I placed the call for HeaderImage in header.asp in between <body> and <table..... as shown here.
 
 
<body>
<% Call HeaderImage(intForumID) %>
<table class="basicTable" cellspacing="0" cellpadding="3" align="center">.
------------------------------------------------- 
and in functions_common.asp I added 
 
Private Function HeaderImage(intForumID)
 Dim strTitleImage   
 Select Case intForumID   
  Case 1
         strTitleImage = "/forum_images/abc.jpg"   
  Case Else     
   strTitleImage = "/forum_images/123.jpg"   
 End Select
End Function
 
I am not a asp Programmer and I have no clue on how these things work, So please don't mistake me and help me in resolving this. Any help is greatly appreciated.
 
Thanks 


Edited by hotice08 - 12 March 2008 at 12:20pm
Back to Top
hotice08 View Drop Down
Groupie
Groupie


Joined: 11 March 2008
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote hotice08 Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2008 at 1:31pm
I really need someone's help in directing me how I can achieve this.
 
I can save it in the database as an image or put them in one folder.
But in either of the scenarios I appreciate if anyone can help me in where to modify the code so that I can can see different banner for different forum.
 
 
Please help me
 
Back to Top
billd3 View Drop Down
Senior Member
Senior Member


Joined: 19 February 2003
Location: United States
Status: Offline
Points: 530
Post Options Post Options   Thanks (0) Thanks(0)   Quote billd3 Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2008 at 2:50pm
I, too, would like to be able to have a different image over each "forum"
For engines, a nice 390 V8 image would be great, for the transmission section, perhaps a T5 transmission image, that sort of thing.
What about somewhere doing a "if xxx then" sort of thing?
If forumid=24 then xxxxxxx
else
if forumid=19 then xxxxx

and so on?

How easy a mod would this be?
I've got someone who could do some VERY nice flash-headers as used in
http://theamcpages.com

This would be for the forum at http://theamcforum.com/forum

BillD
http://theamcpages.com
http://theamcforum.com
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2008 at 6:07pm



Sorry, looking at this again, it maybe better to do:




at the top of the /forum/includes/header.asp file add

<% strTitleImage = HeaderImage(intForumID,strTitleImage) %>


then add to the functions_common.asp file:


Private Function HeaderImage(intForumID,strTitleImage)
    Dim strOutput

    select intForumID
    case 1
        strOutput = "location to image"
    case 2
        strOutput = "location to image"
    case else
       strOutput = strTitleImage
    end select

    HeaderImage = strOutput
end function


This would be an easy mod to build, you just do the following
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
hotice08 View Drop Down
Groupie
Groupie


Joined: 11 March 2008
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote hotice08 Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2008 at 6:38pm
Thanks Scotty I will try this evening. Many thanks for prompt response
Back to Top
billd3 View Drop Down
Senior Member
Senior Member


Joined: 19 February 2003
Location: United States
Status: Offline
Points: 530
Post Options Post Options   Thanks (0) Thanks(0)   Quote billd3 Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2008 at 1:02pm
This ability would be worth buying someone a 6-pack of a good German beer, or if you are British, tea. 
I look forward to seeing what you come up with. You folks are just plain talented.
BillD
http://theamcpages.com
http://theamcforum.com
Back to Top
 Post Reply Post Reply Page  123>

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.