Re: two unique banners on one page
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13363
interpreted = N
texte = At 12:53 PM 9/9/97, you wrote:>>I recall (Grant I think) put some webDNA up that would allow for a search >>to return two unique banners.>>I think the simplest way to handle this is to have two separate databases. I did put up some WebDNA once, but it was awfully complex.>>Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Grant,I tried using two databases with random sorts and the problem I have isthat the could always generates the same pair of ads. Here is the code:[search db=dbs/ad1.db&eqlivedatarq=Y&skusort=1&skusdir=ra&max=1] [founditems] [sku] [showif [website]!]
[/showif]
[showif [website]!] [/showif] [/foundItems][/search][search db=dbs/ad2.db&eqlivedatarq=Y&skusort=1&skusdir=ra&max=1] [founditems] [sku] [showif [website]!]
[/showif]
[showif [website]!] [/showif] [/foundItems][/search]Basically the [sku] that is returned for each ad is identical, so the firstad in database one is always paired up with the first ad in database twoand so on.Is there any way to make both ads truly random?.....................................................................W O R L D P O I N T I N T E R A C T I V E DANIEL CAMERON web engineerHonolulu San Francisco 2800 woodlawn drive 222 sutter street dcameron@worldpoint.com suite 170 sixth floor www.worldpoint.com honolulu, hi 96822 san francisco, ca 94108 voice.808.539.3932 fax.808.539.3943 page.808.598.8640.....................................................................
Associated Messages, from the most recent to the oldest:
At 12:53 PM 9/9/97, you wrote:>>I recall (Grant I think) put some webDNA up that would allow for a search >>to return two unique banners.>>I think the simplest way to handle this is to have two separate databases. I did put up some WebDNA once, but it was awfully complex.>>Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Grant,I tried using two databases with random sorts and the problem I have isthat the could always generates the same pair of ads. Here is the code:[search db=dbs/ad1.db&eqlivedatarq=Y&skusort=1&skusdir=ra&max=1]
[founditems] [sku] [showif [website]!]
[/showif]
[showif [website]!] [/showif] [/foundItems][/search][search db=dbs/ad2.db&eqlivedatarq=Y&skusort=1&skusdir=ra&max=1]
[founditems] [sku] [showif [website]!]
[/showif]
[showif [website]!] [/showif] [/foundItems][/search]Basically the [sku] that is returned for each ad is identical, so the firstad in database one is always paired up with the first ad in database twoand so on.Is there any way to make both ads truly random?.....................................................................W O R L D P O I N T I N T E R A C T I V E DANIEL CAMERON web engineerHonolulu San Francisco 2800 woodlawn drive 222 sutter street dcameron@worldpoint.com suite 170 sixth floor www.worldpoint.com honolulu, hi 96822 san francisco, ca 94108 voice.808.539.3932 fax.808.539.3943 page.808.598.8640.....................................................................
Daniel Cameron
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:
SFTP (2004)
[WebDNA] Converting minutes to hours (2008)
Document Contains No Data! (1997)
Server crash (1997)
WebCatalog for guestbook ? (1997)
MIMEHeaders (2004)
PCS Customer submissions ? (1997)
[Price] (1997)
Safe command=append (1999)
Date problems (1997)
Searchable WebCat (etc.) Docs ? (1997)
Email within tmpl ? (1997)
A few questions. . . (1997)
hidden databases (2000)
WebCat2b12plugin - [search] is broken ... not! (1997)
Hiding Brands (2004)
Username for Admin Group (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
[WebDNA] WebDNA autosuggest (2010)
WebCat2 beta 11 - new prefs ... (1997)