Re: OT: Variables in printed URL

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68402
interpreted = N
texte = In that case, it would be handled by WebDNA. The particular site I have this on is currently down, so I can't send you the actual code. But such errors are handled by it and then I pass them off to my own error page. Dale Pat McCormick wrote: > What happens if you do http://your.domain.com/yadda-yadda > > If no page called "yadda-yadda" exists, this fires the 404 error > message. That message is being generated by Apache and doesn't seem > to be handled like a .html page. > > I have set WebDNA to process all extensions, but it seems to get > bypassed by the 404 message > > > On Feb 2, 2007, at 4:04 PM, Dale wrote: > >> Hi, >> >> I use the errors.db to process .html pages. Make sure you have them >> set to go through webdna in apache and have the admin section of >> webdna set to process .html files as well. >> >> Dale >> >> Pat McCormick wrote: >>> Hi Dan, >>> >>> I just started working on this. The only time the errors.db is used >>> (it seems) is when the URL contains .tpl, or .tmpl. >>> >>> I changed my preferences to make WebDNA process all file types, but >>> I get the standard Apache error: Not Found..., rather than the text >>> of the error message.db whenever the URL doesn't contain .tpl or .tmpl. >>> >>> Even .htm and .html produce a different (the Apache standard) error >>> message than is in the ErrorMessages.db >>> >>> >>> On Jan 24, 2007, at 2:16 PM, Dan Strong wrote: >>> >>>> Here ya go: >>>> >>>> Back up your errormessages.db (of course) and then do this to >>>> replace the "TemplateNotFound" error: >>>> >>>> ---------------------------- >>>> [!]-- NO LINE BREAKS! --[/!] >>>> [replace db=ErrorMessages.db&eqNAMEdata=TemplateNotFound][!] >>>> [/!]message=[raw][showif [fileinfo >>>> file=parseURLs.html][exists][/fileinfo]=T][include >>>> parseURLs.html][/showif][hideif [fileinfo >>>> file=parseURLs.html][exists][/fileinfo]=T]Error: template >>>> '[param1]' not found[/hideif][/raw][!] >>>> [/!][/replace] >>>> ----------------------------- >>>> >>>> Create "parseURLs.html" in the root of your site (or wherever your >>>> server looks for the root) to parse out the URL using [Listwords >>>> word=[thisurl]&delimiters=/] or whatever your method of choice is. >>>> >>>> I'm pretty sure that's it, but it's been awhile and I may have >>>> missed something, so if your server blows up I'm real sorry. >>>> >>>> -Dan >>>> >>>> >>>> >>>> >>>> On Wed, 24 Jan 2007 12:38:12 -0600 >>>> Pat McCormick wrote: >>>>> That would be great, Dan. >>>>> On Jan 24, 2007, at 7:12 AM, Dan Strong wrote: >>>>>> Pat, >>>>>> >>>>>> I haven't used the pre-parse script much, but I do currently use >>>>>> the errormessages.db to accompliah what you're looking to do. I >>>>>> may have posted it on the list already so check the archives. I >>>>>> have to leave now, but I'll be back in about four hours and if >>>>>> you're still needing help then, I'll post code. >>>>>> >>>>>> -Dan >>>>>> >>>>>> >>>>>> >>>>>> On Tue, 23 Jan 2007 14:34:07 -0600 >>>>>> Donovan Brooke wrote: >>>>>>> Pat McCormick wrote: >>>>>>>> Is there a cagey way to pass a variable in a printed URL that >>>>>>>> eliminates the '?' delimiter and even the name value structure? >>>>>>>> I have a customer who wants to mail out cards containing >>>>>>>> unique URLs to different potential customers. The URL would >>>>>>>> be >>>>>>>> I'm wondering if I would put WebDNA on the file not found >>>>>>>> error page that would parse the variable after the last '/'. >>>>>>>> . Then WebDNA parses the 43 and looks up >>>>>>>> the user's information from a db. >>>>>>>> Anyone have any more streamlined suggestions? >>>>>>> Sure, there is no reason to use the 404 page anymore... nor >>>>>>> modrewrite. >>>>>>> This is because the newer versions of webdna have a pre-parse >>>>>>> capability. I haven't actually done this yet, but I don't >>>>>>> foresee any >>>>>>> issues in doing it. I *have* done this using ModRewrite. >>>>>>> P.S., there is one bug that I know of however... but not sure of >>>>>>> which versions/platforms it may effect. Also, I'm not exactly >>>>>>> sure of the bug off the top of my head. :-).. but it has something >>>>>>> to do with the textarea I think.. in other words, create your >>>>>>> pre-parse scripts (in globals) in the the pre-parse file in a >>>>>>> text editor and don't add them with the on-line textarea. I >>>>>>> believe I sent that bug report to SMSI quite a while back and I >>>>>>> believe thats what >>>>>>> it was... but its been a long time now! >>>>>>> Donovan >>>>>>> -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o >>>>>>> DONOVAN D. BROOKE EUCA Design Center >>>>>>> <- Web Development (specializing in eCommerce),-> >>>>>>> <- Desktop Publishing, Print Consulting, Labels -> >>>>>>> <-Glass Products, off-hand Classes/studio rental-> >>>>>>> PH:> (608) 835-2476 | Forum:> http://egg.bz/forum/ >>>>>>> Web Sites:> http://www.euca.us & http://www.egg.bz >>>>>>> =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o >>>>>>> ------------------------------------------------------------- >>>>>>> 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 >>>>>> digest@talk.smithmicro.com> >>>>>>> Web Archive of this list is at: http://webdna.smithmicro.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 >>>>> digest@talk.smithmicro.com> >>>>>> Web Archive of this list is at: http://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: OT: Variables in printed URL ( Pat McCormick 2007)
  2. Re: OT: Variables in printed URL ( Donovan Brooke 2007)
  3. Re: OT: Variables in printed URL ( Dale 2007)
  4. Re: OT: Variables in printed URL ( Pat McCormick 2007)
  5. Re: OT: Variables in printed URL ( Pat McCormick 2007)
  6. Re: OT: Variables in printed URL ( Dale 2007)
  7. Re: OT: Variables in printed URL ( Pat McCormick 2007)
  8. Re: OT: Variables in printed URL ( Pat McCormick 2007)
  9. Re: OT: Variables in printed URL ( "Dan Strong" 2007)
  10. Re: OT: Variables in printed URL ( Pat McCormick 2007)
  11. Re: OT: Variables in printed URL ( Pat McCormick 2007)
  12. Re: OT: Variables in printed URL ( Donovan Brooke 2007)
  13. Re: OT: Variables in printed URL ( "Dan Strong" 2007)
  14. Re: OT: Variables in printed URL ( Donovan Brooke 2007)
  15. OT: Variables in printed URL ( Pat McCormick 2007)
