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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Best way to add banner to all pages
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

RedZone
Starting Member

USA
23 Posts

Posted - 17 June 2001 :  19:56:30  Show Profile
Hi, I want to be able to put our own banner across the top of all pages, but I don't want to use frames and I want more than just an image (available thru the admin options.) I'm sure this isn't a complex problem, I just want to know what you guys think is the best and easiest way to do this. Let's assume I'll have my own .asp file that contains the content I want as the header (or banner) and is available through the subroutine DisplayRedZoneBanner(). What file(s) and where should I place this sub?

Thanks in advance.

--RedZone

e3stone
Average Member

USA
885 Posts

Posted - 18 June 2001 :  00:37:35  Show Profile  Send e3stone an AOL message
inc_top.asp

<-- Eric -->


InsideWaco.com
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 18 June 2001 :  00:50:24  Show Profile  Visit gor's Homepage
yes, and stay away from inc_top_short.asp since you don't want banner in your popups

Pierre
Join the Snitz WebRing
Go to Top of Page

e3stone
Average Member

USA
885 Posts

Posted - 18 June 2001 :  04:55:51  Show Profile  Send e3stone an AOL message
question: do subs get processed everytime the page is loaded, or is it just as the names sounds, a "sub" function which is only processed when called? I'm not too familiar with subs, in general.

Are there advantages and disadvantages of using them?

sorry, this might be addressed elsewhere, already.

<-- Eric -->


InsideWaco.com
Go to Top of Page

gglosser
Starting Member

16 Posts

Posted - 22 June 2001 :  16:18:43  Show Profile  Visit gglosser's Homepage
quote:

inc_top.asp

<-- Eric -->




Eric,

Okay, that was easy. However, I would prefer to place the banner centered at the very top of each page, just the way you do in the Snitz Forums, with a horizontal rule beneath. Is there a MOD for this? I am using an Access 2000 database, and just installed Snitz this week at:
http://www.mathgoodies.com/forum/

TIA,
Gisele


Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 22 June 2001 :  16:28:20  Show Profile  Visit gor's Homepage
No need for a mod, here is the code I added in inc_top.asp just below the "top anchor" and before the actual start of the rest of the page:

<a name="top"></a>

<!-- start Smartzone -->
<table align="center" border="0" cellPadding="0" cellSpacing="0" width="100%">
<tr>
<td valign="top" width="100%" align="center">
<table border=0 width="95%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="<% =strPageBGColor %>" align="center">
<!-- start Random Ads include -->
<!--#INCLUDE FILE="../rnd_ads_02.asp" -->
<!-- end Random Ads include -->
<hr size=1>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- end Smartzone -->

<font face="<% =strDefaultFontFace %>">
<table align="center" border="0" cellPadding="0" cellSpacing="0" width="100%">

rnd_ads_02.asp is one of our QaD Addrotater pages containing code like this:

<%


'## This file selects and displays a random rating option....
Randomize

intRatingID = Int(rnd * 8)

Select case intRatingID
case 1,2,3,4
%>
<!-- Commision Junction Smartzone -->
<SCRIPT LANGUAGE="javascript" src="http://www.qksz.net/1e-2o7r"> </SCRIPT><br>
<!-- end Smartzone -->
<%
case else
%>
<!-- Windows 2000 Magazine -->
<a href="http://click.linksynergy.com/fs-bin/click?id=JZiMd2Xrqr8&offerid=26350.10000263&type=4&subid=0"><IMG alt="0928a" border=0 src="http://www.winntmag.com/linkshare/banners/0928a.gif"></a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=JZiMd2Xrqr8&bids=26350.10000263&type=4&subid=0">
<%
end select
%>

In this case it looks like I only have two different banners, but the first is a Commission Junction "Smartzone" which can contain 1 to 25 different banners.
Adding and removing bannercode is easy this way.

Pierre
Join the Snitz WebRing
Go to Top of Page

mneedham
New Member

United Kingdom
84 Posts

Posted - 24 June 2001 :  07:30:09  Show Profile
how would you add a banner if you only have the URL for it?



Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 24 June 2001 :  14:21:07  Show Profile  Visit gor's Homepage
quote:

