warning... Re: Banner Rotation

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28033
interpreted = N
texte = When using the banner rotation example supplied you will not get an even banner rotation. In other words, due to the fact that SKUsdir=ra produced results that favor one record over another, some of your banners will get more views then other banners. You need to refer to the last two weeks of discussion on randomness in order to fix this. I solved the problem by making sure that each banner was served at least once before any other banner was served a second time... and then again making sure that every banner was served at least twice before any other banner was served a third time.As far as your requirement goes.. I would approach it slightly differently. I would add a field to the database record which was called, for example, MaxViews, and when adding a record to the database, enter the maximum number of views that this banner can have. Then every time that the banner is viewed, you would increment the Views field and decrement the MaxViews field. Then include geMAXVIEWSdatarq=1 in your search.___Joe___ _________________________________________________ Joseph D'Andrea JoeDan@West21.com WEST21.com Internet services for the 21st Century http://www.west21.com/ _________________________________________________ ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
When using the banner rotation example supplied you will not get an even banner rotation. In other words, due to the fact that SKUsdir=ra produced results that favor one record over another, some of your banners will get more views then other banners. You need to refer to the last two weeks of discussion on randomness in order to fix this. I solved the problem by making sure that each banner was served at least once before any other banner was served a second time... and then again making sure that every banner was served at least twice before any other banner was served a third time.As far as your requirement goes.. I would approach it slightly differently. I would add a field to the database record which was called, for example, MaxViews, and when adding a record to the database, enter the maximum number of views that this banner can have. Then every time that the banner is viewed, you would increment the Views field and decrement the MaxViews field. Then include geMAXVIEWSdatarq=1 in your search.___Joe___ _________________________________________________ Joseph D'Andrea JoeDan@West21.com WEST21.com Internet services for the 21st Century http://www.west21.com/ _________________________________________________ ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Joseph D'Andrea

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:

lookup command (1997) Connection count (2005) Store Builder Question (1999) Help! WebCat2 bug (1997) 9 digit zip (2002) Force a search at the default.tmpl page? (1997) Security Issue (1999) Tab Charactor (1997) hmmm (2006) New public beta available (1997) Ultimate BB (2001) shipcost - cleaner with a table (1998) CC verification (2001) WebCat2b13MacPlugIn - [include] (1997) [WebDNA] plupload ? (2012) RAM variables (1997) [delete] problem (1997) Search returns all, not 20 (1997) Truncated value after space - refresh my memory.... (1997) possible, WebCat2.0 and checkboxes-restated (1997)