Re: show if date < expiry date
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45016
interpreted = N
texte = Alan White wrote:> Nice one... :P> > >>as long as you have>>>>>>on this page and the page is being served by>>a server that has webdna installed you can move>>it anywhere within the servers root.Actually, you also have to remember that all web pages with WebDNA tags use a file name suffix that WebCatalog recognizes as a template, but that's no big deal.WebDNA certainly is a nice one. It's by far the simplest scripting language (or should we call it a markup language?) I've come across so far, and yet it is surprisingly powerful.Banner ads is a field where WebDNA really excels. Below is a complete banner rotator I used to use for my website (well, actually it's a quick reproduction from memory of my first ever WebDNA project - everybody, please correct any embarrasing typos I might have made ;-). It's the kind of stuff any WebDNA programmer can come up with on ten minutes notice without interrupting the phone call he's in the middle of.No weighting and no stats in such a simple script, but it does what a banner rotator is supposed to do: pick a banner code at random from a (for all practical purposes unlimited) selection and display it within a web page.Add this code where you want the banner to appear on the page:[SEARCH db=/banners.db&DATEtype=date&geDATEtype=[DATE %Y-%m-%d]&DATEsort=1&DATEdir=ra&max=1][FOUNDITEMS][CODE][/FOUNDITEMS][/SEARCH]----Create a plain text file that looks like this:CODE[tab]DATE[linebreak]{bannercode 1}[tab]{expiration date - banner 1}[linebreak]{bannercode 2}[tab]{expiration date - banner 2}[linebreak]{bannercode 3}[tab]{expiration date - banner 3}[linebreak]and so on, and so on and so on...Name the file banners.db and put it in the root folder of the domain name (not necesseraly the server!).----Just remember:1. Remove *all* line breaks within the banner codes before entering them into banners.db2. The expiration dates in banners.db must be formatted YYYY-MM-DD (e.g. 2002-11-08). (Actually you *can* format it any way you like, but then you'd have to change the banner code accordingly as well.)3. banners.db must be loctaed in the root folder for the *domain* - that is not necessarily the same as the root folder of the server. (You can actually put it whereever you like, but again that'd require minor adjustements to the banner code.)----The one thing I just can't understand is: Why are there so few webdesigners that use WebDNA???Frank Nordberghttp://www.musicaviva.com-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Alan White wrote:> Nice one... :P> > >>as long as you have>>>>>>on this page and the page is being served by>>a server that has webdna installed you can move>>it anywhere within the servers root.Actually, you also have to remember that all web pages with WebDNA tags use a file name suffix that WebCatalog recognizes as a template, but that's no big deal.WebDNA certainly is a nice one. It's by far the simplest scripting language (or should we call it a markup language?) I've come across so far, and yet it is surprisingly powerful.Banner ads is a field where WebDNA really excels. Below is a complete banner rotator I used to use for my website (well, actually it's a quick reproduction from memory of my first ever WebDNA project - everybody, please correct any embarrasing typos I might have made ;-). It's the kind of stuff any WebDNA programmer can come up with on ten minutes notice without interrupting the phone call he's in the middle of.No weighting and no stats in such a simple script, but it does what a banner rotator is supposed to do: pick a banner code at random from a (for all practical purposes unlimited) selection and display it within a web page.Add this code where you want the banner to appear on the page:[SEARCH db=/banners.db&DATEtype=date&geDATEtype=[DATE %Y-%m-%d]&DATEsort=1&DATEdir=ra&max=1][founditems][CODE][/FOUNDITEMS][/SEARCH]----Create a plain text file that looks like this:CODE[tab]DATE[linebreak]{bannercode 1}[tab]{expiration date - banner 1}[linebreak]{bannercode 2}[tab]{expiration date - banner 2}[linebreak]{bannercode 3}[tab]{expiration date - banner 3}[linebreak]and so on, and so on and so on...Name the file banners.db and put it in the root folder of the domain name (not necesseraly the server!).----Just remember:1. Remove *all* line breaks within the banner codes before entering them into banners.db2. The expiration dates in banners.db must be formatted YYYY-MM-DD (e.g. 2002-11-08). (Actually you *can* format it any way you like, but then you'd have to change the banner code accordingly as well.)3. banners.db must be loctaed in the root folder for the *domain* - that is not necessarily the same as the root folder of the server. (You can actually put it whereever you like, but again that'd require minor adjustements to the banner code.)----The one thing I just can't understand is: Why are there so few webdesigners that use WebDNA???Frank Nordberghttp://www.musicaviva.com-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Frank Nordberg
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:
Trying to evaluate data that is stored in an indexed (2000)
Forcing a NEWCART (1997)
Question about [encrypt] (1998)
searchable list archive (1997)
Pithy questions on webcommerce & siteedit (1997)
[WebDNA] USPS interface (2008)
Not possible to unsubscribe (2007)
Post arguments problem mac? (1997)
[REPLACE] inside [FOUNDITEMS] (1998)
Bad cookie (1998)
Using Plug-In while running 1.6.1 (1997)
DNA Bandwidth Monitor (2005)
Lots of bounce errors (2007)
FEW QUESTIONS (1997)
Re2: frames & carts (1997)
Setting up WebCatalog with Retail Pro data (1996)
Need help with form (1998)
Wanted: More Math Functions (or, Can You Solve This?) (1997)
PSC recommends what date format yr 2000??? (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)