In that case, it would be handled by WebDNA. The particular site I have this on is currently down, so I can't send you the actual code. But such errors are handled by it and then I pass them off to my own error page. Dale Pat McCormick wrote: > What happens if you do http://your.domain.com/yadda-yadda > > If no page called "yadda-yadda" exists, this fires the 404 error > message. That message is being generated by Apache and doesn't seem > to be handled like a .html page. > > I have set WebDNA to process all extensions, but it seems to get > bypassed by the 404 message > > > On Feb 2, 2007, at 4:04 PM, Dale wrote: > >> Hi, >> >> I use the errors.db to process .html pages. Make sure you have them >> set to go through webdna in apache and have the admin section of >> webdna set to process .html files as well. >> >> Dale >> >> Pat McCormick wrote: >>> Hi Dan, >>> >>> I just started working on this. The only time the errors.db is used >>> (it seems) is when the URL contains .tpl, or .tmpl. >>> >>> I changed my preferences to make WebDNA process all file types, but >>> I get the standard Apache error: Not Found..., rather than the text >>> of the error message.db whenever the URL doesn't contain .tpl or .tmpl. >>> >>> Even .htm and .html produce a different (the Apache standard) error >>> message than is in the ErrorMessages.db >>> >>> >>> On Jan 24, 2007, at 2:16 PM, Dan Strong wrote: >>> >>>> Here ya go: >>>> >>>> Back up your errormessages.db (of course) and then do this to >>>> replace the "TemplateNotFound" error: >>>> >>>> ---------------------------- >>>> [!]-- NO LINE BREAKS! --[/!] >>>> [replace db=ErrorMessages.db&eqNAMEdata=TemplateNotFound][!] >>>> [/!]message=[raw][showif [fileinfo >>>> file=parseURLs.html][exists][/fileinfo]=T][include >>>> parseURLs.html][/showif][hideif [fileinfo >>>> file=parseURLs.html][exists][/fileinfo]=T]Error: template >>>> '[param1]' not found[/hideif][/raw][!] >>>> [/!][/replace] >>>> ----------------------------- >>>> >>>> Create "parseURLs.html" in the root of your site (or wherever your >>>> server looks for the root) to parse out the URL using [Listwords >>>> word=[thisurl]&delimiters=/] or whatever your method of choice is. >>>> >>>> I'm pretty sure that's it, but it's been awhile and I may have >>>> missed something, so if your server blows up I'm real sorry. >>>> >>>> -Dan >>>> >>>> >>>> >>>> >>>> On Wed, 24 Jan 2007 12:38:12 -0600 >>>> Pat McCormick wrote: >>>>> That would be great, Dan. >>>>> On Jan 24, 2007, at 7:12 AM, Dan Strong wrote: >>>>>> Pat, >>>>>> >>>>>> I haven't used the pre-parse script much, but I do currently use >>>>>> the errormessages.db to accompliah what you're looking to do. I >>>>>> may have posted it on the list already so check the archives. I >>>>>> have to leave now, but I'll be back in about four hours and if >>>>>> you're still needing help then, I'll post code. >>>>>> >>>>>> -Dan >>>>>> >>>>>> >>>>>> >>>>>> On Tue, 23 Jan 2007 14:34:07 -0600 >>>>>> Donovan Brooke wrote: >>>>>>> Pat McCormick wrote: >>>>>>>> Is there a cagey way to pass a variable in a printed URL that >>>>>>>> eliminates the '?' delimiter and even the name value structure? >>>>>>>> I have a customer who wants to mail out cards containing >>>>>>>> unique URLs to different potential customers. The URL would >>>>>>>> be >>>>>>>> I'm wondering if I would put WebDNA on the file not found >>>>>>>> error page that would parse the variable after the last '/'. >>>>>>>> . Then WebDNA parses the 43 and looks up >>>>>>>> the user's information from a db. >>>>>>>> Anyone have any more streamlined suggestions? >>>>>>> Sure, there is no reason to use the 404 page anymore... nor >>>>>>> modrewrite. >>>>>>> This is because the newer versions of webdna have a pre-parse >>>>>>> capability. I haven't actually done this yet, but I don't >>>>>>> foresee any >>>>>>> issues in doing it. I *have* done this using ModRewrite. >>>>>>> P.S., there is one bug that I know of however... but not sure of >>>>>>> which versions/platforms it may effect. Also, I'm not exactly >>>>>>> sure of the bug off the top of my head. :-).. but it has something >>>>>>> to do with the textarea I think.. in other words, create your >>>>>>> pre-parse scripts (in globals) in the the pre-parse file in a >>>>>>> text editor and don't add them with the on-line textarea. I >>>>>>> believe I sent that bug report to SMSI quite a while back and I >>>>>>> believe thats what >>>>>>> it was... but its been a long time now! >>>>>>> Donovan >>>>>>> -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o >>>>>>> DONOVAN D. BROOKE EUCA Design Center >>>>>>> <- Web Development (specializing in eCommerce),-> >>>>>>> <- Desktop Publishing, Print Consulting, Labels -> >>>>>>> <-Glass Products, off-hand Classes/studio rental-> >>>>>>> PH:> (608) 835-2476 | Forum:> http://egg.bz/forum/ >>>>>>> Web Sites:> http://www.euca.us & http://www.egg.bz >>>>>>> =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o >>>>>>> ------------------------------------------------------------- >>>>>>> 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 >>>>>> digest@talk.smithmicro.com> >>>>>>> Web Archive of this list is at: http://webdna.smithmicro.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 >>>>> digest@talk.smithmicro.com> >>>>>> Web Archive of this list is at: http://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.com/ Dale

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:

add to cart within a page? (1997) finding the next thursday (2000) popups, netscape vs explorer (1997) New Command prefs ... (1997) [WebDNA] showif with empty variable (2015) normal users.db calls ... (1998) removing programming logic white space (2003) Tiny Store (1998) sorting by date (1999) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) SQL Connections (2004) Shared Webstar Directory (1998) How to include weather (2000) Help! WebCat2 bug (1997) Cart date/time (2006) Re:listfiles-looking for slick solution (1997) WebCatalog 2.0 b 15 mac (1997) PCS Frames (1997) search for non-unique question (2001) [WebDNA] Ubuntu 16.04.4 LTS (2018)