Re: Banner DNA

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13808
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/ccm.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] [/foundItems] [/search]See the difference in my snip the &bnamesdir=ra which is the randon generationSo 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.=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Associated Messages, from the most recent to the oldest:

    
  1. Modifying databases manually (was Re: Banner DNA) (Kenneth Grome 1997)
  2. Re: Banner DNA (grichter@panavise.com (Gary Richter) 1997)
  3. Re: Banner DNA (Grant Hulbert 1997)
  4. Re: Banner DNA (Duane Needham 1997)
  5. Re: Banner DNA (Grant Hulbert 1997)
  6. Re: Banner DNA (grichter@panavise.com (Gary Richter) 1997)
  7. Re: Banner DNA (Kenneth Grome 1997)
  8. Re: Banner DNA (Duane Needham 1997)
  9. Re: Banner DNA (Kenneth Grome 1997)
  10. Re: Banner DNA (Duane Needham 1997)
  11. Re: Banner DNA (grichter@panavise.com (Gary Richter) 1997)
  12. Banner DNA (Duane Needham 1997)
>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/ccm.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] [/foundItems] [/search]See the difference in my snip the &bnamesdir=ra which is the randon generationSo 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.=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== grichter@panavise.com (Gary Richter)

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:

Protect vs Authenicate (1997) Progress !! WAS: Trouble with formula.db (1997) First postarg not taking in $Commands (1997) Repeating Fields (1997) Stopping a [Loop] in mid-stream ... (1997) username = 115 (1999) GuestBook example (1997) [WebDNA] php/mySQL version of WebDNA Speed Test? (2009) Document Contains No Data! (1997) Speed Test Results Dell 2650 Xeon 2.4ghz (2002) Signal Raised Error (1997) Missing Cart Information (2003) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Requiring that certain fields be completed (1997) Searching (1998) Does not begin with.... (2003) building / customizing stores (2000) Javascript Stored in a Database (2003) date sorting and 'template (1997) Re:Off Topic (Help!!!! w/Webstar) (1999)