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:

searchable list archive (1997) WebCatalog for guestbook ? (1997) Nested tags count question (1997) Showing Results Alphabetically in Columns (top to bottom) (2002) no [search] with NT (1997) problem: search crashes webstar (1997) same bill to and ship to? (1998) A multi-processor savvy WebCatalog? (1997) Db design question (relational vs. flat?) (1998) Multiple SSL Keys (1998) [WebDNA] Retrieving a PDF from an email (2008) many-to-one problem (1998) [Q] Novice's question (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Smith Micro Customer Service Sucks (2008) Simple way to create unique SKU (1997) Pricing based on quantity (2000) Sales Tax Rates 10/01/01 (2001) drop down selection list for a search (1998) [include ...] behavior (1997)