Re: Some Questions

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11955
interpreted = N
texte = At 5:49 PM 6/16/97, Grant Hulbert altered the fabric of cyberspace, writing:> >I don't seem to find an equivlant to . Can this be done? > > That's one thing we don't do yet. We weren't specifically trying to >compete with NetCloak, so there's no one-to-one feature comparison. > > Buuuut...we realize that redirect would be quite nice to have, so we'll >add it to the feature list. >Then it seems for now that NetCloak is a MUST for me, and use WebCat for things that are best served via a db (Online Stores).> >Seems like most thing (and more) can be done with WebCat2, however with a > >lot more coding per task. > > What specific things are you trying to do? Perhaps we can suggest a >simpler way to do them.Even just simple counters that I want shown to just my domain, seem to be more difficult.NetCloak version:
(> Edit ) Current Count =
WebCat2 version: [ShowIf [IPAddress]^.net-hwy.com]
( Edit ) Current Count = [lookup db=/MasterCounter/counters.db&lookInField=URL&value=[ThisURL]&returnField=NumHit s] [/Showif] [hideif [IPAddress]^.net-hwy.com] [replace db=/MasterCounter/counters.db&eqURLdata=[ThisURL]&append=T]URL=[ThisURL]&LastAcc essDate=[date]&NumHits=[math] [lookup db=/MasterCounter/counters.db&lookInField=URL&value=[ThisURL]&returnField=NumHit s]+1[/math][/replace] [/Hideif]In the NetCloak version a counter is hit by all outside my domain, and I can see the value of the current count without incrementing it and add the 'edit' link to SiteEditPro.While the WebCat version contains much more coding and does not work just the way I want yet. I just want information on this page shown to my domain.> > >I have also been looking for a solution to have classified ads expire and > >be removed after a period of time. Any suggestions? > > Yes, you can put the expiration date into a field in the database, and >then put a [delete] tag into a template that searches for all records >older than today's date. This delete tag could be on any page you serve >up, but if you have 10,000 records you may want to make it a URL that is >rarely hit, such as some kind of admin page that only you link to once a >day. Or you can get fancy and put some WebDNA around the command so it >'knows' only to perform the deletion once per day. > > Something like [delete >db=classifieds.db<ExpireDatedata=[date]&ExpireDatetype=date] >I assume that using some math I could add days to the date for expiration.I agree that this function is best suited to a admin page.> >I have also been working with the General Store example. When trying to > >change the 'Banner Ads', the change never gets made. Was this a flaw in > >the WEB DNA? > > Oops. I think that one slipped through. Someone mentioned it a while >back, and I may not have fixed it yet. >Well we can't remember everything. I know that my brain seems to be working on just 2k of memory.Do you have a solution that I can add??I have been following the thread regarding the [ShowNext] question of returning the links above the max=xx value.I have been looking for a solution to the following:Page1 -- Shows the fires ten found items and a link to the next ten. Page2 -- Shows the next ten items (20 >> 29) and links to last ten (1 >> 9) and next ten (30 >> 39). Page3 -- Shows the next ten items (30 >> 39) and links to prior ten (20 >> 29) and next ten (40 >> 49).And so on....ASnyone solved this?? It would be much cleaner that dozens of links shown.<--Glenn-->~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Glenn & Renee Davis Exclusively Web / Net Highway (916) 887-0678 Web Page Design / Hosting Services POB 157, Cool,CA 95614-0157 http://www.ExclusivelyWeb.com http://www.Net-Hwy.com &&& ||| (@ @) (@ @) ----------------------------ooO---U---Ooo---------------ooO--(_)--Ooo------->> Mailto:renee@Net-Hwy.com Mailto:glenn@Net-Hwy.com Mailto:renee@ExclusivelyWeb.com Mailto:glenn@ExclusivelyWeb.com Graphics Design Webmaster Associated Messages, from the most recent to the oldest:

    
  1. Re: Some Questions (John Hill 1997)
  2. Re: Some Questions (Kenneth Grome 1997)
  3. Re: Some Questions (Grant Hulbert 1997)
  4. Re: Some Questions (bob 1997)
  5. Re: Some Questions (Christer Olsson 1997)
  6. Re: Some Questions (Glenn Davis 1997)
  7. Re: Some Questions (Grant Hulbert 1997)
  8. Some Questions (Glenn Davis 1997)
