Re: redirect within the ErrorMessages.db

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54610
interpreted = N
texte = Make sure that you do not have any tabs or carriage returns in your code. [showif [thisurl]^members][ListWords Words=[thisurl]&Delimiters=/][text show=f]mbr_name=[word][/text][/ListWords][mbr_name] (for verification purposes)[search db=/databases/ members.db&eqMemberNamedatarq=[mbr_name]][founditems][REDIRECT url=http://www.domain.tld/profiles/ details.html?record_id=[record_id]][/founditems][/search][/showif] Remember that the code is in a database and a carriage return or tab will stuff things up :) On Wednesday, December 3, 2003, at 06:32 PM, CN Stuff wrote: > hi Donovan, > > On Dec 2, 2003, at 9:50 PM, Donovan Brooke wrote: > >> Dale, I'm not sure of what exactly you are doing > > Trying to create a 'simple' URL for members so instead of having to > type" > www.domain.tld/members/details.html?record_id=222222222 > > The can type: > www.domain.tld/profiles/membername/ > > Then the server wil do a search on the membername and do a redirect to > the proper record in the database. > >> but one thing I do >> (suggestion derived from list members) is to take the "[" >> off the redirect to see if, 1. it is even there and, 2. what all >> values >> are there. > > Things seem to stop before the search, or probably more accurately, > the search does not seem to work. The closing body tags show up, so it > apparently gets past the search. However, adding a [numfound] doesn't > report anything, not even a 0. > >> >> Also, [url][/url] the "[mbr_name]" in the search if it contains >> spaces. > > Good call on the [url] the field in question has been checked for such > charators, but, better to be safe. > >> hth, >> Donovan >> >> >> >> CN Stuff wrote: >>> Hello, >>> I am trying to allow for a 'simple' URL for member pages on my site >>> e.g. >>> www.domain.tld/members/username/ >>> In an attempt to accomplish this, I have added the following >>> (without line breaks) to process the URL and do a redirect to the >>> proper URL. With this code, I get the proper membername, but the >>> redirect never happens. >>> [showif [thisurl]^members] >>> [ListWords Words=[thisurl]&Delimiters=/][text >>> show=f]mbr_name=[word][/text][/ListWords] >>> [mbr_name] (for verification purposes) >>> [search db=/databases/members.db&eqMemberNamedatarq=[mbr_name]] >>> [founditems] >>> [REDIRECT >>> url=http://www.domain.tld/profiles/ >>> details.html?record_id=[record_id]] >>> [/founditems] >>> [/search] >>> [/showif] >>> All I end up with is the mbr_name displayed on the screen. Anything >>> obvious as to what I might be doing wrong? >>> Thanks >>> Dale >> >> >> -- >> =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 Eucalyptus Design >> <-Web Development (specializing in eCommerce), -> >> <-Graphic Design, and Pre-Press Consultation -> >> >> ADDRESS:> Donovan Brooke >> DBA Eucalyptus Design >> N2862 Summerville Park Rd. >> Lodi, WI 53555 >> PH:> 1.608.592.3567 >> Web:> http://www.euca.us >> =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 >> >> 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/ > > Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- 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: redirect within the ErrorMessages.db ( Stuart Tremain 2003)
  2. Re: redirect within the ErrorMessages.db ( CN Stuff 2003)
  3. Re: redirect within the ErrorMessages.db ( CN Stuff 2003)
  4. Re: redirect within the ErrorMessages.db ( Glenn Busbin 2003)
  5. Re: redirect within the ErrorMessages.db ( Donovan Brooke 2003)
  6. redirect within the ErrorMessages.db ( CN Stuff 2003)
Make sure that you do not have any tabs or carriage returns in your code. [showif [thisurl]^members][ListWords Words=[thisurl]&Delimiters=/][text show=f]mbr_name=[word][/text][/ListWords][mbr_name] (for verification purposes)[search db=/databases/ members.db&eqMemberNamedatarq=[mbr_name]][founditems][REDIRECT url=http://www.domain.tld/profiles/ details.html?record_id=[record_id]][/founditems][/search][/showif] Remember that the code is in a database and a carriage return or tab will stuff things up :) On Wednesday, December 3, 2003, at 06:32 PM, CN Stuff wrote: > hi Donovan, > > On Dec 2, 2003, at 9:50 PM, Donovan Brooke wrote: > >> Dale, I'm not sure of what exactly you are doing > > Trying to create a 'simple' URL for members so instead of having to > type" > www.domain.tld/members/details.html?record_id=222222222 > > The can type: > www.domain.tld/profiles/membername/ > > Then the server wil do a search on the membername and do a redirect to > the proper record in the database. > >> but one thing I do >> (suggestion derived from list members) is to take the "[" >> off the redirect to see if, 1. it is even there and, 2. what all >> values >> are there. > > Things seem to stop before the search, or probably more accurately, > the search does not seem to work. The closing body tags show up, so it > apparently gets past the search. However, adding a [numfound] doesn't > report anything, not even a 0. > >> >> Also, [url][/url] the "[mbr_name]" in the search if it contains >> spaces. > > Good call on the [url] the field in question has been checked for such > charators, but, better to be safe. > >> hth, >> Donovan >> >> >> >> CN Stuff wrote: >>> Hello, >>> I am trying to allow for a 'simple' URL for member pages on my site >>> e.g. >>> www.domain.tld/members/username/ >>> In an attempt to accomplish this, I have added the following >>> (without line breaks) to process the URL and do a redirect to the >>> proper URL. With this code, I get the proper membername, but the >>> redirect never happens. >>> [showif [thisurl]^members] >>> [ListWords Words=[thisurl]&Delimiters=/][text >>> show=f]mbr_name=[word][/text][/ListWords] >>> [mbr_name] (for verification purposes) >>> [search db=/databases/members.db&eqMemberNamedatarq=[mbr_name]] >>> [founditems] >>> [REDIRECT >>> url=http://www.domain.tld/profiles/ >>> details.html?record_id=[record_id]] >>> [/founditems] >>> [/search] >>> [/showif] >>> All I end up with is the mbr_name displayed on the screen. Anything >>> obvious as to what I might be doing wrong? >>> Thanks >>> Dale >> >> >> -- >> =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 Eucalyptus Design >> <-Web Development (specializing in eCommerce), -> >> <-Graphic Design, and Pre-Press Consultation -> >> >> ADDRESS:> Donovan Brooke >> DBA Eucalyptus Design >> N2862 Summerville Park Rd. >> Lodi, WI 53555 >> PH:> 1.608.592.3567 >> Web:> http://www.euca.us >> =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 >> >> 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/ > > Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- 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/ Stuart Tremain

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:

off-topic - printinglib 68K (1997) Programmer Needed (1998) NT Manual (1997) Unix 4.0.2b5 (2000) [OT] Indexing of dynamic web sites (2003) WebMerch/Emailer Error (1998) Reversed words (1997) using showpage and showcart commands (1996) [WebDNA] COPYFILE & permissions (2020) Date search - yes or no (1997) WC TableGrinder (1997) A workaround for handling date range search in yyyy/mm/dd form (1997) Not really WebCat (1997) Weird Math and SV (1997) Limit to Field Length in DB (1998) Search context not finding recent entries (1998) RE:It just Does't add up!!! (1997) Professional WebDNA Hosting Solutions (2005) WebDNA Docs (2003) WebCat editing, SiteGuard & SiteEdit (1997)