Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Adding code to a specific forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 16 September 2004 :  12:23:11  Show Profile  Visit MarkJH's Homepage
I would like to be able to add different banner ads to different forums. So Forum A would get Ad A and Forum B would get Ad B etc.

Is there a way of doing this in forum.asp and topic.asp? Hard-coding is fine.

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 16 September 2004 :  13:44:08  Show Profile  Visit PeeWee.Inc's Homepage
There was a MOD once so that each forum_id used it's own title image. If you can find it, you could MOD that.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 16 September 2004 :  14:13:03  Show Profile  Visit MarkJH's Homepage
I actually tried looking for that MOD before I posted. Couldn't find it anywhere.

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 17 September 2004 :  13:05:20  Show Profile  Visit MarkJH's Homepage
Any help with this would be great.

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 20 September 2004 :  18:53:23  Show Profile  Visit MarkJH's Homepage
Nobody?

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 21 September 2004 :  03:19:36  Show Profile
In inc_header.asp add <!--#INCLUDE FILE="inc_func_posting.asp" --> below <!--#INCLUDE FILE="inc_func_common.asp"-->.

That gives you everything you need to slap an if else with forum_id; I know it works for images you add to header, but didn't try it in other files (like slaping things into forum.asp or topic.asp)
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 26 September 2004 :  09:48:44  Show Profile
I have a slimmed down version of my forum sponsor mod. You can check it out here. It's only been tested with mySql though.
It might be a bit more than you want.
If you have the banners on site, you could try renaming the banners to the forum id number.

The banner for forum 16 would be called 16.gif.
Response.Write  "<img src=""banner_folder/" & Forum_ID & ".gif"" height=""50px"" width=""300px"" title=""title_stuff"" />"


If the banners are not on site and you can't rename them, You could maybe do it with a function in inc_func_common.asp.
function GetBanner(fID)
'## fID = Forum ID number
        dim strBanner :strBanner = ""
        select case fID
                case 1
                        strBanner = strBanner & "<img src=""forum_1_banner.gif"" height=""50px"" width=""300px"" title=""title_stuff"" />"
                case 2
                        strBanner = strBanner & "<img src=""forum_2_banner.gif"" height=""50px"" width=""300px"" title=""title_stuff"" />"
                case else
                        strBanner = strBanner
         end select
         GetBanner = strBanner
end function

And the call it in forum or topic.asp
Response.Write GetBanner(Forum ID variable)


Just some thoughts

    _-/Cripto9t\-_

Edited by - cripto9t on 26 September 2004 09:52:10
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 28 September 2004 :  13:38:20  Show Profile  Visit MarkJH's Homepage
quote:
I have a slimmed down version of my forum sponsor mod. You can check it out here. It's only been tested with mySql though.
That's the MOD I was trying to find, cripto9t. I'm presuming you took it down from Snitz?

That code is almost the exact thing I was looking for.

Rather than an actual banner, I want to put up affiliate code related to each forum. I think it should still work though with some tweaking.

Thank you!

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/

Edited by - MarkJH on 28 September 2004 13:39:21
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 29 September 2004 :  08:06:12  Show Profile
quote:
That's the MOD I was trying to find, cripto9t. I'm presuming you took it down from Snitz?


No, the link should be around in the archives of this forum. I just replaced the version 1 zip with version 2.
quote:
I think it should still work though with some tweaking.

If you have any problems or questions, let me know .
quote:
Thank you!
Your welcome.

    _-/Cripto9t\-_
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07