Gossamer Forum
Home : Products : Links 2.0 : Customization :

Ad Banner - Novice Question

Quote Reply
Ad Banner - Novice Question
I'd like to have a random banner ad at the top of each page. When using static links, I simply used a CGI script I called randomimage.cgi. Unfortunately, now that I've switched over to Link 2.0 (or am trying to) I don't know how to implement this script, or where to put it.

I've tried making it a global, but it seems just to put the random image on the admin page, and not on the pages I am trying to create (using the templates I created). Can someone please help?

Thanks,
Noah
Quote Reply
Re: Ad Banner - Novice Question In reply to
Here!
http://www.codes-central.com/WebAdverts-Links.shtml

------------------
By Jānio
-=-=-=-=-=-=-=
http://www.brlink.com.br
Quote Reply
Re: Ad Banner - Novice Question In reply to
Janio,

Hi there. Does this only work with certain banner programs? I tried using your codes and the banner does not appear on my .shtml or .cgi (e.g., add, modify, etc.) based pages generated by links.

Any suggestions?

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Ad Banner - Novice Question In reply to
Well, that is for WebAdvert users that use normal webadvert subroutine which eventually will print above html code. This subroutine will show the banners to where the code is located.

I haven't tried using other banner programs Eliot but this subroutine works for WebAdverts.
Quote Reply
Re: Ad Banner - Novice Question In reply to
Where can I get this WebAdverts script? Despite the fix, I couldn't get it to work with my random image script.

Thanks,
Noah
Quote Reply
Re: Ad Banner - Novice Question In reply to
Ok!
You can find WebAdverts in http://www.awsd.com/scripts

In the manuscript the alterations of the mod are wrong, it lacks a comma.
former:
banner => \ &insertadvert

it should be like this:
banner => \ &insertadvert,

Mod is in:
http://www.codes-central.com/WebAdverts-Links.shtml
I wait to have helped!

------------------
By Jānio
-=-=-=-=-=-=-=
http://www.brlink.com.br
Quote Reply
Re: Ad Banner - Novice Question In reply to
Janio, you put a comma when there is another variable after the banner. If the banner variable is the last one... there should be no comma needed.
Quote Reply
Re: Ad Banner - Novice Question In reply to
Hmm...Well, I will have to play with the insertadvert sub-routine. It does not seem to work with my particular Banner program. Oh well.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Ad Banner - Novice Question In reply to
What banner program you are using Eliot? If you are using WebAdvert, there should be no problem. When I first installed this mod, it works fine indeed. As I said, not sure about other programs but if somebody has use this subroutine for other banner program. Do post the name of the program.
Quote Reply
Re: Ad Banner - Novice Question In reply to
The name of the program is SB-Soft AdWizard Version 1.2. It is an older banner program. It uses SSI.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Ad Banner - Novice Question In reply to
I can see some of you have successfully installed the Webadverts mod. I could not. I tried everything, at least I think so, but my banners do not print in my .shtml pages.

If I paste the code as provided and modifying
the path to my ads.pl script I receive no answer of the mod.
If I put the path between " or ' instead of the provided character, some kind of inverted ', I recieve "error proccessing your request" or something like that.

Can anybody help me with a suggestion?

Thanks.
Quote Reply
Re: Ad Banner - Novice Question In reply to
Dear Eliot

Where do I find that software? (SB-Soft AdWizard Version 1.2.) tends he in hands can see what can do to rotate him under Links 2.x.
- = - = - = - = - = - = - = - = -

Could anybody feel a help in a problem?
How to generate aleatory numbers in the categories and pages of results of the search?
former: Page=XX> Page=125
each category would have a different number.

I thank the help of all....

------------------
By Jānio
-=-=-=-=-=-=-=
http://www.brlink.com.br
Quote Reply
Re: Ad Banner - Novice Question In reply to
The problem could be that the particular program I am using may need to have the relative path rather than the absolute path to the banner cgi file. I will try that and see if it works.

BTW: SB-Soft seems to have left cyberspace. Their web site is unreachable. Quite a shame because I really like their banner program.

