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 Nordberg http://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:

    
  1. Re: show if date < expiry date (Dan Strong 2002)
  2. Re: show if date < expiry date (Dan Strong 2002)
  3. Re: show if date < expiry date (Frank Nordberg 2002)
  4. Re: show if date < expiry date (small corrections) (Dan Strong 2002)
  5. Re: show if date < expiry date (small corrections) (Donovan 2002)
  6. Re: show if date < expiry date (small corrections) (Dan Strong 2002)
  7. Re: show if date < expiry date (Matthew Bohne 2002)
  8. Re: show if date < expiry date (small corrections) (Alan White 2002)
  9. Re: show if date < expiry date (Alan White 2002)
  10. Re: show if date < expiry date (Donovan 2002)
  11. Re: show if date < expiry date (small corrections) (Donovan 2002)
  12. Re: show if date < expiry date (Alan White 2002)
  13. Re: show if date < expiry date (Matthew Bohne 2002)
  14. Re: show if date < expiry date (Alan White 2002)
  15. show if date < expiry date (Alan White 2002)
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 Nordberg http://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:

Why is my easy [AddLineItems] NOT working?? MORE (2000) Newbie questions (1999) Display [price] in banner ad (1998) Emailer help....! (1997) FORMS: Returning a specific page (1997) Showif for mulitple variations (1997) Am I going senile? (Price recalc based on quantity) (1997) Fw: Would you please check your user who sent the message? (1998) One Hour Email (2002) Share cost of training videos! (1998) Help name our technology! (1997) Location of Webcat site in folder hierarchy (1997) Where's Cart Created ? (1997) [SearchString] usage (1997) [OT] Display Glitch (2004) Shipping rate x Quantity solution needed (2000) Re[2]: Formatting ModDate (2000) Boolean showifs? (2000) Mozilla/4. and Browser Info.txt (1997) Erotic Sites (1997)