At 5:49 PM 6/16/97, Grant Hulbert altered the fabric of cyberspace, writing:> >I don't seem to find an equivlant to . Can this be done? > > That's one thing we don't do yet. We weren't specifically trying to >compete with NetCloak, so there's no one-to-one feature comparison. > > Buuuut...we realize that redirect would be quite nice to have, so we'll >add it to the feature list. >Then it seems for now that NetCloak is a MUST for me, and use WebCat for things that are best served via a db (Online Stores).> >Seems like most thing (and more) can be done with WebCat2, however with a > >lot more coding per task. > > What specific things are you trying to do? Perhaps we can suggest a >simpler way to do them.Even just simple counters that I want shown to just my domain, seem to be more difficult.NetCloak version:
(> Edit ) Current Count =
WebCat2 version: [ShowIf [ipaddress]^.net-hwy.com]
([thisurl]> Edit ) Current Count = [lookup db=/MasterCounter/counters.db&lookInField=URL&value=[thisurl]&returnField=NumHit s] [/Showif] [hideif [ipaddress]^.net-hwy.com] [replace db=/MasterCounter/counters.db&eqURLdata=[thisurl]&append=T]URL=[thisurl]&LastAcc essDate=[date]&NumHits=[math] [lookup db=/MasterCounter/counters.db&lookInField=URL&value=[thisurl]&returnField=NumHit s]+1[/math][/replace] [/Hideif]In the NetCloak version a counter is hit by all outside my domain, and I can see the value of the current count without incrementing it and add the 'edit' link to SiteEditPro.While the WebCat version contains much more coding and does not work just the way I want yet. I just want information on this page shown to my domain.> > >I have also been looking for a solution to have classified ads expire and > >be removed after a period of time. Any suggestions? > > Yes, you can put the expiration date into a field in the database, and >then put a [delete] tag into a template that searches for all records >older than today's date. This delete tag could be on any page you serve >up, but if you have 10,000 records you may want to make it a URL that is >rarely hit, such as some kind of admin page that only you link to once a >day. Or you can get fancy and put some WebDNA around the command so it >'knows' only to perform the deletion once per day. > > Something like [delete >db=classifieds.db<ExpireDatedata=[date]&ExpireDatetype=date] >I assume that using some math I could add days to the date for expiration.I agree that this function is best suited to a admin page.> >I have also been working with the General Store example. When trying to > >change the 'Banner Ads', the change never gets made. Was this a flaw in > >the WEB DNA? > > Oops. I think that one slipped through. Someone mentioned it a while >back, and I may not have fixed it yet. >Well we can't remember everything. I know that my brain seems to be working on just 2k of memory.Do you have a solution that I can add??I have been following the thread regarding the [shownext] question of returning the links above the max=xx value.I have been looking for a solution to the following:Page1 -- Shows the fires ten found items and a link to the next ten. Page2 -- Shows the next ten items (20 >> 29) and links to last ten (1 >> 9) and next ten (30 >> 39). Page3 -- Shows the next ten items (30 >> 39) and links to prior ten (20 >> 29) and next ten (40 >> 49).And so on....ASnyone solved this?? It would be much cleaner that dozens of links shown.<--Glenn-->~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Glenn & Renee Davis Exclusively Web / Net Highway (916) 887-0678 Web Page Design / Hosting Services POB 157, Cool,CA 95614-0157 http://www.ExclusivelyWeb.com http://www.Net-Hwy.com &&& ||| (@ @) (@ @) ----------------------------ooO---U---Ooo---------------ooO--(_)--Ooo------->> Mailto:renee@Net-Hwy.com Mailto:glenn@Net-Hwy.com Mailto:renee@ExclusivelyWeb.com Mailto:glenn@ExclusivelyWeb.com Graphics Design Webmaster Glenn Davis

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:

[WebDNA] can't map webdna to .tpl (2017) checkout.tpl (1999) Re2: frames & carts (1997) Emailer choke (1997) Include Files (1998) Showif for mulitple variations (1997) [taxrate] question (1997) Math (1997) vcode (2003) [createfolder] & [deletefolder] (1997) WebCatalog can't find database (1997) Re:WebDNA Writer Needed (1997) Multiple prices (1997) Re:2nd WebCatalog2 Feature Request (1996) Solution help needed (1998) Formating found categories (1997) Bad card db - *mislabled post* (1999) month or year from date field in lineitems? (1998) sorting and grouping (1998) Enhanced Master Counter? (1997)