Web Wiz
Home
Home
Hosting Services
Hosting Services
Knowledgebase
Knowledgebase
Community and Support Forums
Support Forums
Customer Login
Customer Login

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

Windows Web Hosting 30 Day Free Trial

Windows Web Hosting 30 Day Free Trial

Windows Hosting 30 Day Free Trial, with no obligation, on all our Windows Web and Reseller Hosting Packages.

For moreĀ informationĀ see our Windows Hosting 30 Day Free Trial page.

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: 24
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
Avatar

Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1543
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: 24
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
Avatar

Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1543
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: 24
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
Avatar

Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1543
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: 24
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
  Share Topic   

Forum Jump Forum Permissions View Drop Down



Become a Fan on Facebook Follow us on Twitter Web Wiz on Google+ Community Forums Web Wiz Blogs Web Wiz News
Company Information | Contact Web Wiz | Terms & Conditions | Privacy Policy

Prices exclude VAT unless otherwise stated - $, € prices shown as a guideline only
Web Wiz Ltd, Unit 10E Dawkins Road Ind. Est, Poole, Dorset, UK, BH15 4JD
Copyright ©2001-2012 Web Wiz - All rights reserved