Re: BannerAds example

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19542
interpreted = N
texte = On 8/21/98 4:20 AM, Kevin Mueller wrote:>I've been trying to modify the BannerAds example to use a MaxViews >field in the ads.db to stop displaying an ad when it has been viewed a >pre-set number of times. > >The example currently uses the [DATE] tag to compare with the endDate >field in the database and stops displaying the ad at the date specified. >The only problem with this is that most advertisers are used to paying >for a blocks of say, 5000 ad impressions rather than placing an ad for a >time period like 30 days. > >The only thing that has come close to working is a [HIDEIF] that looks >in the MaxViews field. But when it finds an ad that has reached its >maximum number of impressions, it displays nothing rather than another >ad that is still valid. One quick thought is to put a flag in the database that is a 0 until the max times is reached then it is clocked to a 1. Something in the clocking routine that does this:[showif [maxviews]=[math][views]+1[/math]] [replace db=bannerads.db&eqskudata=[sku]]flag=1[/replace] [/showif] This could actually be in your replace function instead.In the search for the ad make one of the search criteria eqflagdatarq=0 then any ads that aren't a 0 are not shown.That's one way. Robert Minor__________________________________________________________ CyberMill Website Designers & Publishers 8616 Joseph Ave St. Louis, MO 63144 voice 314-962-4024 email: webmaster@cybermill.com http://www.cybermill.com/ __________________________________________________________ We are not responsible for any misspelling or misinformation please check with your internet provider for defects. Associated Messages, from the most recent to the oldest:

    
  1. BannerAds example (Kevin Mueller 1998)
  2. Re: BannerAds example (Bob Minor 1998)
  3. Re: bannerads example idiot (Marty Schmid 1997)
  4. Re: bannerads example idiot (Grant Hulbert 1997)
  5. bannerads example idiot (grichter@panavise.com (Gary Richter) 1997)
On 8/21/98 4:20 AM, Kevin Mueller wrote:>I've been trying to modify the BannerAds example to use a MaxViews >field in the ads.db to stop displaying an ad when it has been viewed a >pre-set number of times. > >The example currently uses the [date] tag to compare with the endDate >field in the database and stops displaying the ad at the date specified. >The only problem with this is that most advertisers are used to paying >for a blocks of say, 5000 ad impressions rather than placing an ad for a >time period like 30 days. > >The only thing that has come close to working is a [hideif] that looks >in the MaxViews field. But when it finds an ad that has reached its >maximum number of impressions, it displays nothing rather than another >ad that is still valid. One quick thought is to put a flag in the database that is a 0 until the max times is reached then it is clocked to a 1. Something in the clocking routine that does this:[showif [maxviews]=[math][views]+1[/math]] [replace db=bannerads.db&eqskudata=[sku]]flag=1[/replace] [/showif] This could actually be in your replace function instead.In the search for the ad make one of the search criteria eqflagdatarq=0 then any ads that aren't a 0 are not shown.That's one way. Robert Minor__________________________________________________________ CyberMill Website Designers & Publishers 8616 Joseph Ave St. Louis, MO 63144 voice 314-962-4024 email: webmaster@cybermill.com http://www.cybermill.com/ __________________________________________________________ We are not responsible for any misspelling or misinformation please check with your internet provider for defects. Bob Minor

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:

Web Developer Product Awards (1997) Documentation Feedback (1997) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) back button problem (1999) [WebDNA] WebDNA staging server (2008) WC2b15 File Corruption (1997) Running _every_ page through WebCat-error.html (1997) Protect vs Authenicate (1997) Help name our technology! (1997) Understanding texta (1997) WCS Newbie question (1997) Alternating BGColors in Table Rows (1998) [WebDNA] Security best practice (2009) Multiple Pulldowns (1997) WebDNA 5.0 Questions (2003) Bug Report, maybe (1997) same product in cart (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) dos performance (1998) problems with 2 tags (1997)