Gossamer Forum
Home : Products : DBMan : Customization :

making Webadvert work with DBMan

Quote Reply
making Webadvert work with DBMan
Hi,

I spent a good hour to read different posts and threads about this subject, but...

The question is possibly much more easier than the answer, but I definitely would like to kow how to make WedAbdvert script work with DBMan.
Webadverts is most definitely one of the best ad banner rotation programs on the market today. This software has the ability to load from either a SSI call (Server Side Include) or from a standard image tag, making it very diverse in it usage.
This last point should be enough, BUT, the banners do not display each time a dynamic page is loaded, and most of the time, the link points to a blank page...(with IE5 or Netscape 4.7)

Did someone know how to make it work in DBman ?
A good answer should help a lot of DBman unsers...

Many thanks in advance

Seth
Quote Reply
Re: making Webadvert work with DBMan In reply to
I don't know anything about WebAdverts. But you might try searching for either WebAdverts or SSI in both of the DBMan forums. I'm sure it's been mentioned before.


------------------
JPD





Quote Reply
Re: making Webadvert work with DBMan In reply to
Search in the DBMAN Installation Forum for SSI. There was a Thread in there that discusses this.

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: making Webadvert work with DBMan In reply to
I could not get ssi working but image tags works fine for me as far as I know.

Is this the code you are putting in your html.pl header section.

<div align="center"><table border="0" cellpadding="0">
<tr>
<td><A HREF="http://www.yourdomain.com/cgi-bin/ads.pl?banner=NonSSI;page=01" target="_top"><IMG SRC="http://www.yourdomain.com/cgi-bin/ads.pl?page=01" target="_top"></A></td>
</tr>
</table>
</div>
Quote Reply
Re: making Webadvert work with DBMan In reply to
There is a little blurb in the webadverts readme file on how to use it on cgi pages... here's what I have on my site.

Put this in your db.cgi
Code:
sub insertadvert {
require "/path/to/ads_display.pl";
$adverts_dir = "/path/to/ads";
display_cgi = "url/to/ads.pl";
$advertzone = "";
$ADVlogIP = 0;
$NonSSI = 0;
$DefaultBanner= "";
$ADVNoPrint = 1;
&ADVsetup;
$ADVUseLocking = 1;
}

Then put the following in your html.pl where you want the ad to display...

Code:
|;&insertadvert;print qq|

Hope that helps.

------------------
Jason
Extreme mtb
extreme.nas.net

[This message has been edited by jdulberg (edited November 05, 1999).]
Quote Reply
Re: making Webadvert work with DBMan In reply to
This is not totally related to DBMan - but saw here where you are using Webadverts - I have installed webadverts and everything seems to be working fine - except the banners are not displaying.

I don't think it is DBMan related - because the ads aren't displaying outside of DBMan either.

Can anyone who is using webadverts shed any light on what the problem may be?

TIA !
--------------
donm
Quote Reply
Re: making Webadvert work with DBMan In reply to
If you use a firewall it is a probably the problem.
Remove the option "Ads"
Serge

------------------
Quote Reply
Re: making Webadvert work with DBMan In reply to
Seth,

Thanks - actually it turned out that it was indeed a problem with WebAdverts. I have corrected the problem and everything is now working properly.



------------------
donm
All those who believe in psychokinesis, please raise my hand.




Quote Reply
Re: making Webadvert work with DBMan In reply to
From where 'Ads' must be removed?
Thank you for your help.

------------------
Thank you,

Lee
Quote Reply
Re: making Webadvert work with DBMan In reply to
Ads are removed in the WebAdverts administration screen...

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------









Quote Reply
Another way to get Webadvert working In reply to
If I can help a little, here is what I did to get WebAdverts working:

sub insertadvert {
my $ad = '<CENTER><A HREF="/cgi-bin/ads.cgi?advert=NonSSI&page=12"><IMG SRC="/cgi-bin/ads.cgi?page=12"></A></CENTER><p>';
$ad =~s,Content-type:\stext/html,,;
return $ad;}

I just dropped the full code to call a Non-SSI banner (WebAdverts does both). I did this because the code higher in the thread did not work, probably because it does not specify non-SSI, but rather lets you enter the parameters within the subroutine.

Quick and dirty, but now my banners are showing up!


In your html.pl file, one must still add the call to the subroutine as stated higher.


print &insertadvert;
print qq|
|;

Quote Reply
A way to get another banner script working? In reply to
I have been following this thread and I understand that this problem isn't necessarily related to any banner script.
I have a non-SSI banner script working very well on ANY HTML-page, except when called from within *_html.pl.

There, most of times, the banner isn't loading properly.

Does somebody know if a small loop to delay the loading process of the banner-script does improve display or if there might be another solution?

I use the Show And Sell banner script.

/CSky