how would you add a banner if you only have the URL for it?



You mean like an unpaid banner ? because otherwise they always provide you with the exact code you need to use for them to track clicks/leads/sales.

Otherwise I figure you mean you have the url of the banner image ?
Just use that in a image tag, i.e. replace

<!-- Windows 2000 Magazine -->
<a href="http://click.linksynergy.com/fs-bin/click?id=JZiMd2Xrqr8&offerid=26350.10000263&type=4&subid=0"><IMG alt="0928a" border=0 src="http://www.winntmag.com/linkshare/banners/0928a.gif"></a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=JZiMd2Xrqr8&bids=26350.10000263&type=4&subid=0">

with

<a href="http://www.aspin.com/"><IMG alt="Aspin" border=0 src="http://www.aspin.com/images/aspin/banners/aspin468x60.gif"></a>


Note: make sure you link the correct way. My example for Aspin shows an "incorrect" way because they ask you to save the images you use on your own server. I linked to the one on their server just for this example.



Pierre
Join the Snitz WebRing
Go to Top of Page

mneedham
New Member

United Kingdom
84 Posts

Posted - 24 June 2001 :  16:53:09  Show Profile
Thanks!

Say I get a paid banner and they give me the code which I have to implement, where would you suggets I put it?

Before any of the other HTMl or somewhere else on the inc_top.asp page

Cheers

Go to Top of Page

SalmanKhana
Average Member

USA
961 Posts

Posted - 02 August 2001 :  01:14:11  Show Profile
quote:

rnd_ads_02.asp is one of our QaD Addrotater pages containing code like this:

<%


'## This file selects and displays a random rating option....
Randomize

intRatingID = Int(rnd * 8)

Select case intRatingID
case 1,2,3,4
%>
<!-- Commision Junction Smartzone -->
<SCRIPT LANGUAGE="javascript" src="http://www.qksz.net/1e-2o7r"> </SCRIPT><br>
<!-- end Smartzone -->
<%
case else
%>
<!-- Windows 2000 Magazine -->
<a href="http://click.linksynergy.com/fs-bin/click?id=JZiMd2Xrqr8&offerid=26350.10000263&type=4&subid=0"><IMG alt="0928a" border=0 src="http://www.winntmag.com/linkshare/banners/0928a.gif"></a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=JZiMd2Xrqr8&bids=26350.10000263&type=4&subid=0">
<%
end select
%>

In this case it looks like I only have two different banners, but the first is a Commission Junction "Smartzone" which can contain 1 to 25 different banners.
Adding and removing bannercode is easy this way.

Pierre
Join the Snitz WebRing



Ok I understand the first part of your answer gor.

but about this random ads file, can we add more banners below this code
Select case intRatingID
case 1,2,3,4
%>

??

let me know please.

Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 02 August 2001 :  02:25:13  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
quote:

but about this random ads file, can we add more banners below this code



by the look of it, i think you would do it like this


<%


'## This file selects and displays a random rating option....
Randomize

intRatingID = Int(rnd * 8)

Select case intRatingID
case 1
%>
<!-- Commision Junction Smartzone -->
<SCRIPT LANGUAGE="javascript" src="http://www.qksz.net/1e-2o7r"> </SCRIPT><br>
<!-- end Smartzone -->
<%
case 2
<a href...>another banner</a>
case 3
<a href...>another banner</a>
case 4
<a href...>another banner</a>
case 5
<a href...>another banner</a>
case 6
<a href...>another banner</a>
case 7
<a href...>another banner</a>

case else
%>
<!-- Windows 2000 Magazine -->
<a href="http://click.linksynergy.com/fs-bin/click?id=JZiMd2Xrqr8&offerid=26350.10000263&type=4&subid=0"><IMG alt="0928a" border=0 src="http://www.winntmag.com/linkshare/banners/0928a.gif"></a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=JZiMd2Xrqr8&bids=26350.10000263&type=4&subid=0">
<%
end select
%>


- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource
Go to Top of Page

SalmanKhana
Average Member

USA
961 Posts

Posted - 02 August 2001 :  02:29:00  Show Profile
great, i'll try it out. thanx for the reply alan

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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07