I may check out WebAdverts though.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Ad Banner - Novice Question In reply to
Just looked at the mod on codes-central.

When you say path_to do you mean the usr/bin... thing or the www.domain.com bit because ssi is not showing with the www. bit.

I am a bit new to ssi so was wondering.

Thank you.

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Ad Banner - Novice Question In reply to
Use the server path and not URL path to the ads.pl

It should be this way:

Quote:
/home/www/username/ads/ads.pl

Do make sure it is correct or else it will print error.

Diego, does your server allow you to use shtml files?
Quote Reply
Re: Ad Banner - Novice Question In reply to
I found this out from widgetz.

If you want your server to go through .html looking for ssi calls (saves renaming to .shtml) you only have to add a small line of code in your htacess file:

AddType text/x-server-parsed-html .html

I have almost no knowledge on the working of this file but i know that it worked for me, ssi calls now work in .html files. I would recommend checking with your web host that you will not be screwing things up by editing this file. Just a thought :-)


---Seperate Topic---

Does anyone know how to adapt webadverts so that it will show, for example, valueclick banenrs, ie have the numbers change randomly so that a new banner is displayed on every page?

Thanks.

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Ad Banner - Novice Question In reply to
Re: Does anyone know how to adapt webadverts so that it will show, for example, valueclick banenrs, ie have the numbers change randomly so that a new banner is displayed on every page

Use the $time tag in your banner call. It places current time down to seconds, should be random enough.
chmod
Quote Reply
Re: Ad Banner - Novice Question In reply to
I have tried everything from putting the absolute path to the file, changing the quotation marks, etc.

Still not working. Frown

Again, I am using another banner program, but since it relies on SSI as does WebAdverts, I don't know why it will not work.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Ad Banner - Novice Question In reply to
Thank you for the $timetag idea. will try it now :-)
Quote Reply
Re: Ad Banner - Novice Question In reply to
Eddie, Yes, my server accepts .shtml pages. In fact, when Yasser's mod did not work for me I adapted it to call WebAdverts by directly putting the traditional SSI call (<!--#exec cgi="../my path to/ads.pl"--> ), but the banners appears in the home page and the path (relative path) does not work for the subcategories.
Finally, I chose to call WebAdverts using:
<A HREF="/my path to/ads.pl?banner=NonSSI;page=<%title%"><IMG SRC="/my path to/ads.pl?page=<%title%>"></A>
in my categories pages.
Any opinion?
Thanks in advance and sorry because of my english.
Quote Reply
Re: Ad Banner - Novice Question In reply to
I am with Eliot - I can't get Webadverts to work at all, though I can use a different cgi script to randomly serve images. I don't get any response from the webadverts script, so I have no idea what's going on.
Quote Reply
Re: Ad Banner - Novice Question In reply to
I tried the $timetag idea in the link but all that happens is i get this as the banner link:

http://www21.valueclick.com/cgi-bin/redirect?host=h0031402&b=$timetag

i am sure i am doing something silly here. how and where should i put the $timetag thing?

Thanks

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Ad Banner - Novice Question In reply to
I think that it I was able to get the WebAdverts/Links finally working. The only problem that I am having is that the same banner is appearing every time I Reload the page.

I even purged me cache to see if that would help....but the same banner still shows.

-------------------------
%globals = (
date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
site_title => $build_site_title,
css => $build_css_url,
banner => \&insertadvert,
);

sub insertadvert {
my $ad = `/home2/bikerheaven/public_html/exchange/cgi/ads.cgi`;
$ad =~ s,Content-type:\stext/html,,;
return $ad;

}

---------------------------------
home.html has:

<center>
<%banner%>
</center>
----------------------------------

Any assistance would be greatly appreciated.

Rick
Quote Reply
Re: Ad Banner - Novice Question In reply to
About this line:
my $ad = `/absolute/path/to/ads.pl`;
What about NT?
thanks
Quote Reply
Re: Ad Banner - Novice Question In reply to
nevermind

[This message has been edited by Bmxer (edited January 21, 2000).]