Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Help with Different Adverts for each Forum
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help with Different Adverts for each Forum

 Post Reply Post Reply
Author
Zen View Drop Down
Newbie
Newbie


Joined: 05 December 2011
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zen Quote  Post ReplyReply Direct Link To This Post Topic: Help with Different Adverts for each Forum
    Posted: 05 December 2011 at 7:59pm
Hey there, im new to WebWiz forums. I have just taken over looking after a site which has been hosted with you guys for the past 3 years, the old admin saddly is no longer around. I have never dealt with .asp before so im very much learning from the start.

What i need is a mod that will make a new image display at the top of different forums. Example:

Forum 1 displays this banner:

http://i.imgur.com/xzV6Q.jpg

Forum 2 displays this banner:

http://i.imgur.com/izj2E.jpg

Hope you understand what i mean, we have forums for advertisers and they need their own banner displaying at the top of their own section.

Thanks.
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: 12 December 2011 at 3:34pm
If you only want to display a header image for each advertiser rather than an actual advert banner, then a tutorial I wrote to Change the banner for forums may be of some help.

How ever, based on the screenshots in your post, this would change the forum logo rather than add a new image, but it could be adapted relatively easily to suit your needs.
S2H.co.uk - WebWiz Mods and Skins

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


Joined: 05 December 2011
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zen Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2011 at 10:06pm
Hi Scotty, thanks for your reply.

Yes, i did check your tutorial out, and even had it running, but its not what im after so removed it. I just need the banner at the top to change per a different forum (Like in the images above) not the actuall site logo. I had a little play with trying to make it work for what i needed but had no luck, with fear of messng things up and causing long term damage i put it all back to default.

Any chance of you taking a look for me?

Thanks.
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: 13 December 2011 at 3:11pm

In my tutorial, instead of adding the following line:

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


Add the following to the bottom of the "includes/status_bar_inc.asp" (or similar - dont know the file name off top of head):

<% 
     If HeaderImage(intForumID,'') <> "" Then
          Response.Write("<p align='center'><img src='" & HeaderImage(intForumID,'') & "' /></p>")
     End If
%>


Other than that, the rest of the tutorial should be fine



S2H.co.uk - WebWiz Mods and Skins

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


Joined: 05 December 2011
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zen Quote  Post ReplyReply Direct Link To This Post Posted: 13 December 2011 at 10:29pm
Hi Scott,

I done exactly has you told me above. But the forum then returns with a blank white screen and this message:

Microsoft VBScript compilation  error '800a03ea'

Syntax error

/forum/includes/status_bar_header_inc.asp, line 151

If HeaderImage(intForumID,'') <> "" Then
--------------------------^
Thanks.
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: 14 December 2011 at 10:56am
Sorry, I've been doing a lot of PHP lately.

Try this instead:

<% 
     If HeaderImage(intForumID,"") <> "" Then
          Response.Write("<p align='center'><img src='" & HeaderImage(intForumID,"") & "' /></p>")
     End If
%>

S2H.co.uk - WebWiz Mods and Skins

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


Joined: 05 December 2011
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zen Quote  Post ReplyReply Direct Link To This Post Posted: 15 December 2011 at 11:00pm
Nice Scotty, worked a treat. Thanks alot. :D
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.