Re: Banner DNA
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13809
interpreted = N
texte = > >I am attempting to write some WebDNA to handle a simple banner ad setup,> >and for some reason it isn't working.> >> >Here is my code:> >> >[search db=/nnm/Ads/Ads.db&eqRecordNumberdata=[random]]> > [founditems]> >
>SRC=[Path][Filename] WIDTH=400> >HEIGHT=60 BORDER=0> | > > [/founditems]> > [/search]> >> >The database called Ads.db looks like this:> >> >RecordNumber Path Filename> >1 ../Ads/ ccc.gif> >2 ../Ads/ gsopen.swf> >3 ../Ads/ nnm.gif> >. . .> >. . .> >. . .> >98 ../Ads/ testbanner.gif> >99 ../Ads/ testbanner.gif> >100 ../Ads/ testbanner.gif> >> >I don't get any error messages, it just doesn't seem to process. I have> >replaced the [random] tag with a hard coded number, at that doesn't> >work.> >> >I have hard coded the [Path][Filename] tags with ../Ads/nnm.gif and> >this does work. So I believe the problem is in the WebDNA code.> > [search> db=/webcatalog/banners.db&wobcatdatarq=homepage&bnamesort=1&bnamesdir=ra&all> hit=1&max=1]> [foundItems]>
height=[bheight] border=0>> [/foundItems]> [/search]> > See the difference in my snip the &bnamesdir=ra which is the randon generation> > So try> > [search> db=/nnm/Ads/Ads.db&neRecordNumberdata=0&recordnumbersort=1&recordnumbersdir=> ra&allhit=1&max=1]> > or something very close to that :)> > Until I put the allhit in there it didn't rotate them out in a more random> basis. I seemed to get the same one or two banners more than the others.> > In my example above I have certain banners that are only shown on my> homepage that is why it is wobcatdatarq=homepage.> Thanks Gary for your quick response.I like your suggestion very much and I tried it, but I received the sameresponse. That is to say, I didin't get any banner.It looks like WebCat is processing the database and returning nothing. Idon't know why?Any ideas would be appreciated.Thanks,Duane NeedhamNeedham New Media
Associated Messages, from the most recent to the oldest:
> >I am attempting to write some WebDNA to handle a simple banner ad setup,> >and for some reason it isn't working.> >> >Here is my code:> >> >[search db=/nnm/Ads/Ads.db&eqRecordNumberdata=
[random]]> >
[founditems]> >
>SRC=[Path][Filename] WIDTH=400> >HEIGHT=60 BORDER=0> | > > [/founditems]> > [/search]> >> >The database called Ads.db looks like this:> >> >RecordNumber Path Filename> >1 ../Ads/ ccc.gif> >2 ../Ads/ gsopen.swf> >3 ../Ads/ nnm.gif> >. . .> >. . .> >. . .> >98 ../Ads/ testbanner.gif> >99 ../Ads/ testbanner.gif> >100 ../Ads/ testbanner.gif> >> >I don't get any error messages, it just doesn't seem to process. I have> >replaced the
[random] tag with a hard coded number, at that doesn't> >work.> >> >I have hard coded the [Path][Filename] tags with ../Ads/nnm.gif and> >this does work. So I believe the problem is in the WebDNA code.> > [search> db=/webcatalog/banners.db&wobcatdatarq=homepage&bnamesort=1&bnamesdir=ra&all> hit=1&max=1]>
[founditems]>
height=[bheight] border=0>> [/foundItems]> [/search]> > See the difference in my snip the &bnamesdir=ra which is the randon generation> > So try> > [search> db=/nnm/Ads/Ads.db&neRecordNumberdata=0&recordnumbersort=1&recordnumbersdir=> ra&allhit=1&max=1]> > or something very close to that :)> > Until I put the allhit in there it didn't rotate them out in a more random> basis. I seemed to get the same one or two banners more than the others.> > In my example above I have certain banners that are only shown on my> homepage that is why it is wobcatdatarq=homepage.> Thanks Gary for your quick response.I like your suggestion very much and I tried it, but I received the sameresponse. That is to say, I didin't get any banner.It looks like WebCat is processing the database and returning nothing. Idon't know why?Any ideas would be appreciated.Thanks,Duane NeedhamNeedham New Media
Duane Needham
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebCat2final1 crashes (1997)
[WebDNA] SEARCH question - SHOWIF - HIDEIF question (2011)
[ot] table gap help?!? (2001)
[bump -SMSI] Sitebuilder (2004)
Please post more "exceptions to the rules" ... (2005)
WebCatalog for Postcards ? (1997)
Any limit to [include] (1997)
copyfile (2003)
How do I handle extra spaces? (2002)
New NT beta available (1997)
[SearchString] usage (1997)
Test (2003)
Moment of Thanks (1997)
[WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (2012)
View Source from cache (1997)
Developers in Washington State (2004)
Combining search criteria (2000)
Advanced WebCat Guidelines - do they exist beyond docs (1999)
[ot] ShowIf & HideIf Question (1998)
Need help from WebDNA user using WebStar Plugin